Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.11] gh-101845: pyspecific: Fix i18n for availability directive (GH-101846)#101852

Merged
miss-islington merged 1 commit into
python:3.11python/cpython:3.11from
miss-islington:backport-6ef6915-3.11miss-islington/cpython:backport-6ef6915-3.11Copy head branch name to clipboard
Feb 12, 2023
Merged

[3.11] gh-101845: pyspecific: Fix i18n for availability directive (GH-101846)#101852
miss-islington merged 1 commit into
python:3.11python/cpython:3.11from
miss-islington:backport-6ef6915-3.11miss-islington/cpython:backport-6ef6915-3.11Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Feb 12, 2023

Copy link
Copy Markdown
Contributor

pyspecific: Fix i18n for availability directive

If the directive has content, the previous code would nest paragraph
nodes from that content inside a general paragraph node, which confuses
Sphinx and leads it to drop the content when translating. Instead, use a
container node for the body.

Also use set_source_info so that any warnings have location info.
(cherry picked from commit 6ef6915)

Co-authored-by: Jean Abou-Samra jean@abou-samra.fr

…honGH-101846)

pyspecific: Fix i18n for availability directive

If the directive has content, the previous code would nest paragraph
nodes from that content inside a general paragraph node, which confuses
Sphinx and leads it to drop the content when translating. Instead, use a
container node for the body.

Also use set_source_info so that any warnings have location info.
(cherry picked from commit 6ef6915)

Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
@miss-islington miss-islington merged commit 1b73683 into python:3.11 Feb 12, 2023
@miss-islington miss-islington deleted the backport-6ef6915-3.11 branch February 12, 2023 17:28
JulienPalard added a commit to python/python-docs-fr that referenced this pull request Feb 12, 2023
Pour python/cpython#101852

Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/34
Co-authored-by: Julien Palard <julien@palard.fr>
Co-committed-by: Julien Palard <julien@palard.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.