- centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "You are now on: ", s1));
+ centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, sprintf(_("You are now on: %s"), s1)));
} else if (type == DEATH_AUTOTEAMCHANGE) {
- centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "You have been moved into a different team to improve team balance\nYou are now on: ", s1));
+ centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, sprintf(_("You have been moved into a different team to improve team balance\nYou are now on: %s"), s1)));
} else if (type == DEATH_CAMP) {
if(gentle)
- centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1Reconsider your tactics, camper!"));
+ centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, _("^1Reconsider your tactics, camper!")));
- drawcolorcodedstring(pos + eY * i * chatsize, textShortenToWidth("^3Player^7: This is the chat area.", mySize_x, '1 1 0' * chatsize, stringwidth_colors), '1 1 0' * chatsize, a, DRAWFLAG_NORMAL);
+ drawcolorcodedstring(pos + eY * i * chatsize, textShortenToWidth(_("^3Player^7: This is the chat area."), mySize_x, '1 1 0' * chatsize, stringwidth_colors), '1 1 0' * chatsize, a, DRAWFLAG_NORMAL);
- s = strcat("^1Spectating: ^7", GetPlayerName(spectatee_status - 1));
+ s = sprintf(_("^1Spectating: ^7%s"), GetPlayerName(spectatee_status - 1));
drawInfoMessage(s)
if(spectatee_status == -1)
- s = strcat("^1Press ^3", getcommandkey("primary fire", "+fire"), "^1 to spectate");
+ s = sprintf(_("^1Press ^3%s^1 to spectate"), getcommandkey("primary fire", "+fire"));
else
- s = strcat("^1Press ^3", getcommandkey("primary fire", "+fire"), "^1 for another player");
+ s = sprintf(_("^1Press ^3%s^1 for another player"), getcommandkey("primary fire", "+fire"));
drawInfoMessage(s)
if(spectatee_status == -1)
- s = strcat("^1Use ^3", getcommandkey("next weapon", "weapnext"), "^1 or ^3", getcommandkey("previous weapon", "weapprev"), "^1 to change the speed");
+ s = sprintf(_("^1Use ^3%s^1 or ^3%s^1 to change the speed"), getcommandkey("next weapon", "weapnext"), getcommandkey("previous weapon", "weapprev"));
else
- s = strcat("^1Press ^3", getcommandkey("secondary fire", "+fire2"), "^1 to observe");
+ s = sprintf(_("^1Press ^3%s^1 to observe"), getcommandkey("secondary fire", "+fire2"));
drawInfoMessage(s)
- s = strcat("^1Press ^3", getcommandkey("server info", "+show_info"), "^1 for gamemode info");
+ s = sprintf(_("^1Press ^3%s^1 for gamemode info"), getcommandkey("server info", "+show_info"));
drawInfoMessage(s)
if(gametype == GAME_ARENA)
- s = "^1Wait for your turn to join";
+ s = _("^1Wait for your turn to join");
else if(gametype == GAME_LMS)
{
entity sk;
sk = playerslots[player_localentnum - 1];
if(sk.(scores[ps_primary]) >= 666)
- s = "^1Match has already begun";
+ s = _("^1Match has already begun");
else if(sk.(scores[ps_primary]) > 0)
- s = "^1You have no more lives left";
+ s = _("^1You have no more lives left");
else
- s = strcat("^1Press ^3", getcommandkey("jump", "+jump"), "^1 to join");
+ s = sprintf(_("^1Press ^3%s^1 to join"), getcommandkey("jump", "+jump"));
}
else
- s = strcat("^1Press ^3", getcommandkey("jump", "+jump"), "^1 to join");
+ s = sprintf(_("^1Press ^3%s^1 to join"), getcommandkey("jump", "+jump"));