diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-06 13:52:30 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-06 15:50:02 +0100 |
commit | bfd1d1bcc2a6ecd7efe301bfbf22a1e9b9188706 (patch) | |
tree | b30134f93042e4afb5554b5f14a83528ed2ef069 /src/gui/ok_dialog.cpp | |
parent | ce0d7b62824d620ec8c3daceac5710fbbd6b12f1 (diff) | |
download | mana-bfd1d1bcc2a6ecd7efe301bfbf22a1e9b9188706.tar.gz mana-bfd1d1bcc2a6ecd7efe301bfbf22a1e9b9188706.tar.bz2 mana-bfd1d1bcc2a6ecd7efe301bfbf22a1e9b9188706.tar.xz mana-bfd1d1bcc2a6ecd7efe301bfbf22a1e9b9188706.zip |
Added support for internationalization
Merged from the mainline client. Originally implemented by Guillaume
Melquiond, starting with commit 1828eee6a6d91fd385ad1e69d93044516493aa91.
Diffstat (limited to 'src/gui/ok_dialog.cpp')
-rw-r--r-- | src/gui/ok_dialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/ok_dialog.cpp b/src/gui/ok_dialog.cpp index d43c8e69..9db3cd7b 100644 --- a/src/gui/ok_dialog.cpp +++ b/src/gui/ok_dialog.cpp @@ -24,6 +24,8 @@ #include "button.h" #include "scrollarea.h" +#include "../utils/gettext.h" + OkDialog::OkDialog(const std::string &title, const std::string &msg, Window *parent): Window(title, true, parent) @@ -32,7 +34,7 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg, textBox->setEditable(false); gcn::ScrollArea *scrollArea = new ScrollArea(textBox); - gcn::Button *okButton = new Button("Ok", "ok", this); + gcn::Button *okButton = new Button(_("Ok"), "ok", this); setContentSize(260, 175); scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); |