Merge branch 'secure-push-trad-to-zanata' into 'develop'

Secure push-trad-to-zanata

Closes #331

See merge request framasoft/framadate!326
This commit is contained in:
Thomas Citharel 2018-05-28 10:04:27 +02:00
commit f8f4cc6076
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,5 @@
locales:
json2po -P -i locale/en.json -t locale/en.json -o po/framadate.pot
scripts/locales.sh
push-locales: locales
zanata-cli -q -B push

9
scripts/locales.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
python -m json.tool < locale/en.json
if [[ $? == 0 ]];
then
json2po -P -i locale/en.json -t locale/en.json -o po/framadate.pot
else
echo "Can't convert json files to po, the json file is incorrect"
exit 1
fi