prefer the venv pybabel but allow the system one to be used (if found)

This commit is contained in:
kytv
2013-08-31 23:58:20 +00:00
parent ba651ceafb
commit 5c7672eb1c
5 changed files with 27 additions and 7 deletions

View File

@ -1,11 +1,13 @@
#!/bin/sh
. ./etc/translation.vars
export TZ=UTC
if [ $# -ge 1 ]
then
TZ=UTC env/bin/pybabel compile -D $1 -d $TRANSDIR
$PYBABEL compile -D $1 -d $TRANSDIR
else
for domain in $(ls $BABELCFG); do
TZ=UTC env/bin/pybabel compile -D $domain -d $TRANSDIR
$PYBABEL compile -D $domain -d $TRANSDIR
done
fi