Repository navigation
Translate fuzzy entries from upstream sync - #1237
Merged
Merged
Conversation
mattwang44
commented
Jun 12, 2026
Co-authored-by: W. H. Wang <mattwang44@gmail.com>
mattwang44
added a commit
that referenced
this pull request
Oct 15, 2026
* sync with cpython 575916d5 * sync with cpython 157a5df8 * sync with cpython a8003f6d * sync with cpython 51e83ca7 * sync with cpython b3a7758d * sync with cpython c737fb31 * Translate fuzzy entries from upstream sync (#1237) * Translate fuzzy entries from upstream sync * Apply suggestions from code review Co-authored-by: W. H. Wang <mattwang44@gmail.com> --------- Co-authored-by: Claude <noreply@anthropic.com> * sync with cpython 945a1ac7 * sync with cpython aa485557 * sync with cpython 60132db9 * sync with cpython 72023139 * sync with cpython 2e873f7b * sync with cpython 4330f467 * Translate fuzzy entries from upstream sync (#1238) Claude-Session: https://claude.ai/code/session_01REgcaNJVQfFfzdUJUypcPq Co-authored-by: Claude <noreply@anthropic.com> * sync with cpython b078ae98 * sync with cpython 912a68b6 * sync with cpython 33b5aebf * sync with cpython 6e61e3c1 * sync with cpython af3c9128 * sync with cpython 84badb77 * sync with cpython 5a09ae28 * sync with cpython 67d4cbf1 * sync with cpython 68b501db * sync with cpython 8a2e34c9 * sync with cpython 44b4029a * sync with cpython 07efb081 * sync with cpython c6f5a737 * sync with cpython ef862d61 * sync with cpython 3d802b5b * sync with cpython 0f529b1c * sync with cpython 7a7da86d * sync with cpython 467fab9e * sync with cpython b587c54b * sync with cpython bb29dc2e * sync with cpython c628cd70 * sync with cpython a3d61936 * sync with cpython 9b33b258 * sync with cpython 6337bfd4 * sync with cpython 8b5f1c24 * sync with cpython b2e8bd6c * sync with cpython 37a5c690 * sync with cpython a73668a2 * sync with cpython 92b0ec64 * sync with cpython 89be6f77 * sync with cpython 04735dee * sync with cpython 71dfe72b * sync with cpython 91abbe6f * sync with cpython 802a2c8b * sync with cpython b0ef8b4f * sync with cpython 709041c3 * sync with cpython 162bd7ea * sync with cpython 085fd75c * sync with cpython 4683ac19 * sync with cpython 1b1c61a9 * sync with cpython c611e80a * sync with cpython d755701b * sync with cpython 4e9ec0a0 * sync with cpython 7101666e * sync with cpython 422e6793 * sync with cpython b104b74e * sync with cpython a59c5bb0 * sync with cpython 90a1f02b * sync with cpython 5a7c9d25 * sync with cpython 27349e70 * sync with cpython d3fe3de5 * sync with cpython 27721ddc * sync with cpython f6b1201e * sync with cpython 7267c9b8 * sync with cpython f9fdb30d * sync with cpython 28b944cc * sync with cpython 948f962f * sync with cpython 686b543e * sync with cpython 4e8bce4d * sync with cpython f6842dda * sync with cpython 54717b65 * sync with cpython 92cab347 * sync with cpython 384ac4dd * sync with cpython a6d25db9 * sync with cpython 5400055d * sync with cpython 81299120 * sync with cpython cb81ae43 * sync with cpython 09c867d3 * sync with cpython d6375c3d * sync with cpython 8f8cf4f1 * sync with cpython 1145c056 * sync with cpython 9227dfbb * sync with cpython e700dbda * sync with cpython 1d8c9f85 * sync with cpython 78bdd3dd * sync with cpython 82075394 * sync with cpython 66f8dbe0 * sync with cpython c2d1138c * sync with cpython 2bcad2fb * sync with cpython 81c40fa1 * sync with cpython e47e1015 * sync with cpython 66df30d1 * sync with cpython 3c6de410 * sync with cpython e0c28e2a * sync with cpython d9dde70e * sync with cpython 758278c2 * sync with cpython 3ef92a27 * sync with cpython 69092874 * sync with cpython dacf4726 * Port translations for docs moved from library/ to builtins/ CPython gh-156682 (3.14 backport GH-157441) moved constants, exceptions, functions, stdtypes, threadsafety and time-complexity from Doc/library/ to Doc/builtins/ without content changes. The sync workflow only created empty builtins/*.po and left the old library/*.po orphaned. Merge the existing translations into builtins/*.po with translate-toolkit pomerge (--mergecomments=no --mergefuzzy=no --mergeblanks=no), keep the original translator header comments, and remove the orphaned library/*.po. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fill code-only and markup-only entries from upstream sync For msgids newly introduced or turned fuzzy by this sync that need no or almost no translation: - msgids that are only inline markup (roles, literals, math, footnote refs): copy msgid to msgstr - literal blocks (doctest, ::, code-block) without comments, and license texts: copy msgid to msgstr - literal blocks with a few comments: copy the code and translate only the comments, reusing existing comment translations where available Fuzzy flags on these entries are cleared. Edits are limited to the target entries; the rest of each file is byte-for-byte unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Resolve trivially fixable fuzzy entries from upstream sync Fuzzy entries that need no real translation judgement: - msgid changed only in reST markup, e.g. :func: -> :deco: for decorators, :const:`None` -> ``None``, fully qualified role targets, renamed parameters (*secs* -> *seconds*): port the same token change into the msgstr. Applied only when every msgid difference is a markup token or whitespace and each token occurs verbatim in the msgstr. - pure deletions (e.g. dropped "soft deprecated", removed sentences): delete the corresponding part of the msgstr. - small wording changes (e.g. eg. -> for example, category -> class, exhausted -> :term:`exhausted`, updated URLs, added "See :pep:`525`."): keep or minimally adjust the msgstr. - msgmerge matched the wrong old entry for a short, formulaic msgid (headings, "a string or None", "This is an alias to ..."): retranslate. Entries with substantive prose changes are left fuzzy for human review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Translate remaining fuzzy entries from upstream sync Resolve every fuzzy entry introduced by this sync whose msgid had a substantive change: update the existing translation to the new source text (added or removed sentences, reworded clauses, new :term: and :ref: links), or retranslate where msgmerge had matched an unrelated old entry. reference/grammar.po only gained code lines (invalid_noteq), which are inserted into the existing translation unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix translation issues found in review Address every entry flagged by at least one of three independent reviewers in the files this sync touches: - mistranslations and omissions (library/intro, bisect, functools, itertools "if at all", weakref "remaining", wrong contributor name in whatsnew/3.11) - broken markup: single instead of double backticks in http.cookiejar - terminology: unify :term:`exhausted` as 耗盡 and translate its glossary entry; modal -> 強制回應; class -> 類別; documentation -> 說明文件; replace Mainland terms (設置, 鏈接, 實現, 交互模式, 鍊表, 運行, ...) - punctuation: half-width brackets and quotes in Chinese text, stray spaces around full-width punctuation, unnecessary or missing escapes Also adopt the better wording from the earlier attempt in #1239 where it is more accurate or more natural (e.g. atexit "signal not handled by Python", numbers, tuple "already in the tuple", tkinter Variable and index docs), drop the stray trailing newline in tutorial/controlflow that made msgfmt fail, and write :term: roles in glossary entries touched by this sync as :term:`中文 <term>` as requested in #1239. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: W. H. Wang <mattwang44@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.