Pacify wmllint about some legitimate macro uses.

This commit is contained in:
Eric S. Raymond 2008-09-30 14:24:41 +00:00
parent f64e1df68a
commit ff1f2d30c0
7 changed files with 11 additions and 7 deletions

View file

@ -40,7 +40,7 @@
condition=lose
[/objective]
note={NEW_GOLD_CARRYOVER_NOTE_40}
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
[/objectives]
[/event]

View file

@ -34,7 +34,7 @@
condition=lose
[/objective]
note={NEW_GOLD_CARRYOVER_NOTE_40}
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
[/objectives]
[/event]

View file

@ -35,7 +35,7 @@
condition=lose
[/objective]
note={NEW_GOLD_CARRYOVER_NOTE_40}
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
[/objectives]
[/event]

View file

@ -30,7 +30,7 @@
condition=lose
[/objective]
note={NEW_GOLD_CARRYOVER_NOTE_40}
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
[/objectives]
[/event]

View file

@ -37,7 +37,7 @@
condition=lose
[/objective]
note={NEW_GOLD_CARRYOVER_NOTE_40}
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_40}
[/objectives]
[/event]

View file

@ -150,7 +150,7 @@
condition=lose
[/objective]
note={NEW_GOLD_CARRYOVER_NOTE_20}
note=_ "" + {NEW_GOLD_CARRYOVER_NOTE_20}
[/objectives]
#ifdef HARD

View file

@ -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]):