Fix compile translation to .po

pull/1/head
Thomas Metois 2017-02-14 15:52:18 +01:00
parent d684303784
commit 0ca268429b
1 changed files with 7 additions and 7 deletions

View File

@ -5,10 +5,10 @@ if [ -d node_modules/ng_backoffice ]; then
grunt compile_translations
grunt concat
if [ -d node_modules/ng_backoffice/po ]; then
for i in $(ls node_modules/ng_backoffice/po/*\.po); do
if [ -d po ]; then
for i in $(ls po/*\.po); do
l=$(basename $i .po)
msgfmt -o ./node_modules/ng_backoffice/po/$l.mo -v ./node_modules/ng_backoffice/po/$l.po
msgfmt -o ./po/$l.mo -v ./po/$l.po
done;
fi
fi
@ -18,10 +18,10 @@ if [ -d node_modules/ng_client ]; then
grunt compile_translations
grunt concat
if [ -d node_modules/ng_client/po ]; then
for i in $(ls node_modules/ng_client/po/*\.po); do
if [ -d po ]; then
for i in $(ls po/*\.po); do
l=$(basename $i .po)
msgfmt -o ./node_modules/ng_client/po/$l.mo -v ./node_modules/ng_client/po/$l.po
msgfmt -o ./po/$l.mo -v ./po/$l.po
done;
fi
fi