X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=i18n%2Fupdate.sh;fp=i18n%2Fupdate.sh;h=adfb3eed6196ee6e5e7bfe470cf13fd4d134d65c;hp=0000000000000000000000000000000000000000;hb=ad79428b72613730f61b0b3fdb18afa21eee3cc7;hpb=0f02627a552eb4c6811e12b6ded509ffed152e58 diff --git a/i18n/update.sh b/i18n/update.sh new file mode 100755 index 00000000..adfb3eed --- /dev/null +++ b/i18n/update.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +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}