From 4bbb78a99b5d2a8446a1946eb44df01b618de4cc Mon Sep 17 00:00:00 2001 From: arsdragonfly Date: Mon, 24 Jun 2013 00:07:45 +0000 Subject: Fix i18n of some strings. --- src/game.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') 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 -- cgit v1.2.3