1
0
Fork 0

[meson] check-po target

Usage:
ninja check-po 2>&1 | less
This commit is contained in:
Witold Filipczyk 2022-10-09 17:09:58 +02:00
parent 2dc85a2060
commit 1140727fae
2 changed files with 14 additions and 0 deletions

11
po/check_po.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
SRC=$(dirname -- ${BASH_SOURCE[0]})
for po in "$SRC"/*.po
do
lang=$(basename $po .po)
echo -n "$lang"
msgfmt --check --check-accelerators="~" --verbose --statistics -o /dev/null "$SRC/$lang.po"
perl -I"$SRC/perl" "$SRC/perl/msgaccel-check" "$SRC/$lang.po"
done

View File

@ -6,3 +6,6 @@ if conf_data.get('CONFIG_NLS')
args: '--directory=' + meson.source_root()
)
endif
check_po_sh = find_program('check_po.sh')
run_target('check-po', command:[check_po_sh])