Don't process tokens starting with a '-' into translatable strings.

This was SVN commit r15407.
This commit is contained in:
sanderd17 2014-06-21 08:09:24 +00:00
parent c793da5368
commit 8f0772034e

View File

@ -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