1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-13 05:43:37 -04:00
elinks/po/update_po.sh

16 lines
295 B
Bash
Raw Permalink Normal View History

2022-10-09 11:24:08 -04:00
#!/bin/bash
SRC=$(dirname -- ${BASH_SOURCE[0]})
for po in "$SRC"/*.po
do
lang=$(basename $po .po)
echo -n "$lang"
if $(msgmerge "$SRC/$lang.po" "$SRC/elinks.pot" -o "$lang.new.po"); then
mv -f "$lang.new.po" "$SRC/$lanf.po"
else
echo "msgmerge failed!"
rm -f "$lang.new.po"
fi
done