Skip to content

Commit

Permalink
Merge pull request #2525 from data-for-change/modify-localize-template
Browse files Browse the repository at this point in the history
Update localize_widget.md
  • Loading branch information
atalyaalon authored Jan 4, 2024
2 parents 155ef74 + d8c3d8a commit 9404046
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/ISSUE_TEMPLATE/localize_widget.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ Current Widget Title for localization, if exists.
(Note - if translation in file is not adequate - please create a better translation)

**Flask Babel**
For updating messages.pot with all strings for translation - use the following command: `pybabel extract -F babel.cfg -o messages.pot .`
For updating existing po files with new strings: `pybabel update -i messages.pot -d translations`
For compiling pybabel mo files use: `pybabel compile -d translations`
It's important to compile the files for the transations to take place
For updating messages.pot with all strings for translation - use the following commands:

1. Go to anyway container: `docker exec -it anyway bash`
2. Perform the following updates inside anyway container:
- `pybabel extract -F babel.cfg -o messages.pot .`
- For updating existing po files with new strings: `pybabel update -i messages.pot -d translations`
- Update manually the translations: modify translation files - po files per language.
- For compiling pybabel mo files use: `pybabel compile -d translations`
_It's important to compile the files for the transations to take place_
**Make sure to add all po, mo and pot files to pull request**

0 comments on commit 9404046

Please sign in to comment.