Added check for macro calls in translatable strings.
Mainline has none at this time.
This commit is contained in:
parent
52f0f30310
commit
b84b295168
1 changed files with 3 additions and 0 deletions
|
@ -741,6 +741,9 @@ def sanity_check(filename, lines):
|
|||
has_tr_mark = value.lstrip().startswith("_")
|
||||
if key == 'role':
|
||||
present.append(value)
|
||||
if has_tr_mark and '{' in value:
|
||||
print '"%s", line %d: macro reference in translatable string'\
|
||||
% (filename, i+1)
|
||||
# Check correctness of translation marks and desciptions
|
||||
if key.startswith("#"): # FIXME: parse_attribute is confused.
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue