diff --git a/Makefile b/Makefile index 2f4889c..4d4416d 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/scripts/locales.sh b/scripts/locales.sh new file mode 100755 index 0000000..47f00c9 --- /dev/null +++ b/scripts/locales.sh @@ -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