1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

fixed displaying "umlauts" (deutsch umlaute) and hopefully other non ASCII chars, too

This commit is contained in:
Constantin Wenger 2011-07-29 23:33:33 +02:00
parent 17830c5894
commit 92f504f98d
5 changed files with 20 additions and 0 deletions

View file

@ -104,12 +104,14 @@ void GUITextInputMenu::regenerateGui(v2u32 screensize)
Environment->addEditBox(text.c_str(), rect, true, this, 256);
Environment->setFocus(e);
}
setlocale(LC_CTYPE, "");
{
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");
}
void GUITextInputMenu::drawMenu()