Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33a79fc

Browse files
[po] auto sync
1 parent 2355167 commit 33a79fc

3 files changed

Lines changed: 32 additions & 17 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.84%", "updated_at": "2023-08-15T06:58:02Z"}
1+
{"translation": "89.88%", "updated_at": "2023-08-15T07:56:54Z"}

c-api/structures.po

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.12\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2023-07-29 02:08+0000\n"
16+
"POT-Creation-Date: 2023-08-11 14:13+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
1818
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -270,13 +270,17 @@ msgid ""
270270
"first parameter as :c:expr:`PyObject*`, it is common that the method "
271271
"implementation uses the specific C type of the *self* object."
272272
msgstr ""
273+
":c:member:`~PyMethodDef.ml_meth` 是一个 C 函数指针。 该函数可以为不同类型,但它们将总是返回 "
274+
":c:expr:`PyObject*`。 如果该函数不属于 :c:type:`PyCFunction`,则编译器将要求在方法表中进行转换。 尽管 "
275+
":c:type:`PyCFunction` 将第一个参数定义为 :c:expr:`PyObject*`,但该方法的实现使用 *self* 对象的特定 C"
276+
" 类型也很常见。"
273277

274278
#: ../../c-api/structures.rst:255
275279
msgid ""
276280
"The :c:member:`~PyMethodDef.ml_flags` field is a bitfield which can include "
277281
"the following flags. The individual flags indicate either a calling "
278282
"convention or a binding convention."
279-
msgstr ""
283+
msgstr ":c:member:`~PyMethodDef.ml_flags` 字段是可以包含以下旗标的位字段。 每个旗标表示一个调用惯例或绑定惯例。"
280284

281285
#: ../../c-api/structures.rst:260
282286
msgid "There are these calling conventions:"
@@ -303,10 +307,14 @@ msgid ""
303307
":ref:`METH_METHOD | METH_FASTCALL | METH_KEYWORDS <METH_METHOD-"
304308
"METH_FASTCALL-METH_KEYWORDS>`."
305309
msgstr ""
310+
"只能用于同其他旗标形成特定的组合: :ref:`METH_VARARGS | METH_KEYWORDS <METH_VARARGS-"
311+
"METH_KEYWORDS>`, :ref:`METH_FASTCALL | METH_KEYWORDS <METH_FASTCALL-"
312+
"METH_KEYWORDS>` 和 :ref:`METH_METHOD | METH_FASTCALL | METH_KEYWORDS "
313+
"<METH_METHOD-METH_FASTCALL-METH_KEYWORDS>`。"
306314

307315
#: ../../c-api/structures.rst:288
308316
msgid ":c:expr:`METH_VARARGS | METH_KEYWORDS`"
309-
msgstr ""
317+
msgstr ":c:expr:`METH_VARARGS | METH_KEYWORDS`"
310318

311319
#: ../../c-api/structures.rst:283
312320
msgid ""
@@ -333,7 +341,7 @@ msgstr ""
333341

334342
#: ../../c-api/structures.rst:302
335343
msgid "``METH_FASTCALL`` is now part of the :ref:`stable ABI <stable-abi>`."
336-
msgstr ""
344+
msgstr "``METH_FASTCALL`` 现在是 :ref:`稳定 ABI <stable-abi>` 的一部分。"
337345

338346
#: ../../c-api/structures.rst:319
339347
msgid ":c:expr:`METH_FASTCALL | METH_KEYWORDS`"
@@ -461,27 +469,27 @@ msgstr "描述与 C 结构成员相对应的类型属性的结构体。 其字
461469
#: ../../c-api/structures.rst:413
462470
msgid ""
463471
"Name of the member. A NULL value marks the end of a ``PyMemberDef[]`` array."
464-
msgstr ""
472+
msgstr "成员名称。 NULL 值表示 ``PyMemberDef[]`` 数组的结束。"
465473

466474
#: ../../c-api/structures.rst:416
467475
msgid "The string should be static, no copy is made of it."
468-
msgstr ""
476+
msgstr "字符串应当是静态的,它不会被复制。"
469477

470478
#: ../../c-api/structures.rst:420
471479
msgid ""
472480
"The offset in bytes that the member is located on the type’s object struct."
473-
msgstr ""
481+
msgstr "成员在类型的对象结构体中所在位置的以字节为单位的偏移量。"
474482

475483
#: ../../c-api/structures.rst:424
476484
msgid ""
477485
"The type of the member in the C struct. See :ref:`PyMemberDef-types` for the"
478486
" possible values."
479-
msgstr ""
487+
msgstr "C 结构体中成员的类型。 请参阅 :ref:`PyMemberDef-types` 了解可能的取值。"
480488

481489
#: ../../c-api/structures.rst:429
482490
msgid ""
483491
"Zero or more of the :ref:`PyMemberDef-flags`, combined using bitwise OR."
484-
msgstr ""
492+
msgstr "零个或多个 :ref:`PyMemberDef-flags`,使用按位或运算进行组合。"
485493

486494
#: ../../c-api/structures.rst:433
487495
msgid ""
@@ -736,26 +744,28 @@ msgstr ":c:expr:`char` (0-127)"
736744

737745
#: ../../c-api/structures.rst:585
738746
msgid ":py:class:`str` (**)"
739-
msgstr ""
747+
msgstr ":py:class:`str` (**)"
740748

741749
#: ../../c-api/structures.rst:586
742750
msgid ":c:expr:`PyObject *`"
743-
msgstr ""
751+
msgstr ":c:expr:`PyObject *`"
744752

745753
#: ../../c-api/structures.rst:586
746754
msgid ":py:class:`object` (D)"
747-
msgstr ""
755+
msgstr ":py:class:`object` (D)"
748756

749757
#: ../../c-api/structures.rst:589
750758
msgid ""
751759
"(*): Zero-terminated, UTF8-encoded C string. With :c:macro:`!Py_T_STRING` "
752760
"the C representation is a pointer; with :c:macro:`!Py_T_STRING_INLINE` the "
753761
"string is stored directly in the structure."
754762
msgstr ""
763+
"(*): 以零结束的 UTF8 编码的 C 字符串。 使用:c:macro:`!Py_T_STRING` 时的 C 表示形式是指针;使用 "
764+
":c:macro:`!Py_T_STRING_INLINE` 时字符串将直接存储在结构体中。"
755765

756766
#: ../../c-api/structures.rst:594
757767
msgid "(**): String of length 1. Only ASCII is accepted."
758-
msgstr ""
768+
msgstr "(**): 长度为 1 的字符串。 只接受 ASCII 字符。"
759769

760770
#: ../../c-api/structures.rst:596
761771
msgid "(RO): Implies :c:macro:`Py_READONLY`."

c-api/type.po

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,23 +535,26 @@ msgid ""
535535
"used by a subclass. To help prevent mistakes, inheriting ``itemsize`` is "
536536
"only possible in the following situations:"
537537
msgstr ""
538+
"如果为零,则会继承 :c:member:`~PyTypeObject.tp_itemsize`。 "
539+
"扩展任意可变大小的类是很危险的,因为某些类型使用固定偏移量来标识可变大小的内存,这样就会与子类使用的固定大小的内存相重叠。 "
540+
"为了防止出错,只有在以下情况下才可以继承 ``itemsize``:"
538541

539542
#: ../../c-api/type.rst:416
540543
msgid ""
541544
"The base is not variable-sized (its :c:member:`~PyTypeObject.tp_itemsize`)."
542-
msgstr ""
545+
msgstr "基类不是可变大小的 (即其 :c:member:`~PyTypeObject.tp_itemsize`)。"
543546

544547
#: ../../c-api/type.rst:418
545548
msgid ""
546549
"The requested :c:member:`PyType_Spec.basicsize` is positive, suggesting that"
547550
" the memory layout of the base class is known."
548-
msgstr ""
551+
msgstr "所请求的 :c:member:`PyType_Spec.basicsize` 为正值,表明基类的内存布局是已知的。"
549552

550553
#: ../../c-api/type.rst:420
551554
msgid ""
552555
"The requested :c:member:`PyType_Spec.basicsize` is zero, suggesting that the"
553556
" subclass does not access the instance's memory directly."
554-
msgstr ""
557+
msgstr "所请求的 :c:member:`PyType_Spec.basicsize` 为零,表明子类不会直接访问实例的内存。"
555558

556559
#: ../../c-api/type.rst:423
557560
msgid "With the :c:macro:`Py_TPFLAGS_ITEMS_AT_END` flag."
@@ -672,6 +675,8 @@ msgid ""
672675
"some platforms. To avoid issues, use the *bases* argument of "
673676
":c:func:`PyType_FromSpecWithBases` instead."
674677
msgstr ""
678+
"在某些平台上设置 :c:data:`Py_tp_bases` 或 :c:data:`Py_tp_base` 可能会有问题。 为了避免问题,请改用 "
679+
":c:func:`PyType_FromSpecWithBases` 的 *bases* 参数。"
675680

676681
#: ../../c-api/type.rst:487
677682
msgid "Slots in :c:type:`PyBufferProcs` may be set in the unlimited API."

0 commit comments

Comments
 (0)