We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1915095 commit 9461867Copy full SHA for 9461867
scripts/create_issue.py
@@ -66,10 +66,11 @@ def check_issue_not_already_existing(self, pofilename):
66
67
@staticmethod
68
def check_translation_is_pending(pofile):
69
- if pofile.fuzzy == 0 and any([
70
- pofile.translated == pofile.entries,
71
- pofile.untranslated == 0,
72
- ]):
+ no_fuzzy_translations = pofile.fuzzy == 0
+ translated_match_all_entries = pofile.translated == pofile.entries
+ no_untranslated_entries_left = pofile.untranslated == 0
+
73
+ if no_fuzzy_translations and (translated_match_all_entries or no_untranslated_entries_left):
74
print(f'Skipping {pofile.filename}. The file is 100% translated already.')
75
raise PoFileAlreadyTranslated
76
0 commit comments