blob: e87c96bf46d36cffdfea602509d824bac93c6f13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
set -x
GETTEXT_DOMAIN=$(cat CMakeLists.txt | grep 'set.*(.*GETTEXT_PACKAGE' | sed -r -e 's/.*\"([^"]+)\"\)/\1/')
cd po/
cat LINGUAS | while read lingua; do
if [ ! -e ${lingua}.po ]; then
msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po
else
intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua})
fi
done
cd - 1>/dev/null
|