Skip to content

Commit beed5ec

Browse files
committed
Translate new/fuzzy entries from upstream sync and port builtins/ reorg
Upstream split several library/*.po files (constants, exceptions, functions, stdtypes, threadsafety, time-complexity, index) into a new builtins/ directory as duplicate untranslated POT files. Ported the existing translations across by matching msgid text (971+521+202+22+ 120+6 entries), rather than re-translating from scratch or leaving them blank; the pre-existing large untranslated backlog in stdtypes/ threadsafety was correctly left out of scope in both locations. Translated ~65 new/fuzzy entries introduced by the latest upstream sync across 20 files (library/warnings, importlib, xml.etree. elementtree, socket, codecs, json, asyncio-task, multiprocessing, sys.monitoring; builtins/index, exceptions; reference/index; tutorial/ index, whatnow; extending/index; sphinx.po; whatsnew/3.14; c-api/ bytes, bytearray), including several cross-reference updates tied to the new builtins-index split (library/index, intro). Also did a native-fluency pass over faq/library.po's 51 pre-existing fuzzy entries, most originally zh_CN machine-translated: converted zh_CN terminology (运行/示例/内置/队列/调度/鼠标/etc.), fixed a broken :meth: cross-reference (socket.connect -> ~socket.socket.connect), a malformed :term: role for "global interpreter lock", mismatched/ missing backticks, a stray space breaking a URL, a duplicated- character typo, a leaked simplified character, stray zero-width spaces, and missing/incomplete sentences (GIL history section). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019iE4WSHg1R7JwuTCqpn2ae
1 parent a9a6ad6 commit beed5ec

27 files changed

Lines changed: 4122 additions & 1392 deletions

builtins/constants.po

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,27 @@ msgstr ""
1919

2020
#: ../../builtins/constants.rst:4
2121
msgid "Built-in Constants"
22-
msgstr ""
22+
msgstr "內建常數"
2323

2424
#: ../../builtins/constants.rst:6
2525
msgid "A small number of constants live in the built-in namespace. They are:"
26-
msgstr ""
26+
msgstr "有一小部分的常數存在於內建命名空間中。他們是:"
2727

2828
#: ../../builtins/constants.rst:10
2929
msgid ""
3030
"The false value of the :class:`bool` type. Assignments to ``False`` are "
3131
"illegal and raise a :exc:`SyntaxError`."
3232
msgstr ""
33+
"在 :class:`bool` 型別中的 false 值。對於 ``False`` 的賦值是不合法的,並且會拋"
34+
"出 :exc:`SyntaxError`。"
3335

3436
#: ../../builtins/constants.rst:16
3537
msgid ""
3638
"The true value of the :class:`bool` type. Assignments to ``True`` are "
3739
"illegal and raise a :exc:`SyntaxError`."
3840
msgstr ""
41+
"在 :class:`bool` 型別中的 true 值。對於 ``True`` 的賦值是不合法的,並且會拋"
42+
"出 :exc:`SyntaxError`。"
3943

4044
#: ../../builtins/constants.rst:22
4145
msgid ""
@@ -44,6 +48,9 @@ msgid ""
4448
"illegal and raise a :exc:`SyntaxError`. ``None`` is the sole instance of "
4549
"the :class:`~types.NoneType` type."
4650
msgstr ""
51+
"一個經常被使用來表達缺少值的物件,例如未傳送預設的引數至函式時。對於 "
52+
"``None`` 的賦值是不合法的,並且會引發 :exc:`SyntaxError`。``None`` 是 :class:"
53+
"`~types.NoneType` 型別的唯一實例。"
4754

4855
#: ../../builtins/constants.rst:30
4956
msgid ""
@@ -56,6 +63,12 @@ msgid ""
5663
"boolean context. :data:`!NotImplemented` is the sole instance of the :class:"
5764
"`types.NotImplementedType` type."
5865
msgstr ""
66+
"會被二元特殊方法 (binary special methods)(如::meth:`~object.__eq__`、:meth:"
67+
"`~object.__lt__`、:meth:`~object.__add__`、:meth:`~object.__rsub__` 等)所回"
68+
"傳的特殊值,代表著該運算沒有針對其他型別的實作。同理也可以被原地二元特殊方法 "
69+
"(in-place binary special methods) (如::meth:`~object.__imul__`、:meth:"
70+
"`~object.__iand__` 等)回傳。它不應該被作為 boolean(布林)來解讀。:data:`!"
71+
"NotImplemented` 是 :class:`types.NotImplementedType` 型別的唯一實例。"
5972

6073
#: ../../builtins/constants.rst:40
6174
msgid ""
@@ -67,28 +80,40 @@ msgid ""
6780
"error message or the :data:`!NotImplemented` value being returned to Python "
6881
"code."
6982
msgstr ""
83+
"當一個二元 (binary) 或原地 (in-place) 方法回傳 :data:`!NotImplemented`,直譯"
84+
"器會嘗試反映該操作到其他型別(或是其他後備 (fallback),取決於是哪種運算子)。"
85+
"如果所有的常識都回傳 :data:`!NotImplemented`,直譯器會拋出適當的例外。不正確"
86+
"的回傳 :data:`!NotImplemented` 會造成誤導的錯誤訊息或是 :data:`!"
87+
"NotImplemented` 值被傳回到 Python 程式碼中。"
7088

7189
#: ../../builtins/constants.rst:47
7290
msgid "See :ref:`implementing-the-arithmetic-operations` for examples."
73-
msgstr ""
91+
msgstr "請參見 :ref:`implementing-the-arithmetic-operations` 以找到更多範例。"
7492

7593
#: ../../builtins/constants.rst:51
7694
msgid ""
7795
":data:`!NotImplemented` and :exc:`!NotImplementedError` are not "
7896
"interchangeable. This constant should only be used as described above; see :"
7997
"exc:`NotImplementedError` for details on correct usage of the exception."
8098
msgstr ""
99+
":data:`!NotImplemented` 與 :exc:`!NotImplementedError` 並不一樣且不可互換。這"
100+
"個常數只能用於上述的情況;欲知更多如何正確使用它們的細節,請參見 :exc:"
101+
"`NotImplementedError`。"
81102

82103
#: ../../builtins/constants.rst:56
83104
msgid "Evaluating :data:`!NotImplemented` in a boolean context was deprecated."
84105
msgstr ""
106+
"在 boolean(布林)上下文中對 :data:`!NotImplemented` 求值的操作已被棄用。"
85107

86108
#: ../../builtins/constants.rst:59
87109
msgid ""
88110
"Evaluating :data:`!NotImplemented` in a boolean context now raises a :exc:"
89111
"`TypeError`. It previously evaluated to :const:`True` and emitted a :exc:"
90112
"`DeprecationWarning` since Python 3.9."
91113
msgstr ""
114+
"在 boolean 上下文中解讀 :data:`!NotImplemented` 現在會引發 :exc:`TypeError`。"
115+
"過去自 Python 3.9 以來,這會被解讀成 :const:`True`,並發出 :exc:"
116+
"`DeprecationWarning`"
92117

93118
#: ../../builtins/constants.rst:68
94119
msgid ""
@@ -97,23 +122,31 @@ msgid ""
97122
"but assignment to ``...`` raises a :exc:`SyntaxError`. ``Ellipsis`` is the "
98123
"sole instance of the :class:`types.EllipsisType` type."
99124
msgstr ""
125+
"與刪節號 \"``...``\" 字面相同,是一個經常被用來表示某些東西被省略的物件。對"
126+
"於 ``Ellipsis`` 的賦值是可能的,但對於 ``...`` 的賦值會引發 :exc:"
127+
"`SyntaxError`。``Ellipsis`` 是 :class:`types.EllipsisType` 型別的唯一實例。"
100128

101129
#: ../../builtins/constants.rst:76
102130
msgid ""
103131
"This constant is true if Python was not started with an :option:`-O` option. "
104132
"See also the :keyword:`assert` statement."
105133
msgstr ""
134+
"如果 Python 沒有被以 :option:`-O` 選項啟動,則此常數為 true。請參見 :keyword:"
135+
"`assert` 陳述式。"
106136

107137
#: ../../builtins/constants.rst:82
108138
msgid ""
109139
"The names :data:`None`, :data:`False`, :data:`True` and :data:`__debug__` "
110140
"cannot be reassigned (assignments to them, even as an attribute name, raise :"
111141
"exc:`SyntaxError`), so they can be considered \"true\" constants."
112142
msgstr ""
143+
":data:`None`,:data:`False`,:data:`True`,以及 :data:`__debug__` 都是不能被"
144+
"重新賦值的(任何對它們的賦值,即使是屬性的名稱,也會拋出 :exc:"
145+
"`SyntaxError`)。因此,它們可以被視為”真正的”常數。"
113146

114147
#: ../../builtins/constants.rst:90
115148
msgid "Constants added by the :mod:`site` module"
116-
msgstr ""
149+
msgstr "由 :mod:`site` module(模組)所添增的常數"
117150

118151
#: ../../builtins/constants.rst:92
119152
msgid ""
@@ -122,13 +155,19 @@ msgid ""
122155
"constants to the built-in namespace. They are useful for the interactive "
123156
"interpreter shell and should not be used in programs."
124157
msgstr ""
158+
":mod:`site` module(模組)(在啟動期間自動 import ,除非有給予 :option:`-S` "
159+
"指令行選項)會添增一些常數到內建命名空間 (built-in namespace) 中。它們在互動"
160+
"式直譯器中是很有幫助的,但不應該在程式 (programs) 中被使用。"
125161

126162
#: ../../builtins/constants.rst:100
127163
msgid ""
128164
"Objects that when printed, print a message like \"Use quit() or Ctrl-D (i.e. "
129165
"EOF) to exit\", and when accessed directly in the interactive interpreter or "
130166
"called as functions, raise :exc:`SystemExit` with the specified exit code."
131167
msgstr ""
168+
"當印出物件時,會印出一個訊息:\"Use quit() or Ctrl-D (i.e. EOF) to exit\"。當"
169+
"直接在互動式直譯器中存取或作為函式呼叫時,會引發 :exc:`SystemExit` 並帶有指定"
170+
"的返回碼(exit code)。"
132171

133172
#: ../../builtins/constants.rst:108
134173
msgid ""
@@ -137,24 +176,29 @@ msgid ""
137176
"in the interactive interpreter, invokes the built-in help system (see :func:"
138177
"`help`)."
139178
msgstr ""
179+
"當印出此物件時,會印出訊息 \"Type help() for interactive help, or "
180+
"help(object) for help about object.\",並在互動式直譯器中直接存取時,會叫用內"
181+
"建的幫助系統(參見 :func:`help`)。"
140182

141183
#: ../../builtins/constants.rst:116
142184
msgid ""
143185
"Objects that when printed or called, print the text of copyright or credits, "
144186
"respectively."
145-
msgstr ""
187+
msgstr "當印出或是呼叫此物件時,分別會印出版權與致謝的文字。"
146188

147189
#: ../../builtins/constants.rst:121
148190
msgid ""
149191
"Object that when printed, prints the message \"Type license() to see the "
150192
"full license text\", and when called, displays the full license text in a "
151193
"pager-like fashion (one screen at a time)."
152194
msgstr ""
195+
"當印出此物件時,會印出訊息 \"Type license() to see the full license text\","
196+
"並在呼叫時以分頁形式印出完整的許可證文字(一次一整個畫面)。"
153197

154198
#: ../../builtins/constants.rst:65
155199
msgid "..."
156-
msgstr ""
200+
msgstr "..."
157201

158202
#: ../../builtins/constants.rst:65
159203
msgid "ellipsis literal"
160-
msgstr ""
204+
msgstr "ellipsis literal(刪節號字面值)"

0 commit comments

Comments
 (0)