mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
build: Check translations using a script
Use a bash script to check the translations as we used to do during the autotools-based distcheck.
This commit is contained in:
committed by
Bastien Nocera
parent
f5a2c21f90
commit
0e2bf7e804
14
po/check-translations.sh
Executable file
14
po/check-translations.sh
Executable file
@ -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
|
||||||
@ -1 +1,6 @@
|
|||||||
i18n.gettext(meson.project_name(), preset: 'glib')
|
i18n.gettext(meson.project_name(), preset: 'glib')
|
||||||
|
|
||||||
|
test('check-translations',
|
||||||
|
find_program('check-translations.sh'),
|
||||||
|
suite: ['dist'],
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user