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 canrecruit=yes
controller=human controller=human
team_name=wesnothians team_name=wesnothians
user_team_name=Wesnothians user_team_name=_ Wesnothians
[/side] [/side]
[side] [side]

View File

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

View File

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

View File

@ -216,7 +216,16 @@
user_team_name=_ Eloh Cultists user_team_name=_ Eloh Cultists
[/side] [/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 #ifdef EASY
recruit=Naga Fighter, Naga Warrior, Naga Guardian, Naga Hunter recruit=Naga Fighter, Naga Warrior, Naga Guardian, Naga Hunter

View File

@ -869,7 +869,7 @@ def sanity_check(filename, lines):
pass pass
elif key == 'name': # FIXME: check this someday elif key == 'name': # FIXME: check this someday
pass 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: if not has_tr_mark:
print '"%s", line %d: %s needs translation mark' \ print '"%s", line %d: %s needs translation mark' \
% (filename, i+1, key) % (filename, i+1, key)