mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-02 08:57:19 -04:00
16 lines
295 B
Bash
16 lines
295 B
Bash
|
#!/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
|