1 | #!/bin/bash
|
2 | po2json -i po/mypads.en.po -t static/l10n/en.json --progress none -o po/mypads.default.json
|
3 | for i in po/mypads.*.po
|
4 | do
|
5 | j=$(echo $i | cut -d '.' -f 2 | cut -d '/' -f 2)
|
6 | po2json -i $i -t po/mypads.default.json --progress none | ./.renest_json.pl -f po/mypads.default.json > po/$j.json
|
7 | mv po/$j.json static/l10n/
|
8 | done
|
9 | po2json -i po/mail.en.po -t templates/mail_en.json --progress none -o po/mail.default.json
|
10 | for i in po/mail.*.po
|
11 | do
|
12 | j=$(echo $i | cut -d '.' -f 2 | cut -d '/' -f 2)
|
13 | po2json -i $i -t po/mail.default.json --progress none | ./.renest_json.pl -f po/mail.default.json > po/mail_$j.json
|
14 | mv po/mail_$j.json templates/
|
15 | done
|
16 | npm run frontend:build
|