get rid of useless direct dsgettext calls
This commit is contained in:
parent
fcebd0e9df
commit
45b8e5b52c
5 changed files with 8 additions and 6 deletions
|
@ -1,6 +1,5 @@
|
|||
src/editor/editor.cpp
|
||||
src/editor/editor_palettes.cpp
|
||||
src/widgets/file_chooser.cpp
|
||||
src/editor/editor_layout.cpp
|
||||
src/editor/editor_main.cpp
|
||||
src/editor/editor_undo.cpp
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
src/filechooser.cpp
|
||||
src/hotkeys.cpp
|
||||
src/mapgen_dialog.cpp
|
||||
src/preferences.cpp
|
||||
src/show_dialog.cpp
|
||||
src/widgets/file_chooser.cpp
|
||||
src/editor/editor_dialogs.cpp
|
||||
|
|
|
@ -2,7 +2,6 @@ src/about.cpp
|
|||
src/actions.cpp
|
||||
src/dialogs.cpp
|
||||
src/display.cpp
|
||||
src/filechooser.cpp
|
||||
src/font.cpp
|
||||
src/game.cpp
|
||||
src/game_events.cpp
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
#include "global.hpp"
|
||||
|
||||
#define GETTEXT_DOMAIN "wesnoth-lib"
|
||||
|
||||
#include "display.hpp"
|
||||
#include "gettext.hpp"
|
||||
#include "show_dialog.hpp"
|
||||
|
|
|
@ -1216,10 +1216,10 @@ void show_preferences_dialog(display& disp, const config& game_cfg)
|
|||
|
||||
std::string const pre = IMAGE_PREFIX + std::string("icons/icon-");
|
||||
char const sep = COLUMN_SEPARATOR;
|
||||
items.push_back(pre + "general.png" + sep + dsgettext(GETTEXT_DOMAIN,"Prefs section^General"));
|
||||
items.push_back(pre + "display.png" + sep + dsgettext(GETTEXT_DOMAIN,"Prefs section^Display"));
|
||||
items.push_back(pre + "music.png" + sep + dsgettext(GETTEXT_DOMAIN,"Prefs section^Sound"));
|
||||
items.push_back(pre + "advanced.png" + sep + dsgettext(GETTEXT_DOMAIN,"Advanced section^Advanced"));
|
||||
items.push_back(pre + "general.png" + sep + _("Prefs section^General"));
|
||||
items.push_back(pre + "display.png" + sep + _("Prefs section^Display"));
|
||||
items.push_back(pre + "music.png" + sep + _("Prefs section^Sound"));
|
||||
items.push_back(pre + "advanced.png" + sep + _("Advanced section^Advanced"));
|
||||
|
||||
for(;;) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue