Skip to content

Use python-babel instead of xgettext and msgfmt #740

@ericwb

Description

@ericwb

Is your feature request related to a problem? Please describe.
Translation of strings is a bit cumbersome with xgettext and msgfmt, especially when strings change or new ones are added.

Describe the solution you'd like
I'd like to make use of pure python code instead of Linux gettext. Python Babel seems to fit well.

One problem, Babel doesn't work with f-strings. So need to get rid of f-string translated strings.

Also, ideally the translation of the *.po files could be automated using ChatGPT so that isn't manual either.

Describe alternatives you've considered
gettext, msgfmt, etc

Additional context
https://babel.pocoo.org/en/latest/setup.html

Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions