date.chapril.org-framadate/.po2json.sh

8 lines
196 B
Bash
Executable File

#!/bin/bash
for i in po/*.po
do
j=$(echo $i | cut -d '.' -f 1 | cut -d '/' -f 2)
po2json -i $i -t locale/en.json --progress none | ./.renest_json.pl > po/$j.json
done
mv po/*.json locale/