Tweak the sanity checker so it can handle a special case in UtBS.
This commit is contained in:
parent
250aa33628
commit
86637f363c
2 changed files with 6 additions and 5 deletions
|
@ -619,7 +619,7 @@
|
|||
|
||||
[set_variable]
|
||||
name=intl_ally_name
|
||||
value= _ "Grog"
|
||||
value= _ "Grog" # wmllint: ignore
|
||||
[/set_variable]
|
||||
[/then]
|
||||
[/if]
|
||||
|
@ -642,7 +642,7 @@
|
|||
|
||||
[set_variable]
|
||||
name=intl_ally_name
|
||||
value= _ "Nog"
|
||||
value= _ "Nog" # wmllint: ignore
|
||||
[/set_variable]
|
||||
[/then]
|
||||
[/if]
|
||||
|
@ -665,7 +665,7 @@
|
|||
|
||||
[set_variable]
|
||||
name=intl_ally_name
|
||||
value= _ "Rogrimir"
|
||||
value= _ "Rogrimir" # wmllint: ignore
|
||||
[/set_variable]
|
||||
[/then]
|
||||
[/if]
|
||||
|
@ -688,7 +688,7 @@
|
|||
|
||||
[set_variable]
|
||||
name=intl_ally_name
|
||||
value= _ "Jarl"
|
||||
value= _ "Jarl" # wmllint: ignore
|
||||
[/set_variable]
|
||||
[/then]
|
||||
[/if]
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
#
|
||||
# Note: You can shut wmllint up about custom terrains by having a comment
|
||||
# on the same line that includes the string "wmllint: ignore".
|
||||
# The same magic comment will also disable checking of translation marks.
|
||||
#
|
||||
# You can also prevent description insertions with "wmllint: no-icon".
|
||||
#
|
||||
|
@ -929,7 +930,7 @@ def sanity_check(filename, lines):
|
|||
elif preamble_seen and not ignore_id and not in_object and not value in present:
|
||||
print '"%s", line %d: unknown \'%s\' referred to by id' \
|
||||
% (filename, i+1, value)
|
||||
if has_tr_mark:
|
||||
if has_tr_mark and not "wmllint: ignore" in line:
|
||||
print '"%s", line %d: %s should not have a translation mark' \
|
||||
% (filename, i+1, key)
|
||||
lines[i] = lines[i].replace("_", "", 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue