1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/po/check_po.sh

12 lines
279 B
Bash
Raw Normal View History

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