diff options
Diffstat (limited to 'BuildTools/CheckTranslations.py')
| -rwxr-xr-x | BuildTools/CheckTranslations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BuildTools/CheckTranslations.py b/BuildTools/CheckTranslations.py index 95c7e91..b39af08 100755 --- a/BuildTools/CheckTranslations.py +++ b/BuildTools/CheckTranslations.py @@ -35,16 +35,16 @@ for filename in os.listdir("Swift/Translations") : source = message.getElementsByTagName("source")[0] sourceText = getText(source.childNodes) sourcePlaceholders = set(re.findall("%\d+%?", sourceText)) translation = message.getElementsByTagName("translation")[0] if "type" in translation.attributes.keys() and translation.attributes["type"]. value == "unfinished" : finished = False translationText = getText(translation.childNodes) translationPlaceholders = set(re.findall("%\d+%?", translationText)) if translationPlaceholders != sourcePlaceholders : print "[Error] " + filename + ": Placeholder mismatch in translation '" + sourceText + "'" if not finished : print "[Warning] " + filename + ": Unfinished" - if language not in desktop_generic_names : + if language not in desktop_generic_names and language != "en" : print "[Warning] GenericName field missing in desktop entry for " + language - if language not in desktop_comments : + if language not in desktop_comments and language != "en" : print "[Warning] Comment field missing in desktop entry for " + language |
Swift