Skip to content

Commit 91654c9

Browse files
mattwang44claude
andcommitted
Fix inconsistent term references in translations
- decimal.po: add zero-width separator after :const:`False` role so the following full-width ( doesn't get absorbed into the term reference - whatsnew/3.12.po: correct :py:meth: target from ~class to ~type to match upstream Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9045978 commit 91654c9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

library/decimal.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2873,7 +2873,7 @@ msgid ""
28732873
"compare_signal` methods instead."
28742874
msgstr ""
28752875
"當涉及 ``NaN`` 時,Python 比較運算子的行為可能有點令人驚訝。當其中一個運算元"
2876-
"是安靜或發出訊號的 ``NaN`` 時,相等性測試總是回傳 :const:`False`(即使在執行 "
2876+
"是安靜或發出訊號的 ``NaN`` 時,相等性測試總是回傳 :const:`False`\\ (即使在執行 "
28772877
"``Decimal('NaN')==Decimal('NaN')`` 時也是如此),而不等性測試總是回傳 :const:"
28782878
"`True`。嘗試使用任何 ``<``、``<=``、``>`` 或 ``>=`` 運算子比較兩個 Decimal "
28792879
"時,如果任一運算元是 ``NaN``,將引發 :exc:`InvalidOperation` 訊號,如果此訊號"

whatsnew/3.12.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5320,7 +5320,7 @@ msgid ""
53205320
"To get a list of subclasses, call the Python method :py:meth:`~type."
53215321
"__subclasses__` (using :c:func:`PyObject_CallMethod`, for example)."
53225322
msgstr ""
5323-
"要獲取子類別串列,請呼叫 Python 方法 :py:meth:`~class.__subclasses__`\\ (例"
5323+
"要獲得子類別串列,請呼叫 Python 方法 :py:meth:`~type.__subclasses__`\\ (例"
53245324
"如,使用 :c:func:`PyObject_CallMethod`)。"
53255325

53265326
#: ../../whatsnew/3.12.rst:2043

0 commit comments

Comments
 (0)