pgadmin4/ci/update_messages.sh

15 lines
512 B
Bash
Raw Normal View History

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