From ed41303886d5067d6f05d1c2599cc06a832fdebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Mon, 11 May 2020 16:47:59 +0200 Subject: [PATCH] Add GitHub Action for checking PO files --- .github/workflows/check-translations.yml | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/check-translations.yml diff --git a/.github/workflows/check-translations.yml b/.github/workflows/check-translations.yml new file mode 100644 index 0000000000..e1345a66bd --- /dev/null +++ b/.github/workflows/check-translations.yml @@ -0,0 +1,27 @@ +name: Check translations + +on: + push: + paths: + - 'locales/*.po' + pull_request: + paths: + - 'locales/*.po' + +jobs: + check-po-validity: + name: Check translations + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install GNU gettext + run: sudo apt-get install gettext + + - name: Check PO files with msgfmt -v -c + run: | + for i in translations/*.po ; do + echo "checking $i..." + msgfmt -v -c -o /dev/null $i + done