Skip to content

Commit 0f7d9e5

Browse files
committed
Address review comments and fix remaining reference-count warning
- c-api/exceptions.po: 向下相容 -> 向後相容 (review comment) - c-api/threads.po: translate the :term:`attached thread state` role display text instead of leaving it bare in English (review comment) - c-api/unicode.po: use \ instead of a literal space before a role whose translated display text is Chinese, avoiding a stray visible gap between adjacent Chinese words (review comment) - library/tkinter.ttk.po: rewrap a sentence that referenced :class:`Label` twice where the English original references it once, which Sphinx's i18n.inconsistent_references check flags as a reference-count mismatch Co-authored-by: Claude <noreply@anthropic.com>
1 parent c47256d commit 0f7d9e5

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

c-api/exceptions.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ msgid ""
702702
msgstr ""
703703
"設定例外資訊,如同從 ``sys.exc_info()`` 得知的資訊一般。這裡指的是一個 *已經"
704704
"被捕捉* 的例外,而不是剛被引發的例外。此函式「:term:`竊取 <steal>`」這些引數"
705-
"的參照。若要清除例外狀態,請為所有三個引數傳入 ``NULL``。此函式是為了向下相容"
705+
"的參照。若要清除例外狀態,請為所有三個引數傳入 ``NULL``。此函式是為了向後相容"
706706
"而保留,建議改用 :c:func:`PyErr_SetHandledException`。"
707707

708708
#: ../../c-api/exceptions.rst:653

c-api/threads.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -927,10 +927,10 @@ msgid ""
927927
msgstr ""
928928
"非同步地在執行緒中引發例外。*id* 引數為目標執行緒的執行緒 id;*exc* 為要引發"
929929
"的例外物件。此函式不會\\ :term:`竊取 <steal>`\\ 任何對 *exc* 的參照。為了防止"
930-
"不當誤用,你必須自行編寫 C 擴充來呼叫此函式。呼叫時必須具有 :term:`attached "
931-
"thread state`。回傳被修改的執行緒狀態數量;通常為一,但若找不到該執行緒 id 則"
932-
"為零。如果 *exc* 為 ``NULL``,則會清除該執行緒的待處理例外(如果有的話)。此"
933-
"函式不會引發任何例外。"
930+
"不當誤用,你必須自行編寫 C 擴充來呼叫此函式。呼叫時必須具有\\ :term:`已附加的"
931+
"執行緒狀態 <attached thread state>`\\ 。回傳被修改的執行緒狀態數量;通常為"
932+
"一,但若找不到該執行緒 id 則為零。如果 *exc* 為 ``NULL``,則會清除該執行緒的"
933+
"待處理例外(如果有的話)。此函式不會引發任何例外。"
934934

935935
#: ../../c-api/threads.rst:750
936936
msgid ""

c-api/unicode.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,8 @@ msgid ""
925925
"term:`strong reference` to a Unicode object; :c:func:`!PyUnicode_Append` "
926926
"releases (\":term:`steals <steal>`\") this reference."
927927
msgstr ""
928-
"將字串 *right* 附加到 *p_left* 的結尾。*p_left* 必須指向一個 Unicode 物件的 :"
929-
"term:`強參照 <strong reference>`;:c:func:`!PyUnicode_Append` 會釋放(「:"
928+
"將字串 *right* 附加到 *p_left* 的結尾。*p_left* 必須指向一個 Unicode 物件的"
929+
"\\ :term:`強參照 <strong reference>`;:c:func:`!PyUnicode_Append` 會釋放(「:"
930930
"term:`竊取 <steal>`」)此參照。"
931931

932932
#: ../../c-api/unicode.rst:669

library/tkinter.ttk.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,8 +2872,8 @@ msgid ""
28722872
"tracked by the scale (one is created if it is not given), and *from_* and "
28732873
"*to* define the range of the scale."
28742874
msgstr ""
2875-
"一個包含 :class:`Scale` 和 :class:`Label` 的 :class:`Frame`,:class:`Label` "
2876-
"用來顯示該 Scale 目前的值。*variable* 是該 Scale 所追蹤的 :class:`~tkinter."
2875+
"一個 :class:`Frame`,其中包含一個 :class:`Scale` 以及一個用來顯示該 Scale 目"
2876+
"前值的 :class:`Label`。*variable* 是該 Scale 所追蹤的 :class:`~tkinter."
28772877
"IntVar`\\ (若未給定,則會建立一個),而 *from_* 和 *to* 則定義了該 Scale 的"
28782878
"範圍。"
28792879

0 commit comments

Comments
 (0)