1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2024 , Python Software Foundation
2
+ # Copyright (C) 2001-2025 , Python Software Foundation
3
3
# This file is distributed under the same license as the Python package.
4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # Trim21 <[email protected] >, 2024
8
- # Shengjing Zhu <[email protected] >, 2024
9
- # Rafael Fontenelle <[email protected] >, 2024
10
- # Freesand Leo <[email protected] >, 2024
7
+ # Rafael Fontenelle <[email protected] >, 2025
8
+ # Freesand Leo <[email protected] >, 2025
11
9
#
12
10
#, fuzzy
13
11
msgid ""
14
12
msgstr ""
15
13
"Project-Id-Version : Python 3.13\n "
16
14
"Report-Msgid-Bugs-To : \n "
17
- "POT-Creation-Date : 2024-10-11 14:17 +0000\n "
18
- "PO-Revision-Date : 2021-06-28 00:47 +0000\n "
19
- "
Last-Translator :
Freesand Leo <[email protected] >, 2024 \n "
15
+ "POT-Creation-Date : 2025-07-04 15:01 +0000\n "
16
+ "PO-Revision-Date : 2025-05-08 05:08 +0000\n "
17
+ "
Last-Translator :
Freesand Leo <[email protected] >, 2025 \n "
20
18
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
21
19
"MIME-Version : 1.0\n "
22
20
"Content-Type : text/plain; charset=UTF-8\n "
@@ -173,15 +171,29 @@ msgstr ""
173
171
174
172
#: ../../c-api/capsule.rst:108
175
173
msgid ""
174
+ "This function splits *name* on the ``.`` character, and imports the first "
175
+ "element. It then processes further elements using attribute lookups."
176
+ msgstr "此函数会按 ``.`` 字符拆分 *name*,并导入第一个元素。 随后它会使用属性查找来进行其他元素。"
177
+
178
+ #: ../../c-api/capsule.rst:111
179
+ msgid ""
176
180
"Return the capsule's internal *pointer* on success. On failure, set an "
177
181
"exception and return ``NULL``."
178
182
msgstr "成功时返回 capsule 的内部 *指针*。 在失败时设置一个异常并返回 ``NULL``。"
179
183
180
- #: ../../c-api/capsule.rst:111
184
+ #: ../../c-api/capsule.rst:116
185
+ msgid ""
186
+ "If *name* points to an attribute of some submodule or subpackage, this "
187
+ "submodule or subpackage must be previously imported using other means (for "
188
+ "example, by using :c:func:`PyImport_ImportModule`) for the attribute lookups"
189
+ " to succeed."
190
+ msgstr ""
191
+
192
+ #: ../../c-api/capsule.rst:121
181
193
msgid "*no_block* has no effect anymore."
182
194
msgstr "*no_block* 不再有任何影响。"
183
195
184
- #: ../../c-api/capsule.rst:117
196
+ #: ../../c-api/capsule.rst:127
185
197
msgid ""
186
198
"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
187
199
"non-``NULL``, passes :c:func:`PyCapsule_CheckExact`, has a non-``NULL`` "
@@ -193,7 +205,7 @@ msgstr ""
193
205
":c:func:`PyCapsule_CheckExact`,在其中存储一个不为 ``NULL`` 的指针,并且其内部名称与 *name* 形参相匹配。"
194
206
" (请参阅 :c:func:`PyCapsule_GetPointer` 了解如何对 capsule 名称进行比较的有关信息。)"
195
207
196
- #: ../../c-api/capsule.rst:123
208
+ #: ../../c-api/capsule.rst:133
197
209
msgid ""
198
210
"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
199
211
"to any of the accessors (any function starting with ``PyCapsule_Get``) are "
@@ -202,27 +214,27 @@ msgstr ""
202
214
"换句话说,如果 :c:func:`PyCapsule_IsValid` 返回真值,则对任何访问器(以 ``PyCapsule_Get`` "
203
215
"开头的任何函数)的调用都保证会成功。"
204
216
205
- #: ../../c-api/capsule.rst:127
217
+ #: ../../c-api/capsule.rst:137
206
218
msgid ""
207
219
"Return a nonzero value if the object is valid and matches the name passed "
208
220
"in. Return ``0`` otherwise. This function will not fail."
209
221
msgstr "如果对象有效并且匹配传入的名称则返回非零值。 否则返回 ``0``。 此函数一定不会失败。"
210
222
211
- #: ../../c-api/capsule.rst:133
223
+ #: ../../c-api/capsule.rst:143
212
224
msgid "Set the context pointer inside *capsule* to *context*."
213
225
msgstr "将 *capsule* 内部的上下文指针设为 *context*。"
214
226
215
- #: ../../c-api/capsule.rst:135 ../../c-api/capsule.rst:142
216
- #: ../../c-api/capsule.rst:151 ../../c-api/capsule.rst:159
227
+ #: ../../c-api/capsule.rst:145 ../../c-api/capsule.rst:152
228
+ #: ../../c-api/capsule.rst:161 ../../c-api/capsule.rst:169
217
229
msgid ""
218
230
"Return ``0`` on success. Return nonzero and set an exception on failure."
219
231
msgstr "成功时返回 ``0``。 失败时返回非零值并设置一个异常。"
220
232
221
- #: ../../c-api/capsule.rst:140
233
+ #: ../../c-api/capsule.rst:150
222
234
msgid "Set the destructor inside *capsule* to *destructor*."
223
235
msgstr "将 *capsule* 内部的析构器设为 *destructor*。"
224
236
225
- #: ../../c-api/capsule.rst:147
237
+ #: ../../c-api/capsule.rst:157
226
238
msgid ""
227
239
"Set the name inside *capsule* to *name*. If non-``NULL``, the name must "
228
240
"outlive the capsule. If the previous *name* stored in the capsule was not "
@@ -231,7 +243,7 @@ msgstr ""
231
243
"将 *capsule* 内部的名称设为 *name*。 如果不为 ``NULL``,则名称的存在期必须比 capsule 更长。 如果之前保存在 "
232
244
"capsule 中的 *name* 不为 ``NULL``,则不会尝试释放它。"
233
245
234
- #: ../../c-api/capsule.rst:156
246
+ #: ../../c-api/capsule.rst:166
235
247
msgid ""
236
248
"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
237
249
"``NULL``."
0 commit comments