2016-04-13 17:03:50 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ -d node_modules/ng_backoffice ]; then
|
|
|
|
pushd node_modules/ng_backoffice
|
2016-10-25 09:16:55 +02:00
|
|
|
grunt compile_translations
|
|
|
|
grunt concat
|
2017-02-02 16:57:00 +01:00
|
|
|
|
2017-02-14 15:50:25 +01:00
|
|
|
if [ -d po ]; then
|
|
|
|
for i in $(ls po/*\.po); do
|
2017-02-02 16:57:00 +01:00
|
|
|
l=$(basename $i .po)
|
2017-02-14 15:50:25 +01:00
|
|
|
msgfmt -o ./po/$l.mo -v ./po/$l.po
|
2017-02-02 16:57:00 +01:00
|
|
|
done;
|
|
|
|
fi
|
2016-04-13 17:03:50 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d node_modules/ng_client ]; then
|
|
|
|
pushd node_modules/ng_client
|
2016-10-25 09:16:55 +02:00
|
|
|
grunt compile_translations
|
|
|
|
grunt concat
|
2017-02-14 15:50:25 +01:00
|
|
|
|
|
|
|
if [ -d po ]; then
|
|
|
|
for i in $(ls po/*\.po); do
|
2017-02-02 16:57:00 +01:00
|
|
|
l=$(basename $i .po)
|
2017-02-14 15:50:25 +01:00
|
|
|
msgfmt -o ./po/$l.mo -v ./po/$l.po
|
2017-02-02 16:57:00 +01:00
|
|
|
done;
|
|
|
|
fi
|
2016-04-13 17:03:50 +02:00
|
|
|
fi
|