1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/po/check_po.sh
Witold Filipczyk 1140727fae [meson] check-po target
Usage:
ninja check-po 2>&1 | less
2022-10-09 17:09:58 +02:00

12 lines
279 B
Bash
Executable File

#!/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