Skip to content

Commit

Permalink
Make showOverlayMessage strings translatable (#7964)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 authored and nerzhul committed Dec 13, 2018
1 parent 08610aa commit 8471d02
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/client/game.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -1198,7 +1198,7 @@ bool Game::init(
{
texture_src = createTextureSource();

showOverlayMessage("Loading...", 0, 0);
showOverlayMessage(N_("Loading..."), 0, 0);

shader_src = createShaderSource();

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 8471d02

Please sign in to comment.