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 a865294 commit 5bfd6a1Copy full SHA for 5bfd6a1
scripts/generate_commit_msg.py
@@ -52,9 +52,14 @@ def generate_commit_msg():
52
or old_entries[entry.msgid] != entry.msgstr
53
):
54
translator = new_po.metadata.get("Last-Translator")
55
- translator = translator.split(",")[0].strip()
+ # Prevent failure on missing Last-Translator field.
56
+ # Transifex only adds Last-Translator if someone from
57
+ # the team translated. If it was uploaded by an account
58
+ # that is not in the team, this field will be missing.
59
if translator:
- translators.add(f"Co-Authored-By: {translator}")
60
+ translator = translator.split(",")[0].strip()
61
+ if translator:
62
+ translators.add(f"Co-Authored-By: {translator}")
63
break
64
65
print("Update translation\n\n" + "\n".join(translators))
0 commit comments