X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=po%2Fupdate.sh;fp=po%2Fupdate.sh;h=8bfb9acd43e74571cbbfc44d88cd271fa57a073f;hp=0000000000000000000000000000000000000000;hb=2573fe442275287321d828d88a5fb8d743952388;hpb=61df0585d3b0e958738b833c844341f72c27182c diff --git a/po/update.sh b/po/update.sh new file mode 100755 index 00000000..8bfb9acd --- /dev/null +++ b/po/update.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env sh +if [ ! $# -eq 1 ]; then + exec >&2 + echo "Usage: $0 " + echo " language: two-letter language code + country code if applicable (de, en_GB)" + exit 1 +fi + +CONV=lconvert +BASE=quassel_$1 +PO=$BASE.po +TS=$BASE.ts + +$CONV -i $PO -o $TS && + lupdate ../src -ts $TS && + $CONV -i $TS -o $PO + +# remove cruft +rm ${TS}