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

tx config maps incorrect PO file #17

Open
rffontenelle opened this issue Apr 4, 2024 · 0 comments
Open

tx config maps incorrect PO file #17

rffontenelle opened this issue Apr 4, 2024 · 0 comments

Comments

@rffontenelle
Copy link

Some CPython .rst files have underscore and some have dots, and manage_translation.py doesn't handle both scenarios. It keeps the underscore from the Transifex resource slug.

The consequence of the PO file having the incorrect filename is Sphinx not finding the expected file when generating the translated doc, resulting in English instead.

For instance, the resource library--concurrent_futures currently have filename in this repo as library/concurrent_futures.po, but should be library/concurrent.futures.po. See https://docs.python.org/uk/3/library/collections.abc.html

See example of .tx/config in Polish team or Brazilian Portuguese team .

One way out is to build POT files and use sphinx-intl to generate .tx/config. I chose this in pt_BR, but I would be very interested in seeing a fix in your script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant