mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-01-23 10:15:16 +00:00
Test json files with python module to make sure they're valid before converting them to po Signed-off-by: Thomas Citharel <tcit@tcit.fr> Remove &&
9 lines
232 B
Bash
Executable file
9 lines
232 B
Bash
Executable file
#!/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
|