Made the strings in TURNS_OVER_ADVANTAGE translatable.
This commit is contained in:
parent
08336216dd
commit
b3b83f9780
1 changed files with 3 additions and 2 deletions
|
@ -81,6 +81,7 @@
|
|||
name=time over
|
||||
[lua]
|
||||
code=<<
|
||||
local _ = wesnoth.textdomain "wesnoth-multiplayer"
|
||||
local function all_sides()
|
||||
local function f(s, i)
|
||||
i = i + 1
|
||||
|
@ -122,7 +123,7 @@
|
|||
elseif team.__cfg.color == 8 then r, g, b = 255, 255, 255
|
||||
elseif team.__cfg.color == 9 then r, g, b = 0, 128, 128 end
|
||||
side_comparison = side_comparison ..
|
||||
string.format("<span foreground=\"#%02x%02x%02x\">Side %d</span>: Income score = %d Unit score = %d Gold = %d\nGrand total: <b>%d</b>\n",
|
||||
string.format( tostring( _ "<span foreground='#%02x%02x%02x'>Side %d</span>: Income score = %d Unit score = %d Gold = %d") .. "\n" .. tostring( _ "Grand total: <b>%d</b>") .. "\n",
|
||||
r, g, b, side, income, units, team.gold, total)
|
||||
if total > total_score then
|
||||
color = string.format("#%02x%02x%02x", r, g, b)
|
||||
|
@ -132,7 +133,7 @@
|
|||
until true -- end ugly hack
|
||||
end
|
||||
side_comparison = side_comparison ..
|
||||
string.format("\n<span foreground=\"%s\">Side %d</span> has the advantage.", color, side_num)
|
||||
string.format( "\n" .. tostring( _ "<span foreground='%s'>Side %d</span> has the advantage."), color, side_num)
|
||||
wesnoth.fire("message", { message = side_comparison, speaker = "narrator", image = "wesnoth-icon.png"})
|
||||
>>
|
||||
[/lua]
|
||||
|
|
Loading…
Add table
Reference in a new issue