Skip to content

Commit

Permalink
extract comments for translators (lua side)
Browse files Browse the repository at this point in the history
  • Loading branch information
aBlueShadow authored Nov 20, 2024
1 parent 97c274f commit 6b57c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def update_other_languages(base):
cmd = ["xgettext", "--keyword=_:1c,2", "--keyword=_:1", "--omit-header", "-j", "-d", output[:-3], "-C", "-"]
subprocess.run(cmd, check=True, input=b"")
pre = open(output, "rt").read()
cmd = ["xgettext", "--keyword=_:1c,2", "--keyword=_:1", "--omit-header", "-j", "-d", output[:-3], script]
cmd = ["xgettext", "--keyword=_:1c,2", "--keyword=_:1", "--add-comments=TRANSLATORS", "--omit-header", "-j", "-d" , output[:-3], script]
subprocess.run(cmd, check=True)
post = open(output, "rt").read()
if pre == post and "name" not in info:
Expand Down

0 comments on commit 6b57c99

Please sign in to comment.