Replace a translation string by an equivalent that is already used thrice.

This was SVN commit r16883.
This commit is contained in:
leper 2015-07-27 01:08:27 +00:00
parent da48c8c26f
commit be36bec6df

View File

@ -182,7 +182,7 @@ function displaySingle(entState, template)
if (entState.trader.goods.amount.market2Gain)
totalGain += entState.trader.goods.amount.market2Gain;
Engine.GetGUIObjectByName("resourceCarryingText").caption = totalGain;
Engine.GetGUIObjectByName("resourceCarryingIcon").tooltip = sprintf(translate("Gain: %(amount)s"), { amount: getTradingTooltip(entState.trader.goods.amount) });
Engine.GetGUIObjectByName("resourceCarryingIcon").tooltip = sprintf(translate("Gain: %(gain)s"), { "gain": getTradingTooltip(entState.trader.goods.amount) });
}
// And for number of workers
else if (entState.foundation && entState.visibility == "visible")