forked from I2P_Developers/i2p.www
Added script for updating existing translations
This commit is contained in:
@@ -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
6
translation.vars
Normal 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
3
update-existing-po.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
source ./translation.vars
|
||||
|
||||
TZ=UTC env/bin/pybabel update -i $POTFILE -d $TRANSDIR
|
Reference in New Issue
Block a user