summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarsdragonfly <arsdragonfly@gmail.com>2013-06-24 00:07:45 +0000
committerPilzAdam <pilzadam@minetest.net>2013-07-02 00:13:50 +0000
commit4bbb78a99b5d2a8446a1946eb44df01b618de4cc (patch)
tree149a584fd5f08d35d1d0140f76e59166cabfe89b /src
parentdd6d1afd8e0ded779fd004f4e83888985cba2102 (diff)
downloadminetest-4bbb78a99b5d2a8446a1946eb44df01b618de4cc.tar.gz
minetest-4bbb78a99b5d2a8446a1946eb44df01b618de4cc.tar.bz2
minetest-4bbb78a99b5d2a8446a1946eb44df01b618de4cc.zip
Fix i18n of some strings.
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/game.cpp b/src/game.cpp
index e4019e472..65b52777a 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -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