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/connection.cpp | |
parent | ce0d7b62824d620ec8c3daceac5710fbbd6b12f1 (diff) | |
download | mana-client-bfd1d1bcc2a6ecd7efe301bfbf22a1e9b9188706.tar.gz mana-client-bfd1d1bcc2a6ecd7efe301bfbf22a1e9b9188706.tar.bz2 mana-client-bfd1d1bcc2a6ecd7efe301bfbf22a1e9b9188706.tar.xz mana-client-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/connection.cpp')
-rw-r--r-- | src/gui/connection.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/connection.cpp b/src/gui/connection.cpp index 8ad3b436..0f43ff14 100644 --- a/src/gui/connection.cpp +++ b/src/gui/connection.cpp @@ -30,6 +30,8 @@ #include "../main.h" +#include "../utils/gettext.h" + namespace { struct ConnectionActionListener : public gcn::ActionListener { @@ -42,9 +44,9 @@ ConnectionDialog::ConnectionDialog(): { setContentSize(200, 100); - Button *cancelButton = new Button("Cancel", "cancelButton", &listener); + Button *cancelButton = new Button(_("Cancel"), "cancelButton", &listener); mProgressBar = new ProgressBar(0.0, 200 - 10, 20, 128, 128, 128); - gcn::Label *label = new gcn::Label("Connecting..."); + gcn::Label *label = new gcn::Label(_("Connecting...")); cancelButton->setPosition(5, 100 - 5 - cancelButton->getHeight()); mProgressBar->setPosition(5, cancelButton->getY() - 25); |