Change Ivanovic's test slightly.
This commit is contained in:
parent
251d75bef4
commit
d3bbac3603
1 changed files with 1 additions and 1 deletions
|
@ -1509,7 +1509,7 @@ if __name__ == '__main__':
|
|||
transformed = old.sub(new, transformed)
|
||||
# Check for things marked translated that aren't strings
|
||||
if "_" in transformed and not "wmllint: ignore" in transformed:
|
||||
m = re.search(r'[=(]\s*_\s*("?)', transformed)
|
||||
m = re.search(r'[=(]\s*_\s+("?)', transformed)
|
||||
if m and not m.group(1):
|
||||
msg = '"%s", line %d: translatability mark before non-string' % \
|
||||
(filename, lineno)
|
||||
|
|
Loading…
Add table
Reference in a new issue