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

Fix i18n of some strings.

This commit is contained in:
arsdragonfly 2013-06-24 00:07:45 +00:00 committed by PilzAdam
parent dd6d1afd8e
commit 4bbb78a99b
22 changed files with 1258 additions and 1094 deletions

View file

@ -1232,26 +1232,28 @@ void the_game(
}
// Display status
std::ostringstream ss;
int progress=0;
if (!client.itemdefReceived())
{
ss << "Item definitions...";
wchar_t* text = wgettext("Item definitions...");
progress = 0;
draw_load_screen(text, device, font, dtime, progress);
delete[] text;
}
else if (!client.nodedefReceived())
{
ss << "Node definitions...";
wchar_t* text = wgettext("Node definitions...");
progress = 25;
draw_load_screen(text, device, font, dtime, progress);
delete[] text;
}
else
{
ss << "Media...";
wchar_t* text = wgettext("Media...");
progress = 50+client.mediaReceiveProgress()*50+0.5;
draw_load_screen(text, device, font, dtime, progress);
delete[] text;
}
wchar_t* text = wgettext(ss.str().c_str());
draw_load_screen(text, device, font, dtime, progress);
delete[] text;
// On some computers framerate doesn't seem to be
// automatically limited