Fix compile translation to .po

pull/6/head
Thomas Metois 2017-02-14 15:50:25 +01:00
parent 4c470be4e5
commit 898379630c
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