2017-03-31 11:13:30 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-03-31 11:45:56 -05:00
|
|
|
echo "EXECUTING: Compile messages"
|
2017-03-31 11:13:30 -05:00
|
|
|
echo
|
|
|
|
|
|
|
|
cd $WORKSPACE/web
|
|
|
|
|
2017-03-31 11:17:34 -05:00
|
|
|
. $WORKSPACE/pgadmin-venv/bin/activate
|
|
|
|
|
2017-03-31 11:45:56 -05:00
|
|
|
pybabel extract -F babel.cfg -o pgadmin/messages.pot pgadmin || { echo 'ERROR: Failed to extract messages from the source code.' ; exit 1; }
|
2017-03-31 11:13:30 -05:00
|
|
|
|
2017-03-31 11:45:56 -05:00
|
|
|
pybabel update -i pgadmin/messages.pot -d pgadmin/translations || { echo 'ERROR: Failed to update message catalogs from the template.' ; exit 1; }
|
2017-03-31 11:13:30 -05:00
|
|
|
|
2017-03-31 16:05:29 -05:00
|
|
|
pybabel compile -d pgadmin/translations || { echo 'ERROR: Failed to compile the message catalogs.' ; exit 1; }
|