diff --git a/.github/workflows/gettext.yaml b/.github/workflows/gettext.yaml index ec8e449d7..ae6932fb1 100644 --- a/.github/workflows/gettext.yaml +++ b/.github/workflows/gettext.yaml @@ -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 diff --git a/Makefile b/Makefile index 03b5779eb..e7c0e2f46 100644 --- a/Makefile +++ b/Makefile @@ -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