Don't process tokens starting with a '-' into translatable strings.
This was SVN commit r15407.
This commit is contained in:
parent
c793da5368
commit
8f0772034e
@ -421,7 +421,9 @@ class xml(Extractor):
|
||||
comments.append(comment)
|
||||
if "splitOnWhitespace" in self.keywords[keyword]:
|
||||
for splitText in element.text.split():
|
||||
yield splitText, context, position, comments
|
||||
# split on whitespace is used for token lists, there, a leading '-' means the token has to be removed, so it's not to be processed here either
|
||||
if splitText[0] != "-":
|
||||
yield splitText, context, position, comments
|
||||
else:
|
||||
yield element.text, context, position, comments
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user