19 lines
425 B
Bash
19 lines
425 B
Bash
#!/bin/sh
|
|
|
|
echo "[build] Compiling messages"
|
|
|
|
catalogs=`find . -name '*.po'`
|
|
for cat in $catalogs; do
|
|
echo "$cat"
|
|
catLocale=`basename ${cat%.*}`
|
|
msgfmt -o "${catLocale}.mo" "$cat"
|
|
|
|
installPath="../contents/locale/${catLocale}/LC_MESSAGES/${projectName}.mo"
|
|
|
|
echo "[build] Install to ${installPath}"
|
|
mkdir -p "$(dirname "$installPath")"
|
|
mv "${catLocale}.mo" "${installPath}"
|
|
done
|
|
|
|
echo "[build] Done building messages"
|