2018-05-27 17:48:52 +02:00
|
|
|
#!/bin/bash
|
2018-07-06 18:06:35 +02:00
|
|
|
python -m json.tool < locale/en.json >/dev/null 2>&1
|
2018-05-27 17:48:52 +02:00
|
|
|
if [[ $? == 0 ]];
|
|
|
|
then
|
2018-07-06 18:06:35 +02:00
|
|
|
json2po -P -i locale/en.json -t locale/en.json -o po/framadate.pot --duplicates merge
|
2018-05-27 17:48:52 +02:00
|
|
|
else
|
|
|
|
echo "Can't convert json files to po, the json file is incorrect"
|
|
|
|
exit 1
|
|
|
|
fi
|