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

Skip to content

Commit 43056af

Browse files
[po] auto sync
1 parent befcc76 commit 43056af

61 files changed

Lines changed: 4210 additions & 3575 deletions

Some content is hidden

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

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.92%", "updated_at": "2023-10-13T15:42:17Z"}
1+
{"translation": "90.04%", "updated_at": "2023-10-30T23:42:05Z"}

c-api/memory.po

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-08-04 14:46+0000\n"
14+
"POT-Creation-Date: 2023-10-27 15:22+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:09+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -634,19 +634,19 @@ msgid ""
634634
"following fields:"
635635
msgstr "用于描述内存块分配器的结构体。 该结构体下列字段:"
636636

637-
#: ../../c-api/memory.rst:411 ../../c-api/memory.rst:651
637+
#: ../../c-api/memory.rst:411 ../../c-api/memory.rst:652
638638
msgid "Field"
639639
msgstr "域"
640640

641-
#: ../../c-api/memory.rst:411 ../../c-api/memory.rst:651
641+
#: ../../c-api/memory.rst:411 ../../c-api/memory.rst:652
642642
msgid "Meaning"
643643
msgstr "含意"
644644

645-
#: ../../c-api/memory.rst:413 ../../c-api/memory.rst:653
645+
#: ../../c-api/memory.rst:413 ../../c-api/memory.rst:654
646646
msgid "``void *ctx``"
647647
msgstr "``void *ctx``"
648648

649-
#: ../../c-api/memory.rst:413 ../../c-api/memory.rst:653
649+
#: ../../c-api/memory.rst:413 ../../c-api/memory.rst:654
650650
msgid "user context passed as first argument"
651651
msgstr "作为第一个参数传入的用户上下文"
652652

@@ -1054,15 +1054,15 @@ msgstr "pymalloc 分配器"
10541054
msgid ""
10551055
"Python has a *pymalloc* allocator optimized for small objects (smaller or "
10561056
"equal to 512 bytes) with a short lifetime. It uses memory mappings called "
1057-
"\"arenas\" with a fixed size of 256 KiB. It falls back to "
1058-
":c:func:`PyMem_RawMalloc` and :c:func:`PyMem_RawRealloc` for allocations "
1059-
"larger than 512 bytes."
1057+
"\"arenas\" with a fixed size of either 256 KiB on 32-bit platforms or 1 MiB "
1058+
"on 64-bit platforms. It falls back to :c:func:`PyMem_RawMalloc` and "
1059+
":c:func:`PyMem_RawRealloc` for allocations larger than 512 bytes."
10601060
msgstr ""
1061-
"Python 有为具有短生命周期的小对象(小于或等于 512 字节)优化的 *pymalloc* 分配器。它使用固定大小为 256 KiB 的称为 "
1062-
"\"arenas\" 的内存映射。对于大于512字节的分配,它回到使用 :c:func:`PyMem_RawMalloc` 和 "
1063-
":c:func:`PyMem_RawRealloc` 。"
1061+
"Python 有一个针对短生命周期的小对象(小于或等于 512 字节)进行了优化的 *pymalloc* 分配器。 "
1062+
"它使用名为“arena”的内存映射,在 32 位平台上的固定大小为 256 KiB,在 64 位平台上的固定大小为 1 MiB。 对于大于 512 "
1063+
"字节的分配,它会回退为 :c:func:`PyMem_RawMalloc` 和 :c:func:`PyMem_RawRealloc`。"
10641064

1065-
#: ../../c-api/memory.rst:626
1065+
#: ../../c-api/memory.rst:627
10661066
msgid ""
10671067
"*pymalloc* is the :ref:`default allocator <default-memory-allocators>` of "
10681068
"the :c:macro:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) and "
@@ -1072,23 +1072,23 @@ msgstr ""
10721072
":c:macro:`PYMEM_DOMAIN_OBJ` (例如: :c:func:`PyObject_Malloc`) 域的 :ref:`默认分配器 "
10731073
"<default-memory-allocators>`。"
10741074

1075-
#: ../../c-api/memory.rst:630
1075+
#: ../../c-api/memory.rst:631
10761076
msgid "The arena allocator uses the following functions:"
10771077
msgstr "arena 分配器使用以下函数:"
10781078

1079-
#: ../../c-api/memory.rst:632
1079+
#: ../../c-api/memory.rst:633
10801080
msgid ":c:func:`!VirtualAlloc` and :c:func:`!VirtualFree` on Windows,"
10811081
msgstr "Windows 上的 :c:func:`!VirtualAlloc` 和 :c:func:`!VirtualFree`,"
10821082

1083-
#: ../../c-api/memory.rst:633
1083+
#: ../../c-api/memory.rst:634
10841084
msgid ":c:func:`!mmap` and :c:func:`!munmap` if available,"
10851085
msgstr ":c:func:`!mmap` 和 :c:func:`!munmap`,如果可用的话,"
10861086

1087-
#: ../../c-api/memory.rst:634
1087+
#: ../../c-api/memory.rst:635
10881088
msgid ":c:func:`malloc` and :c:func:`free` otherwise."
10891089
msgstr "否则, :c:func:`malloc` 和 :c:func:`free` 。"
10901090

1091-
#: ../../c-api/memory.rst:636
1091+
#: ../../c-api/memory.rst:637
10921092
msgid ""
10931093
"This allocator is disabled if Python is configured with the "
10941094
":option:`--without-pymalloc` option. It can also be disabled at runtime "
@@ -1098,86 +1098,86 @@ msgstr ""
10981098
"如果 Python 配置了 :option:`--without-pymalloc` 选项,那么此分配器将被禁用。也可以在运行时使用 "
10991099
":envvar:`PYTHONMALLOC`(例如:``PYTHONMALLOC=malloc``)环境变量来禁用它。"
11001100

1101-
#: ../../c-api/memory.rst:641
1101+
#: ../../c-api/memory.rst:642
11021102
msgid "Customize pymalloc Arena Allocator"
11031103
msgstr "自定义 pymalloc Arena 分配器"
11041104

1105-
#: ../../c-api/memory.rst:647
1105+
#: ../../c-api/memory.rst:648
11061106
msgid ""
11071107
"Structure used to describe an arena allocator. The structure has three "
11081108
"fields:"
11091109
msgstr "用来描述一个 arena 分配器的结构体。这个结构体有三个字段:"
11101110

1111-
#: ../../c-api/memory.rst:655
1111+
#: ../../c-api/memory.rst:656
11121112
msgid "``void* alloc(void *ctx, size_t size)``"
11131113
msgstr "``void* alloc(void *ctx, size_t size)``"
11141114

1115-
#: ../../c-api/memory.rst:655
1115+
#: ../../c-api/memory.rst:656
11161116
msgid "allocate an arena of size bytes"
11171117
msgstr "分配一块 size 字节的区域"
11181118

1119-
#: ../../c-api/memory.rst:657
1119+
#: ../../c-api/memory.rst:658
11201120
msgid "``void free(void *ctx, void *ptr, size_t size)``"
11211121
msgstr "``void free(void *ctx, void *ptr, size_t size)``"
11221122

1123-
#: ../../c-api/memory.rst:657
1123+
#: ../../c-api/memory.rst:658
11241124
msgid "free an arena"
11251125
msgstr "释放一块区域"
11261126

1127-
#: ../../c-api/memory.rst:662
1127+
#: ../../c-api/memory.rst:663
11281128
msgid "Get the arena allocator."
11291129
msgstr "获取 arena 分配器"
11301130

1131-
#: ../../c-api/memory.rst:666
1131+
#: ../../c-api/memory.rst:667
11321132
msgid "Set the arena allocator."
11331133
msgstr "设置 arena 分配器"
11341134

1135-
#: ../../c-api/memory.rst:670
1135+
#: ../../c-api/memory.rst:671
11361136
msgid "tracemalloc C API"
11371137
msgstr "tracemalloc C API"
11381138

1139-
#: ../../c-api/memory.rst:676
1139+
#: ../../c-api/memory.rst:677
11401140
msgid "Track an allocated memory block in the :mod:`tracemalloc` module."
11411141
msgstr "在 :mod:`tracemalloc` 模块中跟踪一个已分配的内存块。"
11421142

1143-
#: ../../c-api/memory.rst:678
1143+
#: ../../c-api/memory.rst:679
11441144
msgid ""
11451145
"Return ``0`` on success, return ``-1`` on error (failed to allocate memory "
11461146
"to store the trace). Return ``-2`` if tracemalloc is disabled."
11471147
msgstr ""
11481148
"成功时返回 ``0``,出错时返回 ``-1`` (无法分配内存来保存跟踪信息)。 如果禁用了 tracemalloc 则返回 ``-2``。"
11491149

1150-
#: ../../c-api/memory.rst:681
1150+
#: ../../c-api/memory.rst:682
11511151
msgid "If memory block is already tracked, update the existing trace."
11521152
msgstr "如果内存块已被跟踪,则更新现有跟踪信息。"
11531153

1154-
#: ../../c-api/memory.rst:685
1154+
#: ../../c-api/memory.rst:686
11551155
msgid ""
11561156
"Untrack an allocated memory block in the :mod:`tracemalloc` module. Do "
11571157
"nothing if the block was not tracked."
11581158
msgstr "在 :mod:`tracemalloc` 模块中取消跟踪一个已分配的内存块。 如果内存块未被跟踪则不执行任何操作。"
11591159

1160-
#: ../../c-api/memory.rst:688
1160+
#: ../../c-api/memory.rst:689
11611161
msgid "Return ``-2`` if tracemalloc is disabled, otherwise return ``0``."
11621162
msgstr "如果 tracemalloc 被禁用则返回 ``-2``,否则返回 ``0``。"
11631163

1164-
#: ../../c-api/memory.rst:694
1164+
#: ../../c-api/memory.rst:695
11651165
msgid "Examples"
11661166
msgstr "例子"
11671167

1168-
#: ../../c-api/memory.rst:696
1168+
#: ../../c-api/memory.rst:697
11691169
msgid ""
11701170
"Here is the example from section :ref:`memoryoverview`, rewritten so that "
11711171
"the I/O buffer is allocated from the Python heap by using the first function"
11721172
" set::"
11731173
msgstr ""
11741174
"以下是来自 :ref:`memoryoverview` 小节的示例,经过重写以使 I/O 缓冲区是通过使用第一个函数集从 Python 堆中分配的::"
11751175

1176-
#: ../../c-api/memory.rst:709
1176+
#: ../../c-api/memory.rst:710
11771177
msgid "The same code using the type-oriented function set::"
11781178
msgstr "使用面向类型函数集的相同代码::"
11791179

1180-
#: ../../c-api/memory.rst:721
1180+
#: ../../c-api/memory.rst:722
11811181
msgid ""
11821182
"Note that in the two examples above, the buffer is always manipulated via "
11831183
"functions belonging to the same set. Indeed, it is required to use the same "
@@ -1190,7 +1190,7 @@ msgstr ""
11901190
"族,以便使得混合不同分配器的风险减至最低。 以下代码序列包含两处错误,其中一个被标记为 *fatal* 因为它混合了两种在不同堆上操作的不同分配器。 "
11911191
"::"
11921192

1193-
#: ../../c-api/memory.rst:736
1193+
#: ../../c-api/memory.rst:737
11941194
msgid ""
11951195
"In addition to the functions aimed at handling raw memory blocks from the "
11961196
"Python heap, objects in Python are allocated and released with "
@@ -1201,7 +1201,7 @@ msgstr ""
12011201
":c:macro:`PyObject_New`、:c:macro:`PyObject_NewVar` 和 :c:func:`PyObject_Del` "
12021202
"进行分配和释放。"
12031203

1204-
#: ../../c-api/memory.rst:740
1204+
#: ../../c-api/memory.rst:741
12051205
msgid ""
12061206
"These will be explained in the next chapter on defining and implementing new"
12071207
" object types in C."

c-api/set.po

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-08-04 14:46+0000\n"
14+
"POT-Creation-Date: 2023-10-27 15:22+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:09+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -222,8 +222,13 @@ msgstr ""
222222
":exc:`KeyError`。 如果 *set* 不是 :class:`set` 或其子类型的实例则会引发 :exc:`SystemError`。"
223223

224224
#: ../../c-api/set.rst:166
225-
msgid "Empty an existing set of all elements."
226-
msgstr "清空现有字典的所有键值对。"
225+
msgid ""
226+
"Empty an existing set of all elements. Return ``0`` on success. Return "
227+
"``-1`` and raise :exc:`SystemError` if *set* is not an instance of "
228+
":class:`set` or its subtype."
229+
msgstr ""
230+
"清空现有的所有元素的集合。 成功时返回 ``0``。 如果 *set* 不是 :class:`set` 或其子类型的实际则返回 ``-1`` 并引发 "
231+
":exc:`SystemError`。"
227232

228233
#: ../../c-api/set.rst:11 ../../c-api/set.rst:11
229234
msgid "object"

c-api/sys.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.11\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2023-10-06 14:42+0000\n"
15+
"POT-Creation-Date: 2023-10-27 15:22+0000\n"
1616
"PO-Revision-Date: 2023-05-24 02:09+0000\n"
1717
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"

glossary.po

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.11\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2023-08-18 14:42+0000\n"
15+
"POT-Creation-Date: 2023-10-27 15:22+0000\n"
1616
"PO-Revision-Date: 2023-05-24 02:11+0000\n"
1717
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -513,10 +513,11 @@ msgstr "context manager -- 上下文管理器"
513513
#: ../../glossary.rst:250
514514
msgid ""
515515
"An object which controls the environment seen in a :keyword:`with` statement"
516-
" by defining :meth:`__enter__` and :meth:`__exit__` methods. See :pep:`343`."
516+
" by defining :meth:`~object.__enter__` and :meth:`~object.__exit__` methods."
517+
" See :pep:`343`."
517518
msgstr ""
518-
"在 :keyword:`with` 语句中使用,通过定义 :meth:`__enter__` 和 :meth:`__exit__` "
519-
"方法来控制环境状态的对象。参见 :pep:`343`。"
519+
"在 :keyword:`with` 语句中通过定义 :meth:`~object.__enter__` 和 "
520+
":meth:`~object.__exit__` 方法来控制环境状态的对象。 参见 :pep:`343`。"
520521

521522
#: ../../glossary.rst:253
522523
msgid "context variable"
@@ -1293,12 +1294,12 @@ msgid ""
12931294
"iterables include all sequence types (such as :class:`list`, :class:`str`, "
12941295
"and :class:`tuple`) and some non-sequence types like :class:`dict`, "
12951296
":term:`file objects <file object>`, and objects of any classes you define "
1296-
"with an :meth:`__iter__` method or with a :meth:`__getitem__` method that "
1297-
"implements :term:`sequence` semantics."
1297+
"with an :meth:`__iter__` method or with a :meth:`~object.__getitem__` method"
1298+
" that implements :term:`sequence` semantics."
12981299
msgstr ""
1299-
"能够逐一返回其成员项的对象。 可迭代对象的例子包括所有序列类型 (如 :class:`list`, :class:`str` 和 "
1300+
"一种能够逐个返回其成员项的对象。 可迭代对象的例子包括所有序列类型 (如 :class:`list`, :class:`str` 和 "
13001301
":class:`tuple`) 以及某些非序列类型如 :class:`dict`, :term:`文件对象 <file object>` 以及任何定义了"
1301-
" :meth:`__iter__` 方法或实现了 :term:`sequence` 语义的 :meth:`__getitem__` "
1302+
" :meth:`__iter__` 方法或实现了 :term:`sequence` 语义的 :meth:`~object.__getitem__` "
13021303
"方法的自定义类的对象。"
13031304

13041305
#: ../../glossary.rst:651
@@ -2141,31 +2142,32 @@ msgstr "sequence"
21412142
#: ../../glossary.rst:1087
21422143
msgid ""
21432144
"An :term:`iterable` which supports efficient element access using integer "
2144-
"indices via the :meth:`__getitem__` special method and defines a "
2145+
"indices via the :meth:`~object.__getitem__` special method and defines a "
21452146
":meth:`__len__` method that returns the length of the sequence. Some built-"
21462147
"in sequence types are :class:`list`, :class:`str`, :class:`tuple`, and "
2147-
":class:`bytes`. Note that :class:`dict` also supports :meth:`__getitem__` "
2148-
"and :meth:`__len__`, but is considered a mapping rather than a sequence "
2149-
"because the lookups use arbitrary :term:`immutable` keys rather than "
2150-
"integers."
2148+
":class:`bytes`. Note that :class:`dict` also supports "
2149+
":meth:`~object.__getitem__` and :meth:`__len__`, but is considered a mapping"
2150+
" rather than a sequence because the lookups use arbitrary :term:`immutable` "
2151+
"keys rather than integers."
21512152
msgstr ""
2152-
"一种 :term:`iterable`,它支持通过 :meth:`__getitem__` "
2153-
"特殊方法来使用整数索引进行高效的元素访问,并定义了一个返回序列长度的 :meth:`__len__` 方法。内置的序列类型有 "
2154-
":class:`list`:class:`str`:class:`tuple` 和 :class:`bytes`注意虽然 "
2155-
":class:`dict` 也支持 :meth:`__getitem__` 和 "
2156-
":meth:`__len__`,但它被认为属于映射而非序列,因为它查找时使用任意的 :term:`immutable` 键而非整数。"
2153+
"一种 :term:`iterable`,它支持通过 :meth:`~object.__getitem__` "
2154+
"特殊方法来使用整数索引进行高效的元素访问,并定义了一个返回序列长度的 :meth:`__len__` 方法。 内置的序列类型有 "
2155+
":class:`list`, :class:`str`, :class:`tuple` 和 :class:`bytes` 等。 注意虽然 "
2156+
":class:`dict` 也支持 :meth:`~object.__getitem__` 和 "
2157+
":meth:`__len__`,但它被归类为映射而非序列,因为它使用任意 :term:`immutable` 键而不是整数来查找元素。"
21572158

21582159
#: ../../glossary.rst:1096
21592160
msgid ""
21602161
"The :class:`collections.abc.Sequence` abstract base class defines a much "
2161-
"richer interface that goes beyond just :meth:`__getitem__` and "
2162+
"richer interface that goes beyond just :meth:`~object.__getitem__` and "
21622163
":meth:`__len__`, adding :meth:`count`, :meth:`index`, :meth:`__contains__`, "
21632164
"and :meth:`__reversed__`. Types that implement this expanded interface can "
21642165
"be registered explicitly using :func:`~abc.ABCMeta.register`."
21652166
msgstr ""
2166-
":class:`collections.abc.Sequence` 抽象基类定义了一个更丰富的接口,它在 :meth:`__getitem__` 和 "
2167-
":meth:`__len__` 之外又添加了 :meth:`count`, :meth:`index`, :meth:`__contains__` 和 "
2168-
":meth:`__reversed__`。 实现此扩展接口的类型可以使用 :func:`~abc.ABCMeta.register` 来显式地注册。"
2167+
":class:`collections.abc.Sequence` 抽象基类定义了一个更丰富的接口,它在 "
2168+
":meth:`~object.__getitem__` 和 :meth:`__len__` 之外,还添加了 :meth:`count`, "
2169+
":meth:`index`, :meth:`__contains__` 和 :meth:`__reversed__`。 实现此扩展接口的类型可以使用 "
2170+
":func:`~abc.ABCMeta.register` 来显式地注册。"
21692171

21702172
#: ../../glossary.rst:1103
21712173
msgid "set comprehension"

howto/clinic.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-10-13 14:42+0000\n"
14+
"POT-Creation-Date: 2023-10-20 14:41+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:11+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -30,3 +30,5 @@ msgid ""
3030
"The Argument Clinic How-TO has been moved to the `Python Developer's Guide "
3131
"<https://devguide.python.org/development-tools/clinic/>`__."
3232
msgstr ""
33+
"Argument Clinic 指南已被移至 `Python Developer's Guide "
34+
"<https://devguide.python.org/development-tools/clinic/>`__。"

0 commit comments

Comments
 (0)