Skip to content

Commit 032c704

Browse files
committed
Updated the templates with the reassessment trigger part, imporoved the translations compilation.
1 parent 9de24ef commit 032c704

9 files changed

Lines changed: 27 additions & 7 deletions

File tree

deliveries/cases/DE/1.docx

1.87 KB
Binary file not shown.

deliveries/cases/DE/3.docx

-903 Bytes
Binary file not shown.

deliveries/cases/EN/1.docx

1.91 KB
Binary file not shown.

deliveries/cases/EN/3.docx

3.19 KB
Binary file not shown.

deliveries/cases/FR/1.docx

2.09 KB
Binary file not shown.

deliveries/cases/FR/3.docx

3.4 KB
Binary file not shown.

deliveries/cases/NE/1.docx

809 Bytes
Binary file not shown.

deliveries/cases/NE/3.docx

-832 Bytes
Binary file not shown.

scripts/compile_translations.sh

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
11
#!/bin/bash
22

3-
pushd node_modules/ng_backoffice
4-
grunt compile_translations
5-
grunt concat
3+
set -e
4+
5+
APP_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
6+
export MONARC_PUBLIC_JS_DIR="$APP_ROOT/public/js"
7+
export MONARC_PUBLIC_CSS_DIR="$APP_ROOT/public/css"
8+
9+
pushd "$APP_ROOT/node_modules/ng_backoffice" >/dev/null
10+
11+
GRUNT_BIN="./node_modules/.bin/grunt"
12+
if [ ! -x "$GRUNT_BIN" ]; then
13+
GRUNT_BIN="$(command -v grunt)"
14+
fi
15+
16+
if [ -z "$GRUNT_BIN" ]; then
17+
echo "grunt is not available. Install project dependencies or provide a local grunt binary." >&2
18+
exit 1
19+
fi
20+
21+
"$GRUNT_BIN" compile_translations
22+
"$GRUNT_BIN" concat
623

724
if [ -d po ]; then
8-
for i in $(ls po/*\.po); do
9-
l=$(basename $i .po)
10-
msgfmt -o ./po/$l.mo -v ./po/$l.po
11-
done;
25+
for i in po/*.po; do
26+
[ -e "$i" ] || continue
27+
l=$(basename "$i" .po)
28+
msgfmt -o "./po/$l.mo" -v "$i"
29+
done
1230
fi
31+
32+
popd >/dev/null

0 commit comments

Comments
 (0)