mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 22:03:24 +00:00
Teach wmllint to detect and warn of user_team_name members...
...without translation marks, and clean up a few.
This commit is contained in:
parent
1dbcd26484
commit
01f02a707b
@ -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]
|
||||||
|
@ -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}
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user