diff options
Diffstat (limited to 'po')
-rwxr-xr-x | po/check_translations.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/po/check_translations.sh b/po/check_translations.sh new file mode 100755 index 00000000..76562cb2 --- /dev/null +++ b/po/check_translations.sh @@ -0,0 +1,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}" |