mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
set locales to C because en_US not installed on some systems, only UTF-8 version and en_US.UTF-8 does not work.
This commit is contained in:
parent
92f504f98d
commit
9baae3a701
6 changed files with 30 additions and 20 deletions
|
@ -104,14 +104,14 @@ void GUITextInputMenu::regenerateGui(v2u32 screensize)
|
|||
Environment->addEditBox(text.c_str(), rect, true, this, 256);
|
||||
Environment->setFocus(e);
|
||||
}
|
||||
setlocale(LC_CTYPE, "");
|
||||
changeCtype("");
|
||||
{
|
||||
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,
|
||||
chartowchar_t(gettext("Proceed")));
|
||||
}
|
||||
setlocale(LC_CTYPE, "en_US");
|
||||
changeCtype("C");
|
||||
}
|
||||
|
||||
void GUITextInputMenu::drawMenu()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue