[wmlunits] Reenable recoloring.

Always sort units overview into first place. Properly translate
"Units" heading.
This commit is contained in:
Elias Pschernig 2012-02-18 18:57:07 +00:00
parent 551946d6c7
commit dbf1082bdc
3 changed files with 3 additions and 4 deletions

View file

@ -119,7 +119,6 @@ class ImageCollector:
pass
no_tc = image.no_tc
no_tc = True
ipath = os.path.normpath(image.ipath)
cdir = os.path.normpath(options.config_dir + "/data/add-ons")

View file

@ -983,7 +983,7 @@ def generate_campaign_report(addon, isocode, campaign, wesnoth):
if campaign:
title = campaign.get_text_val("name", translation = html.translate)
else:
title = html.translate("Units", "wesnoth")
title = html.translate("Units", "wesnoth-help")
if not title:
title = cid
@ -1060,7 +1060,7 @@ def html_postprocess_file(filename, isocode, batchlist):
for i in range(2):
campaigns = cids[i]
campaigns.sort(key = lambda x: x[2])
campaigns.sort(key = lambda x: "A" if x[1] == "mainline" else "B" + x[2])
for campaign in campaigns:
addon, cname, campname, lang = campaign

View file

@ -106,7 +106,7 @@ def list_contents():
if addon == "mainline":
# Fake mainline campaign to have an overview of the mainline units
append(info, "mainline", "", name = "Units", domain = "wesnoth")
append(info, "mainline", "", name = "Units", domain = "wesnoth-help")
for campaign in campaigns:
cid = campaign.get_text_val("id")