From 5b8f0b354cd181dae9159b56d99afe0bfb69793d Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 12 Jun 2026 04:11:05 +0000 Subject: [PATCH 1/2] Translate fuzzy entries from upstream sync --- howto/functional.po | 3 +-- library/asyncio-threading.po | 6 ++---- library/bisect.po | 3 +-- library/dataclasses.po | 8 ++------ library/operator.po | 39 ++++++++++++------------------------ library/pyexpat.po | 3 +-- library/stdtypes.po | 21 +++++++------------ library/unittest.mock.po | 4 +--- 8 files changed, 28 insertions(+), 59 deletions(-) diff --git a/howto/functional.po b/howto/functional.po index a003e83e2a..2aa28eb15a 100644 --- a/howto/functional.po +++ b/howto/functional.po @@ -1635,7 +1635,6 @@ msgid "" msgstr "" #: ../../howto/functional.rst:1039 -#, fuzzy msgid "" ">>> import operator, functools\n" ">>> functools.reduce(operator.concat, ['A', 'BB', 'C'])\n" @@ -1655,7 +1654,7 @@ msgstr "" ">>> functools.reduce(operator.concat, [])\n" "Traceback (most recent call last):\n" " ...\n" -"TypeError: reduce() of empty sequence with no initial value\n" +"TypeError: reduce() of empty iterable with no initial value\n" ">>> functools.reduce(operator.mul, [1, 2, 3], 1)\n" "6\n" ">>> functools.reduce(operator.mul, [], 1)\n" diff --git a/library/asyncio-threading.po b/library/asyncio-threading.po index aa5b0a2930..f1b502620f 100644 --- a/library/asyncio-threading.po +++ b/library/asyncio-threading.po @@ -1,9 +1,6 @@ -# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" @@ -11,7 +8,8 @@ msgstr "" "POT-Creation-Date: 2026-06-11 00:43+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" +"tw)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/library/bisect.po b/library/bisect.po index 016e736d80..70665fac29 100644 --- a/library/bisect.po +++ b/library/bisect.po @@ -314,7 +314,6 @@ msgstr "" "績找到相對應的字母等級:90 以上是 'A'、80 到 89 為 'B',依此類推: ::" #: ../../library/bisect.rst:206 -#, fuzzy msgid "" ">>> def grade(score):\n" "... i = bisect([60, 70, 80, 90], score)\n" @@ -323,7 +322,7 @@ msgid "" ">>> [grade(score) for score in [33, 99, 77, 70, 89, 90, 100]]\n" "['F', 'A', 'C', 'C', 'B', 'A', 'A']" msgstr "" -">>> def grade(score)\n" +">>> def grade(score):\n" "... i = bisect([60, 70, 80, 90], score)\n" "... return \"FDCBA\"[i]\n" "...\n" diff --git a/library/dataclasses.po b/library/dataclasses.po index 9900a4e272..dcfc903aa6 100644 --- a/library/dataclasses.po +++ b/library/dataclasses.po @@ -207,20 +207,16 @@ msgid "" msgstr "如果該類別已經定義了 :meth:`!__repr__`,則此參數會被忽略。" #: ../../library/dataclasses.rst:105 -#, fuzzy msgid "" "*eq*: If true (the default), an :meth:`~object.__eq__` method will be " "generated." -msgstr "*init*:如果為真(預設值),將生成一個 :meth:`~object.__init__` 方法。" +msgstr "*eq*:如果為真(預設值),將生成一個 :meth:`~object.__eq__` 方法。" #: ../../library/dataclasses.rst:108 -#, fuzzy msgid "" "This method compares the class by comparing each field in order. Both " "instances in the comparison must be of the identical type." -msgstr "" -"*eq*:如果為真(預設值),將生成一個 :meth:`~object.__eq__` 方法。此方法按順" -"序比較類別,就好像它是其欄位的元組一樣。比較中的兩個實例必須屬於同一型別。" +msgstr "此方法按順序比較每個欄位來比較類別。比較中的兩個實例必須屬於同一型別。" #: ../../library/dataclasses.rst:111 msgid "" diff --git a/library/operator.po b/library/operator.po index f22fd5eb69..d492c287fe 100644 --- a/library/operator.po +++ b/library/operator.po @@ -127,9 +127,8 @@ msgid "Return ``a + b``, for *a* and *b* numbers." msgstr "對於數字 *a* 和 *b*,回傳 ``a + b``。" #: ../../library/operator.rst:115 -#, fuzzy msgid "Return ``a & b``." -msgstr "回傳 ``a % b``。" +msgstr "回傳 ``a & b``。" #: ../../library/operator.rst:121 msgid "Return ``a // b``." @@ -147,23 +146,20 @@ msgstr "" "結果總是 :class:`int` 型別。在過去的版本中,結果可能為 ``int`` 子類別的實例。" #: ../../library/operator.rst:139 -#, fuzzy msgid "Return ``~obj``." -msgstr "回傳 ``a % b``。" +msgstr "回傳 ``~obj``。" #: ../../library/operator.rst:145 -#, fuzzy msgid "Return ``a << b``." -msgstr "回傳 ``a % b``。" +msgstr "回傳 ``a << b``。" #: ../../library/operator.rst:151 msgid "Return ``a % b``." msgstr "回傳 ``a % b``。" #: ../../library/operator.rst:157 -#, fuzzy msgid "Return ``a * b``." -msgstr "回傳 ``a % b``。" +msgstr "回傳 ``a * b``。" #: ../../library/operator.rst:163 msgid "Return ``a @ b``." @@ -174,24 +170,20 @@ msgid "Return *obj* negated (``-obj``)." msgstr "回傳 *obj* 取負值的結果 (\\ ``-obj``\\ )。" #: ../../library/operator.rst:177 -#, fuzzy msgid "Return ``a | b``." -msgstr "回傳 ``a % b``。" +msgstr "回傳 ``a | b``。" #: ../../library/operator.rst:183 -#, fuzzy msgid "Return ``+obj``." -msgstr "回傳 ``a % b``。" +msgstr "回傳 ``+obj``。" #: ../../library/operator.rst:189 -#, fuzzy msgid "Return ``a ** b``." -msgstr "回傳 ``a % b``。" +msgstr "回傳 ``a ** b``。" #: ../../library/operator.rst:195 -#, fuzzy msgid "Return ``a >> b``." -msgstr "回傳 ``a % b``。" +msgstr "回傳 ``a >> b``。" #: ../../library/operator.rst:201 msgid "Return ``a - b``." @@ -204,9 +196,8 @@ msgid "" msgstr "回傳 ``a / b``,例如 2/3 將等於 .66 而不是 0。這也被稱為「真」除法。" #: ../../library/operator.rst:214 -#, fuzzy msgid "Return ``a ^ b``." -msgstr "回傳 ``a % b``。" +msgstr "回傳 ``a ^ b``。" #: ../../library/operator.rst:217 msgid "" @@ -515,9 +506,8 @@ msgid "``floordiv(a, b)``" msgstr "``floordiv(a, b)``" #: ../../library/operator.rst:408 -#, fuzzy msgid "Bitwise And, or Intersection" -msgstr "按位元取反 (Inversion)" +msgstr "按位元與 (And),或稱交集 (Intersection)" #: ../../library/operator.rst:408 msgid "``a & b``" @@ -528,9 +518,8 @@ msgid "``and_(a, b)``" msgstr "``and_(a, b)``" #: ../../library/operator.rst:411 -#, fuzzy msgid "Bitwise Exclusive Or, or Symmetric Difference" -msgstr "按位元互斥或 (Exclusive Or)" +msgstr "按位元互斥或 (Exclusive Or),或稱對稱差集 (Symmetric Difference)" #: ../../library/operator.rst:411 msgid "``a ^ b``" @@ -541,9 +530,8 @@ msgid "``xor(a, b)``" msgstr "``xor(a, b)``" #: ../../library/operator.rst:415 -#, fuzzy msgid "Bitwise Inversion, or Complement" -msgstr "按位元取反 (Inversion)" +msgstr "按位元取反 (Inversion),或稱補數 (Complement)" #: ../../library/operator.rst:415 msgid "``~ a``" @@ -554,9 +542,8 @@ msgid "``invert(a)``" msgstr "``invert(a)``" #: ../../library/operator.rst:418 -#, fuzzy msgid "Bitwise Or, or Union" -msgstr "按位元或 (Or)" +msgstr "按位元或 (Or),或稱聯集 (Union)" #: ../../library/operator.rst:418 msgid "``a | b``" diff --git a/library/pyexpat.po b/library/pyexpat.po index 89128bc32c..c93cd0e02c 100644 --- a/library/pyexpat.po +++ b/library/pyexpat.po @@ -283,11 +283,10 @@ msgid "" msgstr "" #: ../../library/pyexpat.rst:241 -#, fuzzy msgid "" ":class:`!xmlparser` objects have the following methods to tune protections " "against some common XML vulnerabilities." -msgstr ":class:`!xmlparser` 物件擁有以下方法來減輕一些常見的 XML 漏洞。" +msgstr ":class:`!xmlparser` 物件擁有以下方法來調整對一些常見 XML 漏洞的防護。" #: ../../library/pyexpat.rst:246 msgid "" diff --git a/library/stdtypes.po b/library/stdtypes.po index 95a5a837ae..e827f0d9ae 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -3573,7 +3573,6 @@ msgid "For example:" msgstr "舉例來說:" #: ../../library/stdtypes.rst:2183 -#, fuzzy msgid "" ">>> '0123456789'.isdigit()\n" "True\n" @@ -3584,19 +3583,18 @@ msgid "" ">>> '²'.isdecimal(), '²'.isdigit(), '²'.isnumeric()\n" "(False, True, True)" msgstr "" -">>> '0123456789'.isnumeric()\n" -"True\n" -">>> '٠١٢٣٤٥٦٧٨٩'.isnumeric() # 阿拉伯-印度數字零到九\n" +">>> '0123456789'.isdigit()\n" "True\n" -">>> '⅕'.isnumeric() # 普通分數五分之一\n" +">>> '٠١٢٣٤٥٦٧٨٩'.isdigit() # 阿拉伯-印度數字零到九\n" "True\n" +">>> '⅕'.isdigit() # 普通分數五分之一\n" +"False\n" ">>> '²'.isdecimal(), '²'.isdigit(), '²'.isnumeric()\n" "(False, True, True)" #: ../../library/stdtypes.rst:2194 -#, fuzzy msgid "See also :meth:`isdecimal` and :meth:`isnumeric`." -msgstr "另請參閱 :meth:`index` 和 :meth:`find`。" +msgstr "另請參閱 :meth:`isdecimal` 和 :meth:`isnumeric`。" #: ../../library/stdtypes.rst:2199 msgid "" @@ -3647,7 +3645,6 @@ msgid "" msgstr "" #: ../../library/stdtypes.rst:2232 -#, fuzzy msgid "" ">>> '0123456789'.isnumeric()\n" "True\n" @@ -3668,9 +3665,8 @@ msgstr "" "(False, True, True)" #: ../../library/stdtypes.rst:2243 -#, fuzzy msgid "See also :meth:`isdecimal` and :meth:`isdigit`." -msgstr "另請參閱 :meth:`index` 和 :meth:`find`。" +msgstr "另請參閱 :meth:`isdecimal` 和 :meth:`isdigit`。" #: ../../library/stdtypes.rst:2248 msgid "" @@ -8581,12 +8577,9 @@ msgid "" msgstr "" #: ../../library/stdtypes.rst:5880 -#, fuzzy msgid "" "This is true for :ref:`user-defined generics ` also." -msgstr "" -":ref:`Generics`、:ref:`使用者定義泛型 `\\ 和 :class:" -"`typing.Generic`" +msgstr "這對 :ref:`使用者定義泛型 ` 也是成立的。" #: ../../library/stdtypes.rst:5882 msgid "" diff --git a/library/unittest.mock.po b/library/unittest.mock.po index 3bf1a95f9f..77a2bb265e 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -2989,12 +2989,10 @@ msgstr "" "True" #: ../../library/unittest.mock.rst:2227 -#, fuzzy msgid "" "The return value of :meth:`!__iter__` can be any iterable object and isn't " "required to be an iterator:" -msgstr "" -":meth:`MagicMock.__iter__` 的回傳值可以是任何可疊代物件,且不需是一個疊代器:" +msgstr ":meth:`!__iter__` 的回傳值可以是任何可疊代物件,且不需是一個疊代器:" #: ../../library/unittest.mock.rst:2237 msgid "" From 004edb348b8a6d1b9fd4552758b77a658b212d3a Mon Sep 17 00:00:00 2001 From: "W. H. Wang" Date: Fri, 12 Jun 2026 17:00:23 +0800 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: W. H. Wang --- library/operator.po | 2 +- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/operator.po b/library/operator.po index d492c287fe..0778a9f6ef 100644 --- a/library/operator.po +++ b/library/operator.po @@ -531,7 +531,7 @@ msgstr "``xor(a, b)``" #: ../../library/operator.rst:415 msgid "Bitwise Inversion, or Complement" -msgstr "按位元取反 (Inversion),或稱補數 (Complement)" +msgstr "按位元取反 (Inversion),或稱補集 (Complement)" #: ../../library/operator.rst:415 msgid "``~ a``" diff --git a/library/stdtypes.po b/library/stdtypes.po index e827f0d9ae..fd8667e25b 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -8579,7 +8579,7 @@ msgstr "" #: ../../library/stdtypes.rst:5880 msgid "" "This is true for :ref:`user-defined generics ` also." -msgstr "這對 :ref:`使用者定義泛型 ` 也是成立的。" +msgstr "這對\\ :ref:`使用者定義泛型 `\\ 也是成立的。" #: ../../library/stdtypes.rst:5882 msgid ""