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

@ -85,6 +85,7 @@ void GUIMessageMenu::regenerateGui(v2u32 screensize)
Environment->addStaticText(m_message_text.c_str(), rect, false,
true, this, 256);
}
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);
@ -93,6 +94,7 @@ void GUIMessageMenu::regenerateGui(v2u32 screensize)
chartowchar_t(gettext("Proceed")));
Environment->setFocus(e);
}
setlocale(LC_CTYPE, "en_US");
}
void GUIMessageMenu::drawMenu()