diff --git a/po/check-translations.sh b/po/check-translations.sh new file mode 100755 index 0000000..9754168 --- /dev/null +++ b/po/check-translations.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +po_dir=$(dirname $0) + +for i in $po_dir/*.po ; do + if ! grep -q `basename $i | sed 's,.po,,'` $po_dir/LINGUAS; then + echo '**********************************'; + echo '***' `basename $i | sed 's,.po,,'` missing from po/LINGUAS '***' ; + echo '**********************************'; + exit 1; + fi; +done; + +exit 0 diff --git a/po/meson.build b/po/meson.build index e9b77d7..ce0906a 100644 --- a/po/meson.build +++ b/po/meson.build @@ -1 +1,6 @@ i18n.gettext(meson.project_name(), preset: 'glib') + +test('check-translations', + find_program('check-translations.sh'), + suite: ['dist'], +)