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 compile_translations
grunt concat grunt concat
if [ -d node_modules/ng_backoffice/po ]; then if [ -d po ]; then
for i in $(ls node_modules/ng_backoffice/po/*\.po); do for i in $(ls po/*\.po); do
l=$(basename $i .po) 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; done;
fi fi
fi fi
@ -17,11 +17,11 @@ 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 if [ -d po ]; then
for i in $(ls node_modules/ng_client/po/*\.po); do for i in $(ls po/*\.po); do
l=$(basename $i .po) 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; done;
fi fi
fi fi