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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions readthedocs/projects/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,7 @@ def setup_external_builds_option(self):
url = reverse("projects_integrations", args=[self.instance.slug])
if not has_supported_integration:
msg = _(
"To build from pull requests you need a "
f'GitHub or GitLab <a href="{url}">integration</a>.'
f'To build from pull requests you need a GitHub or GitLab <a href="{url}">integration</a>.'
)
if has_supported_integration and not can_build_external_versions:
# If there is only one integration, link directly to it.
Expand All @@ -420,9 +419,7 @@ def setup_external_builds_option(self):
args=[self.instance.slug, integrations[0].pk],
)
msg = _(
"To build from pull requests your repository's webhook "
"needs to send pull request events. "
f'Try to <a href="{url}">resync your integration</a>.'
f'To build from pull requests your repository\'s webhook needs to send pull request events. Try to <a href="{url}">resync your integration</a>.'
)

if msg:
Expand Down