wc: Fix untranslatable scenario name
This commit is contained in:
parent
5bb6cdd8a4
commit
98324ee4c2
2 changed files with 4 additions and 4 deletions
|
@ -126,13 +126,13 @@ function wc_ii_generate_scenario(nplayers, gen_args)
|
|||
|
||||
-- set the correct scenario name.
|
||||
if scenario_num == 1 then --first map
|
||||
scenario.name = "WC_II_" .. nplayers .. " - " .. _"Start"
|
||||
scenario.name = (gen_args.config_name or "World Conquest") .. " - " .. _"Start"
|
||||
else
|
||||
local scenario_desc = _ "Scenario" .. scenario_num
|
||||
local scenario_desc = _ "Scenario" .. " ".. scenario_num
|
||||
if scenario_num == 5 then
|
||||
scenario_desc = _"Final Battle"
|
||||
end
|
||||
scenario.name = "WC_II_" .. nplayers .. " " .. scenario_desc .. " - "--.. scenario.map_name
|
||||
scenario.name = (gen_args.config_name or "World Conquest") .. " - " .. scenario_desc .. " - " .. (scenario.name or "")
|
||||
end
|
||||
|
||||
local res = wc2_convert.lon_to_wml(scenario, "scenario")
|
||||
|
|
|
@ -107,5 +107,5 @@ function set_terrain(a)
|
|||
end
|
||||
|
||||
function set_map_name(str)
|
||||
scenario_data.map_name = str
|
||||
scenario_data.scenario.name = str
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue