1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-03 19:07:47 +02:00
toxic/translations/tools/update_po.sh
2015-05-30 11:55:59 +02:00

20 lines
343 B
Bash
Executable File

#!/bin/bash
cd $(dirname $0)
loc="$1"
while [ -z "$1" -a -z "$loc" ]; do
echo -n "Insert locale to update (for example \"en\"): "
read loc
done
cd ..
if [ ! -e "$loc.po" ]; then
echo "File \"$loc.po\" not found"
echo "The translation file must exist"
exit 1
else
msgmerge -U --backup=none --previous $loc.po toxic.pot
fi