Added scripts to initialize a new language and compile existing .po files

This commit is contained in:
str4d
2013-01-18 11:09:01 +00:00
parent 09d020990e
commit 10df8e22aa
2 changed files with 11 additions and 0 deletions

3
compile-messages.sh Executable file
View File

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

8
init-new-po.sh Executable file
View File

@ -0,0 +1,8 @@
source ./translation.vars
if [ $# -ge 1 ]
then
TZ=UTC env/bin/pybabel init -i $POTFILE -d $TRANSDIR -l $1
else
echo "Usage: ./init-new-po.sh lang"
fi