Added scripts to initialize a new language and compile existing .po files
This commit is contained in:
3
compile-messages.sh
Executable file
3
compile-messages.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
source ./translation.vars
|
||||||
|
|
||||||
|
TZ=UTC env/bin/pybabel compile -d $TRANSDIR
|
8
init-new-po.sh
Executable file
8
init-new-po.sh
Executable 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
|
Reference in New Issue
Block a user