summaryrefslogtreecommitdiff
path: root/po/check_translations.sh
blob: 76562cb20ccf6c13bd9b7c4c54351c76f6dde1b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

# Go to po directory
cd "$(dirname "${0}")" || exit 1

RET=0

for i in *.po; do
    lang="$(basename "${i}" | sed 's,.po,,')"
    if ! grep -q ^"${lang}" "LINGUAS"; then
        echo "*** Language ${lang} is missing from LINGUAS ***"
        RET=1
    fi
done

exit "${RET}"