From 68d3ddb61a242873edd94390f23843c95bf9460e Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 9 Mar 2018 19:52:19 +0100 Subject: [PATCH] Add script to push po files to zanata --- push-trad-to-zanata.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 push-trad-to-zanata.sh diff --git a/push-trad-to-zanata.sh b/push-trad-to-zanata.sh new file mode 100644 index 0000000..df7f104 --- /dev/null +++ b/push-trad-to-zanata.sh @@ -0,0 +1,11 @@ +#!/bin/bash +FILE=$1 +if [[ ! -e themes/default/lib/Lutim/I18N/$FILE.po ]] +then + echo "themes/default/lib/Lutim/I18N/$FILE.po does not exist. Exiting." + exit 1 +else + LOCALE=$(echo $FILE | sed -e "s@_@-@g") + zanata-cli -q -B push --push-type trans -l $LOCALE +fi +