summaryrefslogtreecommitdiff
path: root/src/guiPasswordChange.cpp
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-20 17:56:49 +0200
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-20 17:56:49 +0200
commit69937c342cc420d352f6f7f5c6c90383312b76d4 (patch)
treeefff8e50e488073fa25af864191b33d78c1d5bac /src/guiPasswordChange.cpp
parent9bc701d194ea9e2bc56c1c9c473d6602e6070d60 (diff)
parent489a7ef3247f1db1f44efa2c7fbafb70c00f7812 (diff)
downloadminetest-69937c342cc420d352f6f7f5c6c90383312b76d4.tar.gz
minetest-69937c342cc420d352f6f7f5c6c90383312b76d4.tar.bz2
minetest-69937c342cc420d352f6f7f5c6c90383312b76d4.zip
Merge branch 'master' of github.com:erlehmann/minetest-delta
Diffstat (limited to 'src/guiPasswordChange.cpp')
-rw-r--r--src/guiPasswordChange.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/guiPasswordChange.cpp b/src/guiPasswordChange.cpp
index ec1cd029a..79601a99f 100644
--- a/src/guiPasswordChange.cpp
+++ b/src/guiPasswordChange.cpp
@@ -21,6 +21,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "serialization.h"
#include <string>
+#include "gettext.h"
+
const int ID_oldPassword = 256;
const int ID_newPassword1 = 257;
const int ID_newPassword2 = 258;
@@ -97,8 +99,7 @@ void GUIPasswordChange::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, 110, 20);
rect += topleft_client + v2s32(35, ypos+6);
- const wchar_t *text = L"Old Password";
- Environment->addStaticText(text, rect, false, true, this, -1);
+ Environment->addStaticText(chartowchar_t(gettext("Old Password")), rect, false, true, this, -1);
}
{
core::rect<s32> rect(0, 0, 230, 30);
@@ -112,8 +113,7 @@ void GUIPasswordChange::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, 110, 20);
rect += topleft_client + v2s32(35, ypos+6);
- const wchar_t *text = L"New Password";
- Environment->addStaticText(text, rect, false, true, this, -1);
+ Environment->addStaticText(chartowchar_t(gettext("New Password")), rect, false, true, this, -1);
}
{
core::rect<s32> rect(0, 0, 230, 30);
@@ -126,8 +126,7 @@ void GUIPasswordChange::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, 110, 20);
rect += topleft_client + v2s32(35, ypos+6);
- const wchar_t *text = L"Confirm Password";
- Environment->addStaticText(text, rect, false, true, this, -1);
+ Environment->addStaticText(chartowchar_t(gettext("Confirm Password")), rect, false, true, this, -1);
}
{
core::rect<s32> rect(0, 0, 230, 30);
@@ -141,16 +140,15 @@ void GUIPasswordChange::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, 140, 30);
rect = rect + v2s32(size.X/2-140/2, ypos);
- Environment->addButton(rect, this, ID_change, L"Change");
+ Environment->addButton(rect, this, ID_change, chartowchar_t(gettext("Change")));
}
ypos += 50;
{
core::rect<s32> rect(0, 0, 300, 20);
rect += topleft_client + v2s32(35, ypos);
- const wchar_t *text = L"Passwords do not match!";
IGUIElement *e =
- Environment->addStaticText(text, rect, false, true, this, ID_message);
+ Environment->addStaticText(chartowchar_t(gettext("Passwords do not match!")), rect, false, true, this, ID_message);
e->setVisible(false);
}