Added script for updating existing translations

This commit is contained in:
str4d
2013-01-18 11:01:32 +00:00
parent 90cd3b67f3
commit 59ac1fbc44
3 changed files with 11 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
PROJECT=I2P
VERSION=website
source ./translation.vars
TZ=UTC env/bin/pybabel extract --project=$PROJECT --version=$VERSION -F i2p2www/babel.cfg i2p2www/ > messages.pot
TZ=UTC env/bin/pybabel extract --project=$PROJECT --version=$VERSION -F $BABELCFG $PROJDIR > $POTFILE

6
translation.vars Normal file
View File

@@ -0,0 +1,6 @@
PROJECT=I2P
VERSION=website
PROJDIR=i2p2www
BABELCFG=$PROJDIR/babel.cfg
POTFILE=messages.pot
TRANSDIR=$PROJDIR/translations

3
update-existing-po.sh Executable file
View File

@@ -0,0 +1,3 @@
source ./translation.vars
TZ=UTC env/bin/pybabel update -i $POTFILE -d $TRANSDIR