Skip to content

Commit a2de965

Browse files
josixclaude
andcommitted
Apply past review conventions to dataclasses/faq-library translations
Recheck the re-translated entries against the corrections reviewers most often ask for: - drop \ before 。 after a literal (no separator next to full-width punctuation) - 串列 only for a Python list; generic lists of fields/parameters/objects become 清單 - keep "token" in English Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H2AUU3pZYEkfs9BY3mm7bn
1 parent a051272 commit a2de965

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎faq/library.po‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ msgid ""
491491
msgstr ""
492492
"與其嘗試為 :func:`time.sleep` 猜一個合適的延遲值,不如使用某種號誌("
493493
"semaphore)機制。一個做法是使用 :mod:`queue` 模組建立一個佇列物件,讓每個執行"
494-
"緒在完成時向佇列加入一個記號,然後讓主執行緒從佇列中讀取與執行緒數量相同的記"
495-
"號。"
494+
"緒在完成時向佇列加入一個 token,然後讓主執行緒從佇列中讀取與執行緒數量相同的 "
495+
"token。"
496496

497497
#: ../../faq/library.rst:290
498498
msgid "How do I parcel out work among a bunch of worker threads?"
@@ -516,7 +516,7 @@ msgid ""
516516
"necessary to ensure that each job is handed out exactly once."
517517
msgstr ""
518518
"或者,如果你想精細控制分派演算法,也可以自己手動撰寫邏輯。使用 :mod:`queue` "
519-
"模組建立一個存放工作清單的佇列。:class:`~queue.Queue` 類別維護一個物件串列,"
519+
"模組建立一個存放工作清單的佇列。:class:`~queue.Queue` 類別維護一個物件清單,"
520520
"並提供將項目加入佇列的 ``.put(obj)`` 方法,以及取出項目的 ``.get()`` 方法。這"
521521
"個類別會處理必要的鎖定,確保每項工作都恰好只被分派一次。"
522522

‎library/dataclasses.po‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ msgid ""
102102
"<variable annotation>`. With two exceptions described below, nothing in "
103103
"``@dataclass`` examines the type specified in the variable annotation."
104104
msgstr ""
105-
"``@dataclass`` 裝飾器會檢查類別以找出 ``field``\\ 。``field`` 的定義是具有\\ "
105+
"``@dataclass`` 裝飾器會檢查類別以找出 ``field``。``field`` 的定義是具有\\ "
106106
":term:`型別註釋 <variable annotation>`\\ 的類別變數。除了下面描述的兩個例外,"
107107
"``@dataclass`` 完全不會檢查變數註釋中指定的型別。"
108108

@@ -363,7 +363,7 @@ msgid ""
363363
"__match_args__` will not be generated."
364364
msgstr ""
365365
"*match_args*:如果為真(預設為 ``True``),會根據所產生的 "
366-
":meth:`~object.__init__` 方法中非僅限關鍵字參數的串列,建立 "
366+
":meth:`~object.__init__` 方法中非僅限關鍵字參數的清單,建立 "
367367
":attr:`~object.__match_args__` tuple(即使沒有產生 :meth:`!__init__` 也一樣,"
368368
"見上文)。如果為假,或是類別中已經定義了 :attr:`!__match_args__`,則不會產生 "
369369
":attr:`!__match_args__`。"
@@ -1293,7 +1293,7 @@ msgid ""
12931293
"The final type of :attr:`!x` is :class:`int`, as specified in class :class:`!"
12941294
"C`."
12951295
msgstr ""
1296-
"最終的欄位串列依序為 :attr:`!x`、:attr:`!y`、:attr:`!z`。:attr:`!x` 的最終型"
1296+
"最終的欄位清單依序為 :attr:`!x`、:attr:`!y`、:attr:`!z`。:attr:`!x` 的最終型"
12971297
"別是 :class:`int`,如類別 :class:`!C` 中所指定。"
12981298

12991299
#: ../../library/dataclasses.rst:702
@@ -1374,15 +1374,15 @@ msgid ""
13741374
"list of fields: parameters derived from regular fields are followed by "
13751375
"parameters derived from keyword-only fields."
13761376
msgstr ""
1377-
"請注意,參數已經從它們在欄位串列中出現的順序重新排序:由一般欄位衍生的參數排"
1377+
"請注意,參數已經從它們在欄位清單中出現的順序重新排序:由一般欄位衍生的參數排"
13781378
"在前面,接著才是由僅限關鍵字欄位衍生的參數。"
13791379

13801380
#: ../../library/dataclasses.rst:738
13811381
msgid ""
13821382
"The relative ordering of keyword-only parameters is maintained in the re-"
13831383
"ordered :meth:`!__init__` parameter list."
13841384
msgstr ""
1385-
"在重新排序後的 :meth:`!__init__` 參數串列中,僅限關鍵字參數之間的相對順序會維"
1385+
"在重新排序後的 :meth:`!__init__` 參數清單中,僅限關鍵字參數之間的相對順序會維"
13861386
"持不變。"
13871387

13881388
#: ../../library/dataclasses.rst:743

0 commit comments

Comments
 (0)