Commit 3637e052 authored by Luc Didry's avatar Luc Didry
Browse files

[Zanata] Add script to update zanata for one locale

ex: ./push-trad-to-zanata.sh fr_FR
parent f340fbe0
#!/bin/bash
FILE=$1
if [[ ! -e locale/$FILE.json ]]
then
echo "locale/$FILE.json does not exist. Exiting."
exit 1
else
LOCALE=$(echo $FILE | sed -e "s@_@-@g")
json2po -i locale/$FILE.json -t locale/en.json -o po/$FILE.po
zanata-cli -q -B push --push-type trans -l $LOCALE
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment