Teach wmllint to detect and warn of user_team_name members...

...without translation marks, and clean up a few.
This commit is contained in:
Eric S. Raymond 2008-04-03 17:59:26 +00:00
parent 1dbcd26484
commit 01f02a707b
5 changed files with 15 additions and 6 deletions

View file

@ -27,7 +27,7 @@
canrecruit=yes
controller=human
team_name=wesnothians
user_team_name=Wesnothians
user_team_name=_ Wesnothians
[/side]
[side]

View file

@ -81,7 +81,7 @@
leader_value=20
[/ai]
{GOLD 100 180 260}
user_team_name=Asheviere
user_team_name=_ Asheviere
[/side]
{STARTING_VILLAGES 3 5}

View file

@ -33,7 +33,7 @@
shroud=yes
fog=no
team_name=dwarf_ally
userr_team_name=_ Dwarf Ally
user_team_name=_ Dwarf Ally
[/side]
#Side=2 dwarf 1 (dwarf allies)
@ -47,7 +47,7 @@
shroud=no
fog=no
team_name=dwarf_ally
userr_team_name=_ Dwarf Ally
user_team_name=_ Dwarf Ally
[/side]
#Side=3 troll 1 (advance guard trolls at outpost)

View file

@ -216,7 +216,16 @@
user_team_name=_ Eloh Cultists
[/side]
ts
[side]
side=7
no_leader=yes
gold=0
income=0
controller=ai
shroud=no
fog=no
team_name=eloh_ally
user_team_name=_ Eloh Cultists
#ifdef EASY
recruit=Naga Fighter, Naga Warrior, Naga Guardian, Naga Hunter

View file

@ -869,7 +869,7 @@ def sanity_check(filename, lines):
pass
elif key == 'name': # FIXME: check this someday
pass
elif key in ("message", "name", "description", "story", "note", "text", "summary", "caption", "label", "cannot_use_message", "set_description") and not value.startswith("$"):
elif key in ("message", "name", "description", "story", "note", "text", "summary", "caption", "label", "cannot_use_message", "set_description", "user_team_name") and not value.startswith("$"):
if not has_tr_mark:
print '"%s", line %d: %s needs translation mark' \
% (filename, i+1, key)