Skip to content

Commit b6ee18b

Browse files
committed
Translate new/fuzzy entries from upstream sync (cpython 8f290e2)
Rebased cron/sync/3.14 onto 5 new upstream sync commits and translated the resulting scope: 32 entries (11 fuzzy, 21 new-empty) across 16 files, after filtering out ~350 false positives from pre-existing untranslated backlog (whatsnew/2.4-2.6) whose msgids merely shifted due to unrelated upstream role-target reformatting. Resolved one rebase conflict in library/curses.po (stale fuzzy tag on an unchanged, already-translated entry). Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1d436c7 commit b6ee18b

16 files changed

Lines changed: 89 additions & 23 deletions

c-api/arg.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,11 @@ msgid ""
756756
"corresponds to the Python signature ``f(a, b=None, *, c=None)``, and the "
757757
"format string ``\"OO$OO\"`` corresponds to ``f(a, b, *, c, d)``."
758758
msgstr ""
759+
"僅限 :c:func:`PyArg_ParseTupleAndKeywords`:表示 Python 引數列表中剩餘的引數"
760+
"皆為僅限關鍵字引數。若 ``$`` 之前指定了 ``|``,則它們為可選;否則為必要。``|"
761+
"`` 不能在 ``$`` 之後指定。例如,格式字串 ``\"O|O$O\"`` 對應到 Python 簽名 "
762+
"``f(a, b=None, *, c=None)``,格式字串 ``\"OO$OO\"`` 則對應到 ``f(a, b, *, c, "
763+
"d)``。"
759764

760765
#: ../../c-api/arg.rst:410
761766
msgid "``:``"

library/argparse.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,7 +3028,6 @@ msgstr ""
30283028
"退出並印出錯誤及用法訊息: ::"
30293029

30303030
#: ../../library/argparse.rst:1532
3031-
#, fuzzy
30323031
msgid ""
30333032
">>> parser = argparse.ArgumentParser(prog='PROG')\n"
30343033
">>> parser.add_argument('--foo', type=int)\n"
@@ -3061,12 +3060,12 @@ msgstr ""
30613060
">>> # 無效選項\n"
30623061
">>> parser.parse_args(['--bar'])\n"
30633062
"usage: PROG [-h] [--foo FOO] [bar]\n"
3064-
"PROG: error: no such option: --bar\n"
3063+
"PROG: error: unrecognized arguments: --bar\n"
30653064
"\n"
30663065
">>> # 錯誤引數數量\n"
30673066
">>> parser.parse_args(['spam', 'badger'])\n"
30683067
"usage: PROG [-h] [--foo FOO] [bar]\n"
3069-
"PROG: error: extra arguments found: badger"
3068+
"PROG: error: unrecognized arguments: badger"
30703069

30713070
#: ../../library/argparse.rst:1553
30723071
msgid "Arguments containing ``-``"
@@ -3090,7 +3089,6 @@ msgstr ""
30903089
"開頭: ::"
30913090

30923091
#: ../../library/argparse.rst:1563
3093-
#, fuzzy
30943092
msgid ""
30953093
">>> parser = argparse.ArgumentParser(prog='PROG')\n"
30963094
">>> parser.add_argument('-x')\n"
@@ -3145,7 +3143,7 @@ msgstr ""
31453143
">>> # 有負數選項存在,所以 -2 是選項\n"
31463144
">>> parser.parse_args(['-2'])\n"
31473145
"usage: PROG [-h] [-1 ONE] [foo]\n"
3148-
"PROG: error: no such option: -2\n"
3146+
"PROG: error: unrecognized arguments: -2\n"
31493147
"\n"
31503148
">>> # 有負數選項存在,所以兩個 -1 都是選項\n"
31513149
">>> parser.parse_args(['-1', '-1'])\n"
@@ -3184,6 +3182,8 @@ msgid ""
31843182
"notation (``-2.5e-6``), numbers containing underscores (``-1_234.5``), and "
31853183
"complex numbers (``-1.2e-3j``)."
31863184
msgstr ""
3185+
"負數比對已擴充,現在也包括科學記號表示的數字(``-2.5e-6``)、包含底線的數字"
3186+
"(``-1_234.5``)以及複數(``-1.2e-3j``)。"
31873187

31883188
#: ../../library/argparse.rst:1612
31893189
msgid "Argument abbreviations (prefix matching)"

library/asyncio-task.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,20 @@ msgid ""
452452
"class:`asyncio.TaskGroup` which keeps a strong reference to each task, "
453453
"awaits them and propagates their exceptions::"
454454
msgstr ""
455+
"請注意,這種做法從不對 task 執行 await,因此如果某個 task 失敗,其例外永遠不"
456+
"會被取得,當該 task 被垃圾回收時,asyncio 會記錄一則「Task exception was "
457+
"never retrieved」訊息。為了避免這種情況,請使用 :class:`asyncio.TaskGroup`,"
458+
"它會對每個 task 保留強參照、對它們執行 await 並傳播它們的例外: ::"
455459

456460
#: ../../library/asyncio-task.rst:298
457461
msgid ""
458462
"async with asyncio.TaskGroup() as tg:\n"
459463
" for i in range(10):\n"
460464
" tg.create_task(some_coro(param=i))"
461465
msgstr ""
466+
"async with asyncio.TaskGroup() as tg:\n"
467+
" for i in range(10):\n"
468+
" tg.create_task(some_coro(param=i))"
462469

463470
#: ../../library/asyncio-task.rst:304 ../../library/asyncio-task.rst:1275
464471
msgid "Added the *name* parameter."

library/contextlib.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,8 @@ msgid ""
14381438
"context managers, and will complain about the underlying generator failing "
14391439
"to yield if an attempt is made to use them a second time::"
14401440
msgstr ""
1441+
"使用 :deco:`contextmanager` 建立的情境管理器同樣屬於單次使用的情境管理器,如"
1442+
"果嘗試第二次使用它們,將會因為底層產生器未能執行 yield 而回報錯誤: ::"
14411443

14421444
#: ../../library/contextlib.rst:919
14431445
msgid ""

library/csv.po

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ msgid ""
514514
"matter how many times each of them occurs."
515515
msgstr ""
516516
"如果有多個分隔字元都同樣適合該樣本 -- 例如 ``','`` 和 ``';'`` 都能一致地分割"
517-
"每一列 -- 則會依序偏好使用分隔字元 ``','``、``'\\t'``、``';'``、``' "
518-
"'`` 和 ``':'``,不論它們各自出現的次數為何。"
517+
"每一列 -- 則會依序偏好使用分隔字元 ``','``、``'\\t'``、``';'``、``' '`` 和 "
518+
"``':'``,不論它們各自出現的次數為何。"
519519

520520
#: ../../library/csv.rst:325
521521
msgid ""
@@ -556,16 +556,17 @@ msgstr ""
556556
"negatives)。"
557557

558558
#: ../../library/csv.rst:342
559-
#, fuzzy
560559
msgid "The :class:`Sniffer` class has the following attribute:"
561-
msgstr "類別 :class:`Sniffer` 提供了兩個 method:"
560+
msgstr "類別 :class:`Sniffer` 具有以下屬性:"
562561

563562
#: ../../library/csv.rst:346
564563
msgid ""
565564
"The list of the delimiters preferred for breaking ties, in the order of "
566565
"preference. It can be modified. Its initial value is ``[',', '\\t', ';', ' "
567566
"', ':']``."
568567
msgstr ""
568+
"用於打破平局的偏好分隔字元清單,依偏好順序排列。此清單可以被修改,其初始值為 "
569+
"``[',', '\\t', ';', ' ', ':']``。"
569570

570571
#: ../../library/csv.rst:351
571572
msgid "An example for :class:`Sniffer` use::"
@@ -594,7 +595,6 @@ msgid "Instructs :class:`writer` objects to quote all fields."
594595
msgstr "引導 :class:`writer` 物件引用所有欄位。"
595596

596597
#: ../../library/csv.rst:371
597-
#, fuzzy
598598
msgid ""
599599
"Instructs :class:`writer` objects to only quote those fields which contain "
600600
"special characters such as *delimiter*, *quotechar*, ``'\\r'``, ``'\\n'`` or "
@@ -603,7 +603,9 @@ msgid ""
603603
"causing the field to be quoted."
604604
msgstr ""
605605
"引導 :class:`writer` 物件只引用包含特殊字元的欄位,例如:*delimiter*、"
606-
"*quotechar*、``'\\r'``、``'\\n'`` 或是 *lineterminator* 的其他字元。"
606+
"*quotechar*、``'\\r'``、``'\\n'`` 或是 *lineterminator* 中的其他字元。如果 "
607+
"*doublequote* 為 :const:`False` 且已設定 *escapechar*,則會逸出 *quotechar*,"
608+
"而不是導致該欄位被引用。"
607609

608610
#: ../../library/csv.rst:380
609611
msgid "Instructs :class:`writer` objects to quote all non-numeric fields."
@@ -769,7 +771,7 @@ msgstr ""
769771
#: ../../library/csv.rst:480
770772
msgid ""
771773
"Previously the *escapechar* itself was not escaped, which lost it on reading."
772-
msgstr ""
774+
msgstr "先前 *escapechar* 本身並未被逸出,導致在讀取時遺失該字元。"
773775

774776
#: ../../library/csv.rst:484
775777
msgid "An empty *escapechar* is not allowed."

library/curses.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ msgid ""
8080
"`~window.refresh`) release the :term:`GIL`, unsynchronized use from several "
8181
"threads can then crash the interpreter. Serialize the calls."
8282
msgstr ""
83+
"curses 是否可從多個執行緒使用,取決於底層函式庫及其建置方式。在許多實作中(包"
84+
"括 ncurses 的預設建置),螢幕狀態是共享的且非執行緒安全;由於封鎖和重新整理方"
85+
"法(例如 :meth:`~window.getch` 和 :meth:`~window.refresh`)會釋放 :term:"
86+
"`GIL`,因此從多個執行緒進行未同步的使用可能會導致直譯器崩潰。請將這些呼叫序列"
87+
"化。"
8388

8489
#: ../../library/curses.rst:51
8590
msgid "Module :mod:`curses.ascii`"

library/datetime.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,7 @@ msgstr ""
22582258
msgid ""
22592259
"This method no longer relies on the platform C :c:func:`mktime` function to "
22602260
"perform conversions."
2261-
msgstr ""
2261+
msgstr "此方法不再依賴平台的 C :c:func:`mktime` 函式來執行轉換。"
22622262

22632263
#: ../../library/datetime.rst:1572
22642264
msgid ""

library/email.contentmanager.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ msgid ""
156156
"and it enables the use of the various ``add_`` methods, thereby simplifying "
157157
"the creation of multipart messages."
158158
msgstr ""
159+
"這個內容管理器在 :class:`~email.message.Message` 本身所提供的功能之上,只額外"
160+
"提供了最基本的介面:它只處理文字、原始位元組,以及 :class:`~email.message."
161+
"Message` 物件。儘管如此,相較於基礎 API,它仍具有顯著的優勢:文字部分的 "
162+
"``get_content`` 會直接回傳字串,應用程式不需要手動解碼;``set_content`` 提供"
163+
"了豐富的選項,可用來控制加入到某部分的標頭並控制內容傳輸編碼;且它讓各種 "
164+
"``add_`` 方法得以使用,進而簡化了多部分郵件的建立。"
159165

160166
#: ../../library/email.contentmanager.rst:112
161167
msgid ""

library/os.path.po

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ msgid ""
116116
"drive, and the drive letter is capitalized. Trailing dots and spaces are "
117117
"stripped. For example::"
118118
msgstr ""
119+
"在 Windows 上,路徑會由作業系統正規化,因此結果可能與 ``normpath(join(os."
120+
"getcwd(), path))`` 不同。驅動機相對路徑會相對於指定驅動機的目前目錄進行解析,"
121+
"且驅動機字母會轉為大寫。結尾的點號和空格會被移除。例如: ::"
119122

120123
#: ../../library/os.path.rst:69
121124
msgid ""
@@ -124,6 +127,10 @@ msgid ""
124127
">>> os.path.abspath('c:/temp/spam. . .')\n"
125128
"'c:\\\\temp\\\\spam'"
126129
msgstr ""
130+
">>> os.path.abspath('c:spam')\n"
131+
"'C:\\\\Temp\\\\spam'\n"
132+
">>> os.path.abspath('c:/temp/spam. . .')\n"
133+
"'c:\\\\temp\\\\spam'"
127134

128135
#: ../../library/os.path.rst:74
129136
msgid ":func:`os.path.join` and :func:`os.path.normpath`."
@@ -587,7 +594,6 @@ msgstr ""
587594
"個字元。"
588595

589596
#: ../../library/os.path.rst:438
590-
#, fuzzy
591597
msgid ""
592598
"Return the canonical path of the specified filename, eliminating any "
593599
"symbolic links encountered in the path (if they are supported by the "
@@ -599,7 +605,8 @@ msgid ""
599605
msgstr ""
600606
"回傳指定檔案名稱的規範路徑,會消除路徑中遇到的所有符號連結(如果作業系統支"
601607
"援)。在 Windows 上,此函式還會解析 MS-DOS(也稱為 8.3)樣式的名稱,例如 ``C:"
602-
"\\\\PROGRA~1`` 會被解析為 ``C:\\\\Program Files``。"
608+
"\\\\PROGRA~1`` 會被解析為 ``C:\\\\Program Files``。回傳的路徑會使用作業系統回"
609+
"報的大小寫,這可能與 *path* 的大小寫不同,特別是驅動機字母會轉為大寫。"
603610

604611
#: ../../library/os.path.rst:446
605612
msgid ""

library/site.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,13 @@ msgid ""
303303
"is ``None``), this function will find its site-packages subdirectory "
304304
"depending on the system environment, and will return a list of full paths."
305305
msgstr ""
306+
"對於 *prefixes* 中的每個目錄(若 *prefixes* 為 ``None`` 則使用 :data:"
307+
"`PREFIXES`),此函式會依系統環境找出其 site-packages 子目錄,並回傳一個包含完"
308+
"整路徑的串列。"
306309

307310
#: ../../library/site.rst:254
308311
msgid "Added the optional *prefixes* parameter."
309-
msgstr ""
312+
msgstr "新增可選參數 *prefixes*。"
310313

311314
#: ../../library/site.rst:260
312315
msgid ""

0 commit comments

Comments
 (0)