aboutsummaryrefslogtreecommitdiff
path: root/update-po.sh
blob: 5b0da1c27328104a1911ee93afc8ad23df820bf1 (plain)
1
2
3
4
5
6
7
8
9
#!/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 touch ${lingua}.po; intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}); done
cd - 1>/dev/null