From 791094a5b007b08aa1cd61dbb604ca6c2574f370 Mon Sep 17 00:00:00 2001 From: Thomas Metois Date: Thu, 2 Feb 2017 16:57:00 +0100 Subject: [PATCH] Compile-translations > add compile to .mo --- scripts/compile_translations.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/compile_translations.sh b/scripts/compile_translations.sh index 9c63501..238e1dc 100755 --- a/scripts/compile_translations.sh +++ b/scripts/compile_translations.sh @@ -4,10 +4,24 @@ if [ -d node_modules/ng_backoffice ]; then pushd node_modules/ng_backoffice grunt compile_translations 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 if [ -d node_modules/ng_client ]; then pushd node_modules/ng_client grunt compile_translations 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