Skip to content

Commit 06ab337

Browse files
[po] auto sync
1 parent a5e591e commit 06ab337

File tree

209 files changed

+37198
-28626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+37198
-28626
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "78.06%", "updated_at": "2025-05-23T16:13:16Z"}
1+
{"translation": "81.12%", "updated_at": "2025-07-10T07:38:00Z"}

bugs.po

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
# 高乐喆 <gaolezhe@outlook.com>, 2023
1313
# Freesand Leo <yuqinju@163.com>, 2024
1414
# 汇民 王 <whuim@qq.com>, 2025
15+
# Nyuan Zhang, 2025
1516
#
1617
#, fuzzy
1718
msgid ""
1819
msgstr ""
1920
"Project-Id-Version: Python 3.14\n"
2021
"Report-Msgid-Bugs-To: \n"
21-
"POT-Creation-Date: 2025-05-08 02:53-0300\n"
22+
"POT-Creation-Date: 2025-07-04 14:20+0000\n"
2223
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
23-
"Last-Translator: 汇民 王 <whuim@qq.com>, 2025\n"
24+
"Last-Translator: Nyuan Zhang, 2025\n"
2425
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2526
"MIME-Version: 1.0\n"
2627
"Content-Type: text/plain; charset=UTF-8\n"
@@ -76,8 +77,8 @@ msgid ""
7677
"documentation, please submit a bug report on the `python-doc-theme issue "
7778
"tracker <https://github.com/python/python-docs-theme>`_."
7879
msgstr ""
79-
"如果你在文档的主题(HTML / CSS / JavaScript)中发现bug,请在“Python-doc-"
80-
"theme问题追踪<https://github.com/python/python-docs-theme>`_上提交bug报告。"
80+
"如果你在文档的主题(HTML / CSS / JavaScript)中发现bug,请在 `python-doc-theme 问题追踪器 "
81+
"<https://github.com/python/python-docs-theme>`_ 上提交bug报告。"
8182

8283
#: ../../bugs.rst:31
8384
msgid "`Documentation bugs`_"

c-api/allocation.po

Lines changed: 43 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
# 强 陈 <lxchenqiang@163.com>, 2021
88
# Sonny <758896823@qq.com>, 2021
99
# Naisen Xu <723648649@qq.com>, 2021
10-
# Freesand Leo <yuqinju@163.com>, 2025
1110
# ppcfish <ppcfish@gmail.com>, 2025
11+
# Freesand Leo <yuqinju@163.com>, 2025
1212
#
1313
#, fuzzy
1414
msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.14\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2025-05-23 14:20+0000\n"
18+
"POT-Creation-Date: 2025-06-20 14:21+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
20-
"Last-Translator: ppcfish <ppcfish@gmail.com>, 2025\n"
20+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version: 1.0\n"
2323
"Content-Type: text/plain; charset=UTF-8\n"
@@ -38,6 +38,9 @@ msgid ""
3838
"slot). Specifically, this function does **not** call the object's "
3939
":meth:`!__init__` method."
4040
msgstr ""
41+
"为新分配的对象 *op* 初始化它的类型和初始引用。 返回初始化后的对象。 对象的其他字段不会被初始化。 虽然被如此命名,但该函数与对象的 "
42+
":meth:`~object.__init__` 方法 (:c:member:`~PyTypeObject.tp_init` 槽位) 无关。 "
43+
"具体而言,该函数 **不会** 调用对象的 :meth:`!__init__` 方法。"
4144

4245
#: ../../c-api/allocation.rst:24
4346
msgid ""
@@ -46,12 +49,15 @@ msgid ""
4649
":c:member:`!tp_alloc` for your type, prefer :c:func:`PyType_GenericAlloc` or"
4750
" :c:func:`PyObject_New`."
4851
msgstr ""
52+
"总而言之,可将该函数视为一个低层级的例程。 如有可能请使用 :c:member:`~PyTypeObject.tp_alloc`。 要为你的类型实现 "
53+
":c:member:`!tp_alloc`,推荐使用 :c:func:`PyType_GenericAlloc` 或 "
54+
":c:func:`PyObject_New`。"
4955

5056
#: ../../c-api/allocation.rst:31
5157
msgid ""
5258
"This function only initializes the object's memory corresponding to the "
5359
"initial :c:type:`PyObject` structure. It does not zero the rest."
54-
msgstr ""
60+
msgstr "该函数只初始化与初始 :c:type:`PyObject` 结构体相对应的对象内存。 它不会为其余内存写入零值。"
5561

5662
#: ../../c-api/allocation.rst:37
5763
msgid ""
@@ -63,7 +69,7 @@ msgstr "它的功能和 :c:func:`PyObject_Init` 一样,并且会初始化变
6369
msgid ""
6470
"This function only initializes some of the object's memory. It does not "
6571
"zero the rest."
66-
msgstr ""
72+
msgstr "该函数只初始化对象的部分内存。 它不会为其余内存写入零值。"
6773

6874
#: ../../c-api/allocation.rst:48
6975
msgid ""
@@ -73,44 +79,56 @@ msgid ""
7379
":c:func:`PyObject_Init`. The caller will own the only reference to the "
7480
"object (i.e. its reference count will be one)."
7581
msgstr ""
82+
"通过调用 :c:func:`PyObject_Malloc` 分配内存并如 :c:func:`PyObject_Init` 那样将其初始化分配一个使用 "
83+
"C 结构类型 *TYPE* 和 Python 类型对象 *typeobj* (``PyTypeObject*``) 的新 Python 对象。 "
84+
"调用方将拥有对该对象的唯一引用(即其引用计数将为一)。"
7685

7786
#: ../../c-api/allocation.rst:54 ../../c-api/allocation.rst:107
7887
msgid ""
7988
"Avoid calling this directly to allocate memory for an object; call the "
8089
"type's :c:member:`~PyTypeObject.tp_alloc` slot instead."
81-
msgstr ""
90+
msgstr "请避免直接调用此函数为对象分配内存;而应调用类型的 :c:member:`~PyTypeObject.tp_alloc` 槽位。"
8291

8392
#: ../../c-api/allocation.rst:57 ../../c-api/allocation.rst:110
8493
msgid ""
8594
"When populating a type's :c:member:`~PyTypeObject.tp_alloc` slot, "
8695
":c:func:`PyType_GenericAlloc` is preferred over a custom function that "
8796
"simply calls this macro."
8897
msgstr ""
98+
"在填充类型的 :c:member:`~PyTypeObject.tp_alloc` 槽位时,推荐使用 "
99+
":c:func:`PyType_GenericAlloc` 而不是使用简单调用此宏的自定义函数。"
89100

90101
#: ../../c-api/allocation.rst:61
91102
msgid ""
92103
"This macro does not call :c:member:`~PyTypeObject.tp_alloc`, "
93104
":c:member:`~PyTypeObject.tp_new` (:meth:`~object.__new__`), or "
94105
":c:member:`~PyTypeObject.tp_init` (:meth:`~object.__init__`)."
95106
msgstr ""
107+
"这个宏不会调用 :c:member:`~PyTypeObject.tp_alloc`, :c:member:`~PyTypeObject.tp_new`"
108+
" (:meth:`~object.__new__`) 或 :c:member:`~PyTypeObject.tp_init` "
109+
"(:meth:`~object.__init__`)。"
96110

97111
#: ../../c-api/allocation.rst:65
98112
msgid ""
99113
"This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in "
100114
":c:member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_New` instead."
101115
msgstr ""
116+
"这不能被用于在 :c:member:`~PyTypeObject.tp_flags` 中设置了 "
117+
":c:macro:`Py_TPFLAGS_HAVE_GC` 的对象;请改用 :c:macro:`PyObject_GC_New`。"
102118

103119
#: ../../c-api/allocation.rst:68
104120
msgid ""
105121
"Memory allocated by this macro must be freed with :c:func:`PyObject_Free` "
106122
"(usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)."
107123
msgstr ""
124+
"由此宏分配的内存必须用 :c:func:`PyObject_Free` 来释放(一般是通过对象的 "
125+
":c:member:`~PyTypeObject.tp_free` 槽位进行调用)。"
108126

109127
#: ../../c-api/allocation.rst:73 ../../c-api/allocation.rst:123
110128
msgid ""
111129
"The returned memory is not guaranteed to have been completely zeroed before "
112130
"it was initialized."
113-
msgstr ""
131+
msgstr "返回的内存并不保证在其初始化之前被完全置为零值。"
114132

115133
#: ../../c-api/allocation.rst:78 ../../c-api/allocation.rst:128
116134
msgid ""
@@ -119,71 +137,80 @@ msgid ""
119137
":c:member:`~PyTypeObject.tp_init`. To construct a fully initialized object,"
120138
" call *typeobj* instead. For example::"
121139
msgstr ""
140+
"此宏并不会构造给定类型的完全初始化的对象;它只是分配内存并准备好由 :c:member:`~PyTypeObject.tp_init` 来进一步初始化。"
141+
" 要构造完全初始化的对象,应改为调用 *typeobj*。 例如::"
122142

123143
#: ../../c-api/allocation.rst:83
124144
msgid "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);"
125-
msgstr ""
145+
msgstr "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);"
126146

127147
#: ../../c-api/allocation.rst:87 ../../c-api/allocation.rst:137
128148
msgid ":c:func:`PyObject_Free`"
129149
msgstr ":c:func:`PyObject_Free`"
130150

131151
#: ../../c-api/allocation.rst:88
132152
msgid ":c:macro:`PyObject_GC_New`"
133-
msgstr ""
153+
msgstr ":c:macro:`PyObject_GC_New`"
134154

135155
#: ../../c-api/allocation.rst:89 ../../c-api/allocation.rst:139
136156
msgid ":c:func:`PyType_GenericAlloc`"
137-
msgstr ""
157+
msgstr ":c:func:`PyType_GenericAlloc`"
138158

139159
#: ../../c-api/allocation.rst:90 ../../c-api/allocation.rst:140
140160
msgid ":c:member:`~PyTypeObject.tp_alloc`"
141161
msgstr ":c:member:`~PyTypeObject.tp_alloc`"
142162

143163
#: ../../c-api/allocation.rst:95
144164
msgid "Like :c:macro:`PyObject_New` except:"
145-
msgstr ""
165+
msgstr "如 :c:macro:`PyObject_New` 异常:"
146166

147167
#: ../../c-api/allocation.rst:97
148168
msgid ""
149169
"It allocates enough memory for the *TYPE* structure plus *size* "
150170
"(``Py_ssize_t``) fields of the size given by the "
151171
":c:member:`~PyTypeObject.tp_itemsize` field of *typeobj*."
152172
msgstr ""
173+
"它将分配足够容纳 *TYPE* 结构加上由 *typeobj* 的 :c:member:`~PyTypeObject.tp_itemsize` "
174+
"字段所给出的大小的 *size* (``Py_ssize_t``) 个字段的内存。"
153175

154176
#: ../../c-api/allocation.rst:100
155177
msgid "The memory is initialized like :c:func:`PyObject_InitVar`."
156-
msgstr ""
178+
msgstr "该内存将像 :c:func:`PyObject_InitVar` 一样被初始化。"
157179

158180
#: ../../c-api/allocation.rst:102
159181
msgid ""
160182
"This is useful for implementing objects like tuples, which are able to "
161183
"determine their size at construction time. Embedding the array of fields "
162184
"into the same allocation decreases the number of allocations, improving the "
163185
"memory management efficiency."
164-
msgstr ""
186+
msgstr "这适用于实现像元组那样的对象,它能够在构造时确定其大小。 通过将字段数组嵌入到同样的分配块减去分配块数量,提高了内存管理效率。"
165187

166188
#: ../../c-api/allocation.rst:114
167189
msgid ""
168190
"This cannot be used for objects with :c:macro:`Py_TPFLAGS_HAVE_GC` set in "
169191
":c:member:`~PyTypeObject.tp_flags`; use :c:macro:`PyObject_GC_NewVar` "
170192
"instead."
171193
msgstr ""
194+
"这不能被用于在 :c:member:`~PyTypeObject.tp_flags` 中设置了 "
195+
":c:macro:`Py_TPFLAGS_HAVE_GC` 的对象;请改用 :c:macro:`PyObject_GC_NewVar`。"
172196

173197
#: ../../c-api/allocation.rst:118
174198
msgid ""
175199
"Memory allocated by this function must be freed with :c:func:`PyObject_Free`"
176200
" (usually called via the object's :c:member:`~PyTypeObject.tp_free` slot)."
177201
msgstr ""
202+
"由此函数分配的内存必须用 :c:func:`PyObject_Free` 来释放(一般是通过对象的 "
203+
":c:member:`~PyTypeObject.tp_free` 槽位进行调用)。"
178204

179205
#: ../../c-api/allocation.rst:133
180206
msgid ""
181207
"PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);"
182208
msgstr ""
209+
"PyObject *list_instance = PyObject_CallNoArgs((PyObject *)&PyList_Type);"
183210

184211
#: ../../c-api/allocation.rst:138
185212
msgid ":c:macro:`PyObject_GC_NewVar`"
186-
msgstr ""
213+
msgstr ":c:macro:`PyObject_GC_NewVar`"
187214

188215
#: ../../c-api/allocation.rst:145
189216
msgid "Same as :c:func:`PyObject_Free`."
@@ -198,8 +225,8 @@ msgstr ""
198225
"这个对象是像 ``None`` 一样的 Python 对象。它可以使用 :c:macro:`Py_None` 宏访问,该宏的拿到指向该对象的指针。"
199226

200227
#: ../../c-api/allocation.rst:156
201-
msgid ":c:func:`PyModule_Create`"
202-
msgstr ":c:func:`PyModule_Create`"
228+
msgid ":ref:`moduleobjects`"
229+
msgstr ":ref:`moduleobjects`"
203230

204231
#: ../../c-api/allocation.rst:157
205232
msgid "To allocate and create extension modules."

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy