Some string changes based on translators' feedback.

This was SVN commit r16863.
This commit is contained in:
Nicolas Auvray 2015-07-16 17:07:55 +00:00
parent f9440a964a
commit 76d5374e77
5 changed files with 6 additions and 6 deletions

View File

@ -325,7 +325,7 @@ function updateProfile()
if (attributes[0].totalGamesPlayed != 0)
Engine.GetGUIObjectByName("profileRatioText").caption = sprintf(translate("%(percentage)s%%"), { percentage: winRate });
else
Engine.GetGUIObjectByName("profileRatioText").caption = translate("-");
Engine.GetGUIObjectByName("profileRatioText").caption = translateWithContext("Used for an undefined winning rate", "-");
return;
}
else if (!Engine.GetGUIObjectByName("leaderboard").hidden)
@ -353,7 +353,7 @@ function updateProfile()
if (attributes[0].totalGamesPlayed != 0)
Engine.GetGUIObjectByName("ratioText").caption = sprintf(translate("%(percentage)s%%"), { percentage: winRate });
else
Engine.GetGUIObjectByName("ratioText").caption = translate("-");
Engine.GetGUIObjectByName("ratioText").caption = translateWithContext("Used for an undefined winning rate", "-");
}
/**

View File

@ -346,7 +346,7 @@ function openDiplomacy()
var simState = GetSimState();
let button = Engine.GetGUIObjectByName("diplomacyAttackRequest["+(i-1)+"]");
button.hidden = simState.ceasefireActive || !(g_Players[i].isEnemy[we]);
button.tooltip = translate("request for your allies to attack this enemy");
button.tooltip = translate("Request your allies to attack this enemy");
button.onpress = (function(i, we){ return function() {
Engine.PostNetworkCommand({"type": "attack-request", "source": we, "target": i});
} })(i, we);

View File

@ -518,7 +518,7 @@ function addChatMessage(msg, playerAssignments)
// Since livestock can be attacked/gathered by other players,
// we display a more specific notification in this case to not confuse the player
if (msg.targetIsDomesticAnimal)
var message = translate("Your livestock have been attacked by %(attacker)s!");
var message = translate("Your livestock has been attacked by %(attacker)s!");
else
var message = translate("You have been attacked by %(attacker)s!");
formatted = sprintf(message, { attacker: "[color=\"" + playerColor + "\"]" + username + "[/color]" });

View File

@ -2,7 +2,7 @@
"settings" : {
"Name" : "Persian Highlands",
"Script" : "persian_highlands.js",
"Description" : "A dry central plateau rich in minerals surrounded by rocky hills\n\nThe southern parts of Zagros Mountains where the heart of the Persian empires and population. Although the altitude is high, the southern parts are drier that the northern Zagros, leading to a semi-arid climate. Still there are some sparse oak forests in the higher grounds.",
"Description" : "A dry central plateau rich in minerals surrounded by rocky hills\n\nThe southern parts of Zagros Mountains were the heart of the Persian empires and population. Although the altitude is high, the southern parts are drier that the northern Zagros, leading to a semi-arid climate. Still there are some sparse oak forests in the higher grounds.",
"BaseTerrain" : ["desert_dirt_persia_2", "desert_dirt_persia_1" , "desert_dirt_persia_2", "grass_field_dry", "grass_field_dry"],
"BaseHeight" : 10,
"Preview" : "persian_highlands.png",

View File

@ -34,7 +34,7 @@ m.chatAnswerRequestAttack = function(gameState, player, answer, other)
if (other !== undefined)
var message = "/allies " + markForTranslation("I cannot help you against %(_player_)s for the time being, as I have another attack foreseen against %(_player_2)s.");
else
var message = "/allies " + markForTranslation("Sorry, I have not enough soldiers currently, but my next attack will target %(_player_)s.");
var message = "/allies " + markForTranslation("Sorry, I do not have enough soldiers currently, but my next attack will target %(_player_)s.");
}
var chat = {