summaryrefslogtreecommitdiff
path: root/src/gui/buysell.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-08 22:03:33 +0100
committerIra Rice <irarice@gmail.com>2009-01-08 16:27:30 -0700
commit193ccbdba8031a351ea622f8842b6d9a0b6cfd43 (patch)
tree5e62faa24be231e60a3aa2643fa233f356ac23c7 /src/gui/buysell.cpp
parent3f8387402ee7b528026450232cb457c8ae1cf4e2 (diff)
downloadmana-client-193ccbdba8031a351ea622f8842b6d9a0b6cfd43.tar.gz
mana-client-193ccbdba8031a351ea622f8842b6d9a0b6cfd43.tar.bz2
mana-client-193ccbdba8031a351ea622f8842b6d9a0b6cfd43.tar.xz
mana-client-193ccbdba8031a351ea622f8842b6d9a0b6cfd43.zip
Made remaining dialogs translatable
Most strings are now translatable. Please do report any missing ones. Strings excluded from translation are anything that gets written to the log file or is otherwise not shown in the GUI. Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
Diffstat (limited to 'src/gui/buysell.cpp')
-rw-r--r--src/gui/buysell.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/buysell.cpp b/src/gui/buysell.cpp
index 57c95841..724ae8a1 100644
--- a/src/gui/buysell.cpp
+++ b/src/gui/buysell.cpp
@@ -24,18 +24,20 @@
#include "../npc.h"
+#include "../utils/gettext.h"
+
BuySellDialog::BuySellDialog():
- Window("Shop")
+ Window(_("Shop"))
{
Button *buyButton = 0;
- const char *buttonNames[] = {
- "Buy", "Sell", "Cancel", 0
+ static const char *buttonNames[] = {
+ N_("Buy"), N_("Sell"), N_("Cancel"), 0
};
int x = 10, y = 10;
for (const char **curBtn = buttonNames; *curBtn; curBtn++)
{
- Button *btn = new Button(*curBtn, *curBtn, this);
+ Button *btn = new Button(gettext(*curBtn), *curBtn, this);
if (!buyButton) buyButton = btn; // For focus request
btn->setPosition(x, y);
add(btn);