Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 &&
- Loading branch information
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |