i18n Python scripts: fix a typo in TranslationUnit._stringsKey()
I believe the problematic code could only be reached when reading buggy versions (i.e., with duplicate ids) of the legacy FlightGear XML non-master l10n files, which is why we haven't tripped on it so far.
This commit is contained in:
@@ -461,7 +461,7 @@ class TranslationUnit:
|
|||||||
|
|
||||||
def _stringsKey(self):
|
def _stringsKey(self):
|
||||||
"""Key used to compare the strings of two TranslationUnit instances."""
|
"""Key used to compare the strings of two TranslationUnit instances."""
|
||||||
return (self.self.sourceText, self.targetTexts, self.developerComments,
|
return (self.sourceText, self.targetTexts, self.developerComments,
|
||||||
self.translatorComments)
|
self.translatorComments)
|
||||||
|
|
||||||
def sameStrings(self, other):
|
def sameStrings(self, other):
|
||||||
|
|||||||
Reference in New Issue
Block a user