projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add congestion control settings to minetest.conf
[oweals/minetest.git]
/
src
/
guiPasswordChange.cpp
diff --git
a/src/guiPasswordChange.cpp
b/src/guiPasswordChange.cpp
index 2a7fb009a02db28c2998177837947e8927024bc5..ecae55e108c085c54b7a643c9bcbf7d4f01b90ff 100644
(file)
--- a/
src/guiPasswordChange.cpp
+++ b/
src/guiPasswordChange.cpp
@@
-20,6
+20,11
@@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "debug.h"
#include "serialization.h"
#include <string>
#include "debug.h"
#include "serialization.h"
#include <string>
+#include <IGUICheckBox.h>
+#include <IGUIEditBox.h>
+#include <IGUIButton.h>
+#include <IGUIStaticText.h>
+#include <IGUIFont.h>
#include "gettext.h"
#include "gettext.h"
@@
-100,7
+105,7
@@
void GUIPasswordChange::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, 110, 20);
rect += topleft_client + v2s32(35, ypos+6);
{
core::rect<s32> rect(0, 0, 110, 20);
rect += topleft_client + v2s32(35, ypos+6);
- Environment->addStaticText(
chartowchar_t(gettext("Old Password")
),
+ Environment->addStaticText(
wgettext("Old Password"
),
rect, false, true, this, -1);
}
changeCtype("C");
rect, false, true, this, -1);
}
changeCtype("C");
@@
-117,7
+122,7
@@
void GUIPasswordChange::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, 110, 20);
rect += topleft_client + v2s32(35, ypos+6);
{
core::rect<s32> rect(0, 0, 110, 20);
rect += topleft_client + v2s32(35, ypos+6);
- Environment->addStaticText(
chartowchar_t(gettext("New Password")
),
+ Environment->addStaticText(
wgettext("New Password"
),
rect, false, true, this, -1);
}
changeCtype("C");
rect, false, true, this, -1);
}
changeCtype("C");
@@
-133,7
+138,7
@@
void GUIPasswordChange::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, 110, 20);
rect += topleft_client + v2s32(35, ypos+6);
{
core::rect<s32> rect(0, 0, 110, 20);
rect += topleft_client + v2s32(35, ypos+6);
- Environment->addStaticText(
chartowchar_t(gettext("Confirm Password")
),
+ Environment->addStaticText(
wgettext("Confirm Password"
),
rect, false, true, this, -1);
}
changeCtype("C");
rect, false, true, this, -1);
}
changeCtype("C");
@@
-150,7
+155,7
@@
void GUIPasswordChange::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, 140, 30);
rect = rect + v2s32(size.X/2-140/2, ypos);
{
core::rect<s32> rect(0, 0, 140, 30);
rect = rect + v2s32(size.X/2-140/2, ypos);
- Environment->addButton(rect, this, ID_change,
chartowchar_t(gettext("Change")
));
+ Environment->addButton(rect, this, ID_change,
wgettext("Change"
));
}
ypos += 50;
}
ypos += 50;
@@
-159,7
+164,7
@@
void GUIPasswordChange::regenerateGui(v2u32 screensize)
rect += topleft_client + v2s32(35, ypos);
IGUIElement *e =
Environment->addStaticText(
rect += topleft_client + v2s32(35, ypos);
IGUIElement *e =
Environment->addStaticText(
-
chartowchar_t(gettext("Passwords do not match!")
),
+
wgettext("Passwords do not match!"
),
rect, false, true, this, ID_message);
e->setVisible(false);
}
rect, false, true, this, ID_message);
e->setVisible(false);
}