Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize Production Widgets information, transcription #2720

Closed
atalyaalon opened this issue Oct 23, 2024 · 0 comments · Fixed by #2721
Closed

Localize Production Widgets information, transcription #2720

atalyaalon opened this issue Oct 23, 2024 · 0 comments · Fixed by #2721

Comments

@atalyaalon
Copy link
Collaborator

Additional context

  • Existing translation to CBS fields - see here
  • Existing CBS Fields - see here
    (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 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
@atalyaalon atalyaalon linked a pull request Oct 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant