Add script to push po files to zanata

This commit is contained in:
Luc Didry
2018-03-09 19:52:19 +01:00
parent d00f151a2e
commit 68d3ddb61a
+11
View File
@@ -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