Skip to content

Commit 42a064b

Browse files
mattwang44claude
andcommitted
Resolve fuzzy entries whose msgid changed only in reST markup
Upstream changed markup without touching the prose, e.g. :func: -> :deco: for decorators, :const:`None` -> ``None``, fully qualified role targets, and renamed parameters (*secs* -> *seconds*). Port the same token change into the existing msgstr and clear the fuzzy flag. An entry is only changed when every difference between the old and new msgid is a markup token (or whitespace), and each replaced token occurs verbatim in the msgstr as many times as in the msgid. Entries with any prose change are left for human review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 7e48c38 commit 42a064b

30 files changed

Lines changed: 165 additions & 242 deletions

‎c-api/init_config.po‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,9 +1927,8 @@ msgid "Python base executable: ``sys._base_executable``."
19271927
msgstr ":c:member:`base_executable <PyConfig.base_executable>`"
19281928

19291929
#: ../../c-api/init_config.rst:1242
1930-
#, fuzzy
19311930
msgid "Set by the ``__PYVENV_LAUNCHER__`` environment variable."
1932-
msgstr "由 :envvar:`__PYVENV_LAUNCHER__` 環境變數設定。"
1931+
msgstr "由 ``__PYVENV_LAUNCHER__`` 環境變數設定。"
19331932

19341933
#: ../../c-api/init_config.rst:1244
19351934
msgid "Set from :c:member:`PyConfig.executable` if ``NULL``."

‎c-api/intro.po‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,6 @@ msgstr ""
16951695
"建置 <debug-build>`。"
16961696

16971697
#: ../../c-api/intro.rst:1076
1698-
#, fuzzy
16991698
msgid ""
17001699
"Defining ``Py_TRACE_REFS`` enables reference tracing (see the :option:"
17011700
"`configure --with-trace-refs option <--with-trace-refs>`). When defined, a "
@@ -1704,11 +1703,11 @@ msgid ""
17041703
"well. Upon exit, all existing references are printed. (In interactive mode "
17051704
"this happens after every statement run by the interpreter.)"
17061705
msgstr ""
1707-
"定義 :c:macro:`Py_TRACE_REFS` 來啟用參照追蹤(參見\\ :option:`設定 --with-"
1708-
"trace-refs 選項 <--with-trace-refs>`)。當有定義時,透過向每個 :c:type:"
1709-
"`PyObject` 新增兩個額外欄位來維護有效物件的循環雙向鍊表 (circular doubly "
1710-
"linked list)。全體分配也有被追蹤。退出時將印出所有現行參照。(在交互模式下,"
1711-
"這發生在直譯器運行的每個陳述句之後。)"
1706+
"定義 ``Py_TRACE_REFS`` 來啟用參照追蹤(參見\\ :option:`設定 --with-trace-"
1707+
"refs 選項 <--with-trace-refs>`)。當有定義時,透過向每個 :c:type:`PyObject` "
1708+
"新增兩個額外欄位來維護有效物件的循環雙向鍊表 (circular doubly linked list)。"
1709+
"全體分配也有被追蹤。退出時將印出所有現行參照。(在交互模式下,這發生在直譯器"
1710+
"運行的每個陳述句之後。)"
17121711

17131712
#: ../../c-api/intro.rst:1083
17141713
msgid ""

‎deprecations/index.po‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,12 @@ msgstr ""
193193
"pass`` 或 ``TD = TypedDict(\"TD\", {})`` 來建立具有零個欄位的 TypedDict。"
194194

195195
#: ../../deprecations/pending-removal-in-3.15.rst:85
196-
#, fuzzy
197196
msgid ""
198197
"The :deco:`typing.no_type_check_decorator` decorator function has been "
199198
"deprecated since Python 3.13. After eight years in the :mod:`typing` module, "
200199
"it has yet to be supported by any major type checker."
201200
msgstr ""
202-
"自 Python 3.13 起,:func:`typing.no_type_check_decorator` 裝飾器函式已被棄"
201+
"自 Python 3.13 起,:deco:`typing.no_type_check_decorator` 裝飾器函式已被棄"
203202
"用。在 :mod:`typing` 模組中使用了八年之後,它尚未得到任何主要型別檢查器的支"
204203
"援。"
205204

‎deprecations/pending-removal-in-3.15.po‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,12 @@ msgstr ""
183183
"pass`` 或 ``TD = TypedDict(\"TD\", {})`` 來建立具有零個欄位的 TypedDict。"
184184

185185
#: ../../deprecations/pending-removal-in-3.15.rst:85
186-
#, fuzzy
187186
msgid ""
188187
"The :deco:`typing.no_type_check_decorator` decorator function has been "
189188
"deprecated since Python 3.13. After eight years in the :mod:`typing` module, "
190189
"it has yet to be supported by any major type checker."
191190
msgstr ""
192-
"自 Python 3.13 起,:func:`typing.no_type_check_decorator` 裝飾器函式已被棄"
191+
"自 Python 3.13 起,:deco:`typing.no_type_check_decorator` 裝飾器函式已被棄"
193192
"用。在 :mod:`typing` 模組中使用了八年之後,它尚未得到任何主要型別檢查器的支"
194193
"援。"
195194

‎extending/extending.po‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2815,7 +2815,6 @@ msgstr ""
28152815
"式的基本結構都是相同的,所以只需要學習一次。"
28162816

28172817
#: ../../extending/extending.rst:1404
2818-
#, fuzzy
28192818
msgid ""
28202819
"Finally it should be mentioned that Capsules offer additional functionality, "
28212820
"which is especially useful for memory allocation and deallocation of the "
@@ -2827,7 +2826,7 @@ msgstr ""
28272826
"最後應該提到的是,Capsule 提供了額外的功能,這對於 Capsule 中儲存的指標的記憶"
28282827
"體配置和釋放特別有用。詳細資訊在 Python/C API 參考手冊的 :ref:`capsules` 章節"
28292828
"以及 Capsule 的實作中有描述(Python 原始碼發行版中的 :file:`Include/"
2830-
"pycapsule.h` 和 :file:`Objects/pycapsule.c` 檔案)。"
2829+
"pycapsule.h` 和 :file:`Objects/capsule.c` 檔案)。"
28312830

28322831
#: ../../extending/extending.rst:1412
28332832
msgid "Footnotes"

‎faq/programming.po‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3868,14 +3868,14 @@ msgid "How do I cache method calls?"
38683868
msgstr "如何快取方法呼叫?"
38693869

38703870
#: ../../faq/programming.rst:2005
3871-
#, fuzzy
38723871
msgid ""
38733872
"The two principal tools for caching methods are :deco:`functools."
38743873
"cached_property` and :deco:`functools.lru_cache`. The former stores results "
38753874
"at the instance level and the latter at the class level."
38763875
msgstr ""
3877-
"快取方法的兩個主要工具是 :func:`functools.cached_property` 和 :func:"
3878-
"`functools.lru_cache`。前者在實例層級儲存結果,後者在類別層級儲存結果。"
3876+
"快取方法的兩個主要工具是 :deco:`functools.cached_property` "
3877+
"和 :deco:`functools.lru_cache`。前者在實例層級儲存結果,後者在類別層級儲存結"
3878+
"果。"
38793879

38803880
#: ../../faq/programming.rst:2010
38813881
msgid ""

‎glossary.po‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -900,15 +900,14 @@ msgid "decorator"
900900
msgstr "decorator(裝飾器)"
901901

902902
#: ../../glossary.rst:417
903-
#, fuzzy
904903
msgid ""
905904
"A function returning another function, usually applied as a function "
906905
"transformation using the ``@wrapper`` syntax. Common examples for "
907906
"decorators are :deco:`classmethod` and :deco:`staticmethod`."
908907
msgstr ""
909908
"一個函式,它會回傳另一個函式,通常它會使用 ``@wrapper`` 語法,被應用為一種函"
910-
"式的變換 (function transformation)。裝飾器的常見範例是 :func:`classmethod` "
911-
"和 :func:`staticmethod`。"
909+
"式的變換 (function transformation)。裝飾器的常見範例是 :deco:`classmethod` "
910+
"和 :deco:`staticmethod`。"
912911

913912
#: ../../glossary.rst:421
914913
msgid ""
@@ -1480,7 +1479,6 @@ msgid ""
14801479
msgstr "一個由 :term:`generator`\\ (產生器)函式所建立的物件。"
14811480

14821481
#: ../../glossary.rst:673
1483-
#, fuzzy
14841482
msgid ""
14851483
"Each :keyword:`yield` temporarily suspends processing, remembering the "
14861484
"execution state (including local variables and pending try-statements). When "
@@ -1537,13 +1535,12 @@ msgstr ""
15371535
"用哪種實作,是由調度演算法 (dispatch algorithm) 來決定。"
15381536

15391537
#: ../../glossary.rst:699
1540-
#, fuzzy
15411538
msgid ""
15421539
"See also the :term:`single dispatch` glossary entry, the :deco:`functools."
15431540
"singledispatch` decorator, and :pep:`443`."
15441541
msgstr ""
1545-
"另請參閱 :term:`single dispatch`\\ (單一調度)術語表條目、:func:`functools."
1546-
"singledispatch` 裝飾器和 :pep:`443`。"
1542+
"另請參閱 :term:`single dispatch`\\ (單一調度)術語表條"
1543+
"目、:deco:`functools.singledispatch` 裝飾器和 :pep:`443`。"
15471544

15481545
#: ../../glossary.rst:701
15491546
msgid "generic type"

‎howto/descriptor.po‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,16 @@ msgstr ""
7878
"這種程度的細節。"
7979

8080
#: ../../howto/descriptor.rst:28
81-
#, fuzzy
8281
msgid ""
8382
"The last section has pure Python equivalents for built-in descriptors that "
8483
"are written in C. Read this if you're curious about how functions turn into "
8584
"bound methods or about the implementation of common tools like :deco:"
8685
"`classmethod`, :deco:`staticmethod`, :deco:`property`, and :term:`__slots__`."
8786
msgstr ""
8887
"最後一個章節提供以 C 語言撰寫的內建描述器的純 Python 等價實作。如果你好奇函式"
89-
"如何轉變為綁定方法,或者想了解常見工具如 :func:`classmethod`、:func:"
90-
"`staticmethod`、:func:`property` 和 :term:`__slots__` 的實作方式,請閱讀此章"
91-
"節。"
88+
"如何轉變為綁定方法,或者想了解常見工具"
89+
"如 :deco:`classmethod`、:deco:`staticmethod`、:deco:`property` "
90+
"和 :term:`__slots__` 的實作方式,請閱讀此章節。"
9291

9392
#: ../../howto/descriptor.rst:36
9493
msgid "Primer"
@@ -623,16 +622,15 @@ msgstr ""
623622
"料在這件事上有發言權。"
624623

625624
#: ../../howto/descriptor.rst:319
626-
#, fuzzy
627625
msgid ""
628626
"Descriptors are used throughout the language. It is how functions turn into "
629627
"bound methods. Common tools like :deco:`classmethod`, :deco:"
630628
"`staticmethod`, :deco:`property`, and :deco:`functools.cached_property` are "
631629
"all implemented as descriptors."
632630
msgstr ""
633631
"描述器在整個語言中被廣泛使用。函式就是透過這種方式轉變為綁定方法。常見工具"
634-
"如 :func:`classmethod`、:func:`staticmethod`、:func:`property` 和 :func:"
635-
"`functools.cached_property` 都是以描述器實作的。"
632+
"如 :deco:`classmethod`、:deco:`staticmethod`、:deco:`property` "
633+
"和 :deco:`functools.cached_property` 都是以描述器實作的。"
636634

637635
#: ../../howto/descriptor.rst:326
638636
msgid "Complete Practical Example"

‎howto/mro.po‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ msgstr ""
3232
"Python 3。"
3333

3434
#: ../../howto/mro.rst:13
35-
#, fuzzy
3635
msgid "By `Michele Simionato <https://github.com/micheles>`__."
37-
msgstr "作者:`Michele Simionato <https://www.phyast.pitt.edu/~micheles/>`__。"
36+
msgstr "作者:`Michele Simionato <https://github.com/micheles>`__。"
3837

3938
#: ../../howto/mro.rst:0
4039
msgid "Abstract"

‎howto/remote_debugging.po‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ msgstr ""
5151
"``1``。"
5252

5353
#: ../../howto/remote_debugging.rst:19
54-
#, fuzzy
5554
msgid "Use the :option:`-X disable-remote-debug` command-line option."
56-
msgstr "使用 :option:`-X disable_remote_debug` 命令列選項。"
55+
msgstr "使用 :option:`-X disable-remote-debug` 命令列選項。"
5756

5857
#: ../../howto/remote_debugging.rst:20
5958
msgid "Compile Python with the :option:`--without-remote-debug` build flag."

0 commit comments

Comments
 (0)