Skip to content

Commit

Permalink
Update localize_widget.md
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon authored Dec 31, 2023
1 parent a5a27b5 commit c9da99a
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`
2. Perform the following updates:
- `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 c9da99a

Please sign in to comment.