diff --git a/xml2po.sh b/xml2po.sh index 350dc1f..f20efbb 100644 --- a/xml2po.sh +++ b/xml2po.sh @@ -8,6 +8,7 @@ RES=res/values POT=$TRAN/$PACKAGE.pot PODIR=translations/$PACKAGE PO=$PODIR/$PACKAGE- +CREDITS=res/values/translators.xml download() { FN=launchpad-$(date +%F).tar.gz @@ -44,7 +45,7 @@ translate_po2xml() { xml2po -a -l $lang -p $po $RES/strings.xml | sed "s/'/\\\\'/g" > $dir/strings.xml done sed -i 's/\\\\'\''/\\'\''/g' res/values-*/strings.xml - { + [ -f $CREDITS ] && { cat < @@ -55,7 +56,7 @@ $(cat translations/$PACKAGE/$PACKAGE-*.po | awk -F ': | <' '/Last-Translator:/ { EOF - } > res/values/translators.xml + } > $CREDITS }