forked from darktable-org/darktable
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 874 Bytes
/
check-po.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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-latest
steps:
- uses: actions/checkout@v4
with:
submodules: false
path: src
fetch-depth: 1
- name: Check to see if msgfmt reports an error
run: |
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