From 14eb302022e53575846c9015d3b8fe356bb6f8a9 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Thu, 18 Jun 2020 00:56:37 +0200 Subject: [PATCH] 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. --- python3-flightgear/flightgear/meta/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python3-flightgear/flightgear/meta/i18n.py b/python3-flightgear/flightgear/meta/i18n.py index 4d7998e..2c1e5f8 100644 --- a/python3-flightgear/flightgear/meta/i18n.py +++ b/python3-flightgear/flightgear/meta/i18n.py @@ -461,7 +461,7 @@ class TranslationUnit: def _stringsKey(self): """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) def sameStrings(self, other):