Skip to content

Commit

Permalink
Script of update add new translation placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
20cents committed Jul 24, 2019
1 parent 724117d commit abceac4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions update_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
source ./venv/bin/activate
pip install wheel
pip install -r ./backend/requirements.txt

pybabel extract -F "$app_dir_name/backend/babel.cfg" -o "$app_dir_name/backend/i18n/messages.pot" .
pybabel update -i "$app_dir_name/backend/i18n/messages.pot" -d "$app_dir_name/backend/i18n"
pybabel compile -d "$app_dir_name/backend/i18n"

deactivate
cd ../
echo "Restart"
Expand Down

0 comments on commit abceac4

Please sign in to comment.