Repository navigation
gh-142714: Exclude stripped PEG grammar text from translation catalogs - #159305
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
I proposed this before in #133868, and people weren’t happy. |
Apply PEGLexer's stripping to peg literal blocks before the i18n transform, so the catalogs (and the text builder) only get what the rendered page shows. This also stops the hidden rules from showing on translated pages, which happens when the "rules for invalid syntax" comment is translated (as on zh-tw).
c1ca056 to
10bd4a2
Compare
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Thanks. I've reworked the PR: it no longer excludes the grammar from |
Documentation build overview
74 files changed ·
|
|
Thanks @Aurora-NICExq for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
GH-160833 is a backport of this pull request to the 3.15 branch. |
|
GH-160834 is a backport of this pull request to the 3.14 branch. |
Apply
PEGLexer's stripping topegliteral blocks before the i18n transform,so the catalogs (and the text builder) only get what the rendered page shows.
This also stops the hidden rules from showing on translated pages, which
happens when the "rules for invalid syntax" comment is translated (as on
zh-tw).
Grammar/python.gramstripped bypeg_lexer.pystill shows in generated PO files #142714