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:
commit
f8f4cc6076
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
|||||||
locales:
|
locales:
|
||||||
json2po -P -i locale/en.json -t locale/en.json -o po/framadate.pot
|
scripts/locales.sh
|
||||||
|
|
||||||
push-locales: locales
|
push-locales: locales
|
||||||
zanata-cli -q -B push
|
zanata-cli -q -B push
|
||||||
|
9
scripts/locales.sh
Executable file
9
scripts/locales.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user