Make showOverlayMessage strings translatable (#7964)
authorWuzzy <wuzzy2@mail.ru>
Thu, 13 Dec 2018 10:05:38 +0000 (11:05 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 13 Dec 2018 10:05:38 +0000 (11:05 +0100)
src/client/game.cpp

index bad29aa7665817609a0f1722608fbd5a9ab25e70..06e8eefe3d61084b325c551f6613fde005614b96 100644 (file)
@@ -1146,7 +1146,7 @@ void Game::shutdown()
        if (current_formspec)
                current_formspec->quitMenu();
 
-       showOverlayMessage("Shutting down...", 0, 0, false);
+       showOverlayMessage(N_("Shutting down..."), 0, 0, false);
 
        if (clouds)
                clouds->drop();
@@ -1198,7 +1198,7 @@ bool Game::init(
 {
        texture_src = createTextureSource();
 
-       showOverlayMessage("Loading...", 0, 0);
+       showOverlayMessage(N_("Loading..."), 0, 0);
 
        shader_src = createShaderSource();
 
@@ -1254,7 +1254,7 @@ bool Game::initSound()
 bool Game::createSingleplayerServer(const std::string &map_dir,
                const SubgameSpec &gamespec, u16 port, std::string *address)
 {
-       showOverlayMessage("Creating server...", 0, 5);
+       showOverlayMessage(N_("Creating server..."), 0, 5);
 
        std::string bind_str = g_settings->get("bind_address");
        Address bind_addr(0, 0, 0, 0, port);
@@ -1289,7 +1289,7 @@ bool Game::createSingleplayerServer(const std::string &map_dir,
 bool Game::createClient(const std::string &playername,
                const std::string &password, std::string *address, u16 port)
 {
-       showOverlayMessage("Creating client...", 0, 10);
+       showOverlayMessage(N_("Creating client..."), 0, 10);
 
        draw_control = new MapDrawControl;
        if (!draw_control)
@@ -1442,7 +1442,7 @@ bool Game::connectToServer(const std::string &playername,
        *connection_aborted = false;
        bool local_server_mode = false;
 
-       showOverlayMessage("Resolving address...", 0, 15);
+       showOverlayMessage(N_("Resolving address..."), 0, 15);
 
        Address connect_address(0, 0, 0, 0, port);
 
@@ -1557,7 +1557,7 @@ bool Game::connectToServer(const std::string &playername,
                                }
 
                                // Update status
-                               showOverlayMessage("Connecting to server...", dtime, 20);
+                               showOverlayMessage(N_("Connecting to server..."), dtime, 20);
                        }
                }
        } catch (con::PeerNotFoundException &e) {