compile translations when site-updater.sh is run for the first time

This commit is contained in:
kytv
2014-02-23 23:36:48 +00:00
parent 462bdc975d
commit 817c1aa479
2 changed files with 3 additions and 0 deletions

View File

@ -11,3 +11,4 @@ else
$PYBABEL compile -D $domain -d $TRANSDIR $PYBABEL compile -D $domain -d $TRANSDIR
done done
fi fi
touch ./.pybabel-stamp

View File

@ -21,3 +21,5 @@ if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TM
echo "Python files changed, restarting server" echo "Python files changed, restarting server"
touch $TOUCHFILE touch $TOUCHFILE
fi fi
[ -f ./.pybabel-stamp ] || ./compile-messages.sh