Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

gh-98366: use sphinx.locale._ as gettext() in pyspecific.py#98437

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

mattwang44
Copy link
Contributor

@mattwang44mattwang44 commentedOct 19, 2022
edited
Loading

sphinx 5.3 changedsphinx.locale.translators from adefaultdict(gettext.NullTranslations) to adict (commit), which led to failure of pyspecific.py. Usesphinx.locale._ asgettext() to fix the issue.

@bedevere-bot
Copy link

Most changes to Pythonrequire a NEWS entry.

Please add it using theblurb_it web app or theblurb command-line tool.

@mattwang44mattwang44 marked this pull request as draftOctober 19, 2022 07:09
@mattwang44mattwang44 marked this pull request as ready for reviewOctober 19, 2022 07:38
@marxin
Copy link

May I please ping this, it's blockingSphinx5.3 update in openSUSE CI right now.

@mcepl
Copy link
Contributor

May I please ping this, it's blockingSphinx5.3 update in openSUSE CI right now.

@ezio-melotti,@merwok,@JulienPalard,@willingc You are enlisted onhttps://devguide.python.org/core-developers/experts/ as experts for documentation. Could you please review this PR? Thank you.

@mattwang44mattwang44force-pushed thefix-pyspecific-sphinx-locale-gettext branch fromf22bc2b to5775f51CompareOctober 21, 2022 15:02
…bility in pyspecific.py[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.
@mattwang44mattwang44force-pushed thefix-pyspecific-sphinx-locale-gettext branch from5775f51 to383f9a7CompareOctober 21, 2022 15:03
@AA-Turner
Copy link
Member

Desk review looks reasonable, though ideally we'd confirm by building one of the translations against this PR.

A

AlexWaygood and mattwang44 reacted with thumbs up emoji

@AlexWaygood
Copy link
Member

ideally we'd confirm by building one of the translations against this PR.

@mattwang44, are you able to do that?

@mattwang44
Copy link
ContributorAuthor

mattwang44 commentedOct 21, 2022
edited
Loading

@AA-Turner@AlexWaygood
APR inpython-docs-zh-tw for testing this branch with sphinx==5.3 is created andthe building job has passed.

@AA-Turner
Copy link
Member

Great that the build passed. Is the translation correct for implementation detail directives, to sanity check that the new code works?

A

@mattwang44
Copy link
ContributorAuthor

Great that the build passed. Is the translation correct for implementation detail directives, to sanity check that the new code works?

A

The static site of translated doc in zh_TW has been deployed to theGitHub page (GitHub Action logs ishere). I've checked a couple of recently-merged translation PRs and it looks fine to me.

@ezio-melotti
Copy link
Member

Should this be backported to3.11 and3.10 too?

AA-Turner reacted with thumbs up emoji

@AA-Turner
Copy link
Member

Yes!

A

@AlexWaygoodAlexWaygood added needs backport to 3.10only security fixes needs backport to 3.11only security fixes labelsNov 11, 2022
@miss-islington
Copy link
Contributor

Thanks@mattwang44 for the PR, and@ezio-melotti for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks@mattwang44 for the PR, and@ezio-melotti for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestNov 11, 2022
…thonGH-98437)fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.(cherry picked from commitd26ee8a)Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
@bedevere-bot
Copy link

GH-99358 is a backport of this pull request to the3.10 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.10only security fixes labelNov 11, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestNov 11, 2022
…thonGH-98437)fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.(cherry picked from commitd26ee8a)Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
@bedevere-bot
Copy link

GH-99359 is a backport of this pull request to the3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11only security fixes labelNov 11, 2022
miss-islington added a commit that referenced this pull requestNov 11, 2022
fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.(cherry picked from commitd26ee8a)Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
miss-islington added a commit that referenced this pull requestNov 11, 2022
fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.(cherry picked from commitd26ee8a)Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
@mattwang44mattwang44 deleted the fix-pyspecific-sphinx-locale-gettext branchNovember 12, 2022 06:37
ethanfurman pushed a commit to ethanfurman/cpython that referenced this pull requestNov 12, 2022
…thon#98437)fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@AA-TurnerAA-TurnerAA-Turner approved these changes

@ezio-melottiezio-melottiezio-melotti approved these changes

@merwokmerwokAwaiting requested review from merwok

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

9 participants
@mattwang44@bedevere-bot@marxin@mcepl@AA-Turner@AlexWaygood@ezio-melotti@miss-islington@merwok

[8]ページ先頭

©2009-2025 Movatter.jp