Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
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
gh-98366: use sphinx.locale._ as gettext() in pyspecific.py#98437
Uh oh!
There was an error while loading.Please reload this page.
Conversation
bedevere-bot commentedOct 19, 2022
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
Misc/NEWS.d/next/Documentation/2022-10-19-07-15-52.gh-issue-98366.UskMXF.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
marxin commentedOct 21, 2022
May I please ping this, it's blocking |
@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. |
f22bc2b
to5775f51
Compare…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.
5775f51
to383f9a7
CompareDesk review looks reasonable, though ideally we'd confirm by building one of the translations against this PR. A |
@mattwang44, are you able to do that? |
mattwang44 commentedOct 21, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@AA-Turner@AlexWaygood |
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. |
Should this be backported to |
Yes! A |
Thanks@mattwang44 for the PR, and@ezio-melotti for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Thanks@mattwang44 for the PR, and@ezio-melotti for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
…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 commentedNov 11, 2022
GH-99358 is a backport of this pull request to the3.10 branch. |
…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 commentedNov 11, 2022
GH-99359 is a backport of this pull request to the3.11 branch. |
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>
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>
…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.
Uh oh!
There was an error while loading.Please reload this page.
sphinx 5.3 changed
sphinx.locale.translators
from adefaultdict(gettext.NullTranslations)
to adict
(commit), which led to failure of pyspecific.py. Usesphinx.locale._
asgettext()
to fix the issue.