Pacify wmllint about some legitimate macro uses.
This commit is contained in:
parent
f64e1df68a
commit
ff1f2d30c0
7 changed files with 11 additions and 7 deletions
|
@ -40,7 +40,7 @@
|
|||
condition=lose
|
||||
[/objective]
|
||||
|
||||
note={NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
[/objectives]
|
||||
[/event]
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
condition=lose
|
||||
[/objective]
|
||||
|
||||
note={NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
[/objectives]
|
||||
[/event]
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
condition=lose
|
||||
[/objective]
|
||||
|
||||
note={NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
[/objectives]
|
||||
[/event]
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
condition=lose
|
||||
[/objective]
|
||||
|
||||
note={NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
[/objectives]
|
||||
[/event]
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
condition=lose
|
||||
[/objective]
|
||||
|
||||
note={NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
|
||||
[/objectives]
|
||||
[/event]
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
condition=lose
|
||||
[/objective]
|
||||
|
||||
note={NEW_GOLD_CARRYOVER_NOTE_20}
|
||||
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_20}
|
||||
[/objectives]
|
||||
|
||||
#ifdef HARD
|
||||
|
|
|
@ -525,7 +525,11 @@ def sanity_check(filename, lines):
|
|||
if key == 'role':
|
||||
present.append(value)
|
||||
if has_tr_mark:
|
||||
if '{' in value:
|
||||
# FIXME: This test is rather bogus as is.
|
||||
# Doing a better job would require tokenizing to pivk up the
|
||||
# string boundaries. I'd do it, but AI0867 is already working
|
||||
# on a parser-based wmllint.
|
||||
if '{' in value and "+" not in value:
|
||||
print '"%s", line %d: macro reference in translatable string'\
|
||||
% (filename, i+1)
|
||||
if future and re.search("[.,!?] ", lines[i]):
|
||||
|
|
Loading…
Add table
Reference in a new issue