Merge pull request #20476 from victoryforce/translations-260309 #970
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check the PO files | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "!**" | |
| - "po/**" | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - "!**" | |
| - "po/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| po-check: | |
| if: github.repository == 'darktable-org/darktable' || github.event_name == 'workflow_dispatch' | |
| name: Check the PO files for correctness | |
| runs-on: ubuntu-slim | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: false | |
| path: src | |
| fetch-depth: 1 | |
| - name: Check to see if msgfmt reports an error | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get -y install gettext | |
| cd src/po | |
| for pofile in *.po; do | |
| echo "Checking $pofile" | |
| msgfmt -c -v $pofile -o /dev/null | |
| test $? -eq 0 || exit 1 | |
| done |