Skip to content

Commit

Permalink
msgmerge .po files
Browse files Browse the repository at this point in the history
I had suspected that weblate would do this; it doesn't. It only does
this for new translations. This explains why we've received no _new_
translations.

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Jun 27, 2023
1 parent 5d8b392 commit 2d3e2cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gettext.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
run: |
git config --global user.name "fsfe-system"
git config --global user.email "<>"
git add po/reuse.pot
git add po/reuse.pot po/*.po
git commit -m "Update reuse.pot"
git push origin main
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ create-pot: ## generate .pot file
xgettext --add-comments --from-code=utf-8 --output=po/reuse.pot --files-from=po/POTFILES.in
xgettext --add-comments --output=po/argparse.pot /usr/lib*/python3*/argparse.py
msgcat --output=po/reuse.pot po/reuse.pot po/argparse.pot
for name in po/*.po; do \
msgmerge --output=$${name} $${name} po/reuse.pot; \
done

.PHONY: update-po-files
update-po-files: create-pot ## update .po files
Expand Down

0 comments on commit 2d3e2cf

Please sign in to comment.