Compile translations > add msgfmt for mo (gettext)

pull/1/head
Thomas Metois 2016-12-19 16:15:19 +01:00
parent d256e6a12c
commit 0d0c88f8cb
1 changed files with 20 additions and 6 deletions

View File

@ -1,13 +1,27 @@
#!/bin/bash #!/bin/bash
if [ -d node_modules/ng_backoffice ]; then if [ -d node_modules/ng_backoffice ]; then
pushd node_modules/ng_backoffice pushd node_modules/ng_backoffice
grunt compile_translations grunt compile_translations
grunt concat grunt concat
if [ -d node_modules/ng_backoffice/po ]; then
for i in $(ls node_modules/ng_backoffice/po/*\.po); do
l=$(basename $i .po)
msgfmt -o ./node_modules/ng_backoffice/po/$l.mo -v ./node_modules/ng_backoffice/po/$l.po
done;
fi
fi fi
if [ -d node_modules/ng_client ]; then if [ -d node_modules/ng_client ]; then
pushd node_modules/ng_client pushd node_modules/ng_client
grunt compile_translations grunt compile_translations
grunt concat grunt concat
if [ -d node_modules/ng_client/po ]; then
for i in $(ls node_modules/ng_client/po/*\.po); do
l=$(basename $i .po)
msgfmt -o ./node_modules/ng_client/po/$l.mo -v ./node_modules/ng_client/po/$l.po
done;
fi
fi fi