Repository navigation
fix: refine howto/logging.po wording - #1251
Merged
Merged
Conversation
- Align the "When to use logging" heading with other headings (何時使用日誌記錄) - Unify cross-references to 請參閱 within the file - Use 討論區 for the Python discussion forum, matching bugs.po - Clarify the subject of the Logger paragraph (日誌記錄是透過…) - Use half-width parentheses around ``sys.stderr`` per README - Reword the fileConfig ``disable_existing_loggers`` note to match the source's neutral tone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014pJTfUKUkCc4HFprcvhxRe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014pJTfUKUkCc4HFprcvhxRe
Collaborator
Author
josix
marked this pull request as ready for review
October 26, 2026 14:17
mattwang44
approved these changes
Oct 26, 2026
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.







背景
我分 12 輪審查了 #1195 目前的譯文,每輪看一個面向:術語、標點、reST、簡中用語、逐句比對原文、跨檔一致性等。每一輪都用 retrieval 查詢專案裡的既有譯法,再決定要不要改。大部分項目判斷不用改;以下 7 個條目、9 處用詞需要修改。
修改內容
howto/sockets.po的標題也用「何時…」bugs.po把 Discourse forum 譯為「討論區」sys.stderr)控制台(``sys.stderr``)→控制台 (``sys.stderr``)library/code.po也這樣寫True」;原文 "may or may not" 是中性語氣L689、L1289 有連帶重新斷行,但內容只改了上面列出的部分。
檢查過、決定不改的項目
library/logging.po只翻了 32%,本身就混用「格式器」「篩選器」,不足以當基準。全專案以「過濾器」為多數,「格式化器」和argparse.po一致。faq/library.po也這樣用,所以保留。warnings.po、socket.po一致。glossary.po:命名空間、關鍵字引數、屬性、引入路徑、類檔案物件、簽名都一致。驗證
sphinx-lint howto/logging.po:沒有問題msgfmt -c:通過(192 條已翻譯,58 條未翻譯,和修改前相同)make build howto/logging.po:沒有出現和本檔有關的警告;我也掃描了產出的 HTML,沒有露出未解析的 reST 標記make wrap,因為本機的 gettext 版本會把整份檔案的 msgid 都重新斷行,所以改成手動斷行;修改的行都在 80 欄以內,和 PR 現有的斷行一致🤖 Generated with Claude Code
https://claude.ai/code/session_014pJTfUKUkCc4HFprcvhxRe