summaryrefslogtreecommitdiff
path: root/src/guiTextInputMenu.cpp
diff options
context:
space:
mode:
authorConstantin Wenger <constantin.wenger@googlemail.com>2011-07-20 16:51:19 +0200
committerConstantin Wenger <constantin.wenger@googlemail.com>2011-07-20 16:51:19 +0200
commit6a8328de7970edd2a1c0472289a903a75ad9daf7 (patch)
treea57050ac3a2a9a03f489a9f1a1c564cdaf27a2d4 /src/guiTextInputMenu.cpp
parent2095b1581615f7b8c4f008886837fbbeaf75faec (diff)
downloadminetest-6a8328de7970edd2a1c0472289a903a75ad9daf7.tar.gz
minetest-6a8328de7970edd2a1c0472289a903a75ad9daf7.tar.bz2
minetest-6a8328de7970edd2a1c0472289a903a75ad9daf7.zip
added gettext support
german translation file and bashscript to update translations
Diffstat (limited to 'src/guiTextInputMenu.cpp')
-rw-r--r--src/guiTextInputMenu.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/guiTextInputMenu.cpp b/src/guiTextInputMenu.cpp
index 2cb8cae62..b15f8bc07 100644
--- a/src/guiTextInputMenu.cpp
+++ b/src/guiTextInputMenu.cpp
@@ -22,6 +22,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "serialization.h"
#include <string>
+#include "gettext.h"
+
GUITextInputMenu::GUITextInputMenu(gui::IGUIEnvironment* env,
gui::IGUIElement* parent, s32 id,
IMenuManager *menumgr,
@@ -105,7 +107,7 @@ void GUITextInputMenu::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, 140, 30);
rect = rect + v2s32(size.X/2-140/2, size.Y/2-30/2+25);
- Environment->addButton(rect, this, 257, L"Proceed");
+ Environment->addButton(rect, this, 257, chartowchar_t(gettext("Proceed")));
}
}