push-trad-to-zanata.sh 241 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
FILE=$1
if [[ ! -e lib/Lutim/I18N/$FILE.po ]]
then
    echo "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