Skip to content

Unbreak strings to proper extraction for translation #11389

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

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

rffontenelle
Copy link
Contributor

The messages are broken into normal strings and f-strings. While this might be successfully concatenated in the original language, this doesn't work when extracting messages for translation: Currently only the normal string is being considered, and f-string part is being ignored.

E.g., see how they are currently shown in pt_BR translation file (msgid is the source string extracted from source file):

#: projects/forms.py:412
msgid "To build from pull requests you need a "
msgstr ""
#: projects/forms.py:423
msgid ""
"To build from pull requests your repository's webhook needs to send pull "
"request events. "
msgstr ""

@rffontenelle rffontenelle requested a review from a team as a code owner June 7, 2024 19:04
@rffontenelle rffontenelle requested a review from humitos June 7, 2024 19:04
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@humitos humitos merged commit 372de4e into readthedocs:main Jun 10, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants