mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
16 lines
295 B
Bash
Executable File
16 lines
295 B
Bash
Executable File
#!/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
|