Skip to content

gh-142714: Keep the PEG grammar out of the translation catalogs - #159305

Open
Aurora-NICExq wants to merge 1 commit into
python:mainfrom
Aurora-NICExq:gh-142714-peg-untranslatable
Open

Aurora-NICExq wants to merge 1 commit into
python:mainfrom
Aurora-NICExq:gh-142714-peg-untranslatable

Conversation

@Aurora-NICExq

@Aurora-NICExq Aurora-NICExq commented Oct 13, 2026 •

Copy link
Copy Markdown

Mark peg literal blocks as not translatable, so the full grammar no longer
ends up in the .pot files, including the parts that PEGLexer hides on the
rendered page. There is nothing to translate in it.

The grammar in reference/grammar.rst was extracted into the .pot files
verbatim, including the parts that PEGLexer hides from the rendered page.
There is nothing to translate there, so mark PEG literal blocks as not
translatable.
@python-cla-bot

python-cla-bot Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

bedevere-app Bot commented Oct 13, 2026

Copy link
Copy Markdown

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 skip news label instead.

@StanFromIreland

Copy link
Copy Markdown
Member

I proposed this before in #133868, and people weren’t happy.

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.

2 participants