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

Skip to content

Commit 828a8b5

Browse files
[po] auto sync
1 parent 17306ae commit 828a8b5

66 files changed

Lines changed: 13050 additions & 9832 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": "88.43%", "updated_at": "2023-08-04T15:41:58Z"}
1+
{"translation": "88.87%", "updated_at": "2023-08-04T23:42:13Z"}

c-api/apiabiversion.po

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
2+
# Copyright (C) 2001-2023, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# 稀饭~~ <[email protected]>, 2021
8-
# Alpha Du <[email protected]>, 2021
9-
# my c <[email protected]>, 2021
10-
# Justin Chu <[email protected]>, 2021
11-
# Freesand Leo <[email protected]>, 2022
7+
# Rafael Fontenelle <[email protected]>, 2023
128
#
139
#, fuzzy
1410
msgid ""
1511
msgstr ""
16-
"Project-Id-Version: Python 3.10\n"
12+
"Project-Id-Version: Python 3.11\n"
1713
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2022-11-04 14:28+0000\n"
19-
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
20-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2022\n"
21-
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
14+
"POT-Creation-Date: 2023-08-04 14:46+0000\n"
15+
"PO-Revision-Date: 2023-05-24 02:08+0000\n"
16+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
17+
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2218
"MIME-Version: 1.0\n"
2319
"Content-Type: text/plain; charset=UTF-8\n"
2420
"Content-Transfer-Encoding: 8bit\n"
@@ -175,6 +171,23 @@ msgstr ""
175171
"这样 ``3.4.1a2`` 即十六进制版本号的 ``0x030401a2`` 而 ``3.10.0`` 即十六进制版本号的 "
176172
"``0x030a00f0``。"
177173

178-
#: ../../c-api/apiabiversion.rst:62
174+
#: ../../c-api/apiabiversion.rst:61
175+
msgid "Use this for numeric comparisons, e.g. ``#if PY_VERSION_HEX >= ...``."
176+
msgstr "用于进行数值比较,例如 ``#if PY_VERSION_HEX >= ...``。"
177+
178+
#: ../../c-api/apiabiversion.rst:63
179+
msgid "This version is also available via the symbol :c:var:`Py_Version`."
180+
msgstr "该版本还可通过符号 :c:var:`Py_Version` 获取。"
181+
182+
#: ../../c-api/apiabiversion.rst:67
183+
msgid ""
184+
"The Python runtime version number encoded in a single constant integer, with"
185+
" the same format as the :c:macro:`PY_VERSION_HEX` macro. This contains the "
186+
"Python version used at run time."
187+
msgstr ""
188+
"Python 运行时版本号编码在一个整数常量中,所用格式与 :c:macro:`PY_VERSION_HEX` 宏的相同。 这包含了在运行时使用的 "
189+
"Python 版本。"
190+
191+
#: ../../c-api/apiabiversion.rst:73
179192
msgid "All the given macros are defined in :source:`Include/patchlevel.h`."
180193
msgstr "所有提到的宏都定义在 :source:`Include/patchlevel.h`。"

c-api/arg.po

Lines changed: 336 additions & 281 deletions
Large diffs are not rendered by default.

c-api/buffer.po

Lines changed: 74 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,20 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
2+
# Copyright (C) 2001-2023, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# jsgang <[email protected]>, 2021
8-
# 稀饭~~ <[email protected]>, 2021
9-
# Alpha Du <[email protected]>, 2021
10-
# taotieren <[email protected]>, 2021
11-
# 豌豆花下猫 <[email protected]>, 2021
12-
# jacky <[email protected]>, 2021
13-
# ppcfish <[email protected]>, 2021
14-
# Iterator <[email protected]>, 2021
15-
# Jiu Hong Jiang <[email protected]>, 2021
16-
# NCJ <[email protected]>, 2021
17-
# Jianchao Su, 2021
18-
# Jiuh-star <[email protected]>, 2021
19-
# Dankinder <[email protected]>, 2021
20-
# helloworldSB <[email protected]>, 2021
21-
# Jing Li <[email protected]>, 2021
22-
# Dai Xu <[email protected]>, 2021
23-
# Freesand Leo <[email protected]>, 2021
7+
# Rafael Fontenelle <[email protected]>, 2023
248
#
259
#, fuzzy
2610
msgid ""
2711
msgstr ""
28-
"Project-Id-Version: Python 3.10\n"
12+
"Project-Id-Version: Python 3.11\n"
2913
"Report-Msgid-Bugs-To: \n"
30-
"POT-Creation-Date: 2022-11-04 14:28+0000\n"
31-
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
32-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
33-
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
14+
"POT-Creation-Date: 2023-08-04 14:46+0000\n"
15+
"PO-Revision-Date: 2023-05-24 02:08+0000\n"
16+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
17+
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
3418
"MIME-Version: 1.0\n"
3519
"Content-Type: text/plain; charset=UTF-8\n"
3620
"Content-Transfer-Encoding: 8bit\n"
@@ -97,16 +81,16 @@ msgid ""
9781
"An example consumer of the buffer interface is the "
9882
":meth:`~io.BufferedIOBase.write` method of file objects: any object that can"
9983
" export a series of bytes through the buffer interface can be written to a "
100-
"file. While :meth:`write` only needs read-only access to the internal "
84+
"file. While :meth:`!write` only needs read-only access to the internal "
10185
"contents of the object passed to it, other methods such as "
10286
":meth:`~io.BufferedIOBase.readinto` need write access to the contents of "
10387
"their argument. The buffer interface allows objects to selectively allow or"
10488
" reject exporting of read-write and read-only buffers."
10589
msgstr ""
10690
"缓冲区接口的消费者的一个例子是文件对象的 :meth:`~io.BufferedIOBase.write` "
107-
"方法:任何可以输出为一系列字节流的对象可以被写入文件。然而 :meth:`write` 方法只需要对于传入对象的只读权限,其他的方法,如 "
108-
":meth:`~io.BufferedIOBase.readinto` "
109-
"需要参数内容的写入权限。缓冲区接口使得对象可以选择性地允许或拒绝读写或只读缓冲区的导出。"
91+
"方法:任何可以输出为一系列字节流的对象都可以被写入文件。 然而 :meth:`!write` 只需要对传入对象内容的只读权限,其他的方法如 "
92+
":meth:`~io.BufferedIOBase.readinto` 需要对参数内容的写入权限。 "
93+
"缓冲区接口使用对象可以选择性地允许或拒绝读写或只读缓冲区的导出。"
11094

11195
#: ../../c-api/buffer.rst:53
11296
msgid ""
@@ -280,7 +264,7 @@ msgid ""
280264
"the contents of a single item. If this is ``NULL``, ``\"B\"`` (unsigned "
281265
"bytes) is assumed."
282266
msgstr ""
283-
"在 :mod:`struct` 模块样式语法中 *NUL* 字符串,描述单个项的内容。如果这是 ``NULL``,则假定为``\"B\"`` "
267+
"在 :mod:`struct` 模块样式语法中 *NUL* 字符串,描述单个项的内容。如果这是 ``NULL``,则假定为 ``\"B\"`` "
284268
"(无符号字节) 。"
285269

286270
#: ../../c-api/buffer.rst:154
@@ -295,9 +279,9 @@ msgid ""
295279
":c:member:`~Py_buffer.strides` and :c:member:`~Py_buffer.suboffsets` MUST be"
296280
" ``NULL``."
297281
msgstr ""
298-
"内存表示为 n 维数组的维数。 如果是``0``, :c:member:`~Py_buffer.buf` 指向表示标量的单个项目。 "
282+
"内存表示为 n 维数组的维数。 如果是 ``0``, :c:member:`~Py_buffer.buf` 指向表示标量的单个项目。 "
299283
"在这种情况下,:c:member:`~Py_buffer.shape`、:c:member:`~Py_buffer.strides` 和 "
300-
":c:member:`~Py_buffer.suboffsets` 必须是``NULL`` 。"
284+
":c:member:`~Py_buffer.suboffsets` 必须是 ``NULL`` 。"
301285

302286
#: ../../c-api/buffer.rst:163
303287
msgid ""
@@ -411,9 +395,9 @@ msgstr ""
411395

412396
#: ../../c-api/buffer.rst:228
413397
msgid ""
414-
"All :c:data:`Py_buffer` fields are unambiguously defined by the request "
398+
"All :c:type:`Py_buffer` fields are unambiguously defined by the request "
415399
"type."
416-
msgstr "所有 :c:data:`Py_buffer` 字段均由请求类型明确定义。"
400+
msgstr "所有 :c:type:`Py_buffer` 字段均由请求类型无歧义地定义。"
417401

418402
#: ../../c-api/buffer.rst:232
419403
msgid "request-independent fields"
@@ -448,7 +432,7 @@ msgid ""
448432
"Controls the :c:member:`~Py_buffer.format` field. If set, this field MUST be"
449433
" filled in correctly. Otherwise, this field MUST be ``NULL``."
450434
msgstr ""
451-
"控制 :c:member:`~Py_buffer.format` 字段。 如果设置,则必须正确填写此字段。其他情况下,此字段必须为``NULL``。"
435+
"控制 :c:member:`~Py_buffer.format` 字段。 如果设置,则必须正确填写此字段。其他情况下,此字段必须为 ``NULL``。"
452436

453437
#: ../../c-api/buffer.rst:254
454438
msgid ""
@@ -466,8 +450,8 @@ msgid ""
466450
":c:macro:`PyBUF_SIMPLE`. The latter already implies format ``B`` (unsigned "
467451
"bytes)."
468452
msgstr ""
469-
":c:macro:`PyBUF_FORMAT` 可以被设为除了 :c:macro:`PyBUF_SIMPLE` 之外的任何标志。 "
470-
"后者已经按暗示了``B``(无符号字节串)格式。"
453+
":c:macro:`PyBUF_FORMAT` 可以被设为除了 :c:macro:`PyBUF_SIMPLE` 之外的任何标志。 后者已经按暗示了 "
454+
"``B`` (无符号字节串)格式。"
471455

472456
#: ../../c-api/buffer.rst:263
473457
msgid "shape, strides, suboffsets"
@@ -590,7 +574,7 @@ msgstr "在下表中,*U* 代表连续性未定义。消费者程序必须调
590574

591575
#: ../../c-api/buffer.rst:321
592576
msgid "readonly"
593-
msgstr "只读"
577+
msgstr "readonly"
594578

595579
#: ../../c-api/buffer.rst:321
596580
msgid "format"
@@ -682,7 +666,7 @@ msgid ""
682666
"Here is a function that returns a pointer to the element in an N-D array "
683667
"pointed to by an N-dimensional index when there are both non-``NULL`` "
684668
"strides and suboffsets::"
685-
msgstr "这是一个函数,当n维索引所指向的N-D数组中有``NULL``步长和子偏移量时,它返回一个指针"
669+
msgstr "这是一个函数,当n维索引所指向的N-D数组中有 ``NULL`` 步长和子偏移量时,它返回一个指针"
686670

687671
#: ../../c-api/buffer.rst:428
688672
msgid "Buffer-related functions"
@@ -745,11 +729,11 @@ msgstr "若该函数针对的缓冲区不是通过 :c:func:`PyObject_GetBuffer`
745729

746730
#: ../../c-api/buffer.rst:467
747731
msgid ""
748-
"Return the implied :c:data:`~Py_buffer.itemsize` from "
749-
":c:data:`~Py_buffer.format`. On error, raise an exception and return -1."
732+
"Return the implied :c:member:`~Py_buffer.itemsize` from "
733+
":c:member:`~Py_buffer.format`. On error, raise an exception and return -1."
750734
msgstr ""
751-
"返回 :c:data:`~Py_buffer.itemsize` 中隐含的 :c:data:`~Py_buffer.format` "
752-
"如果出错,会触发异常并返回 -1。"
735+
" :c:member:`~Py_buffer.format` 返回隐含的 :c:member:`~Py_buffer.itemsize`。 "
736+
"如果出错,则引发异常并返回 -1。"
753737

754738
#: ../../c-api/buffer.rst:475
755739
msgid ""
@@ -774,8 +758,8 @@ msgid ""
774758
"``'F'`` (for C-style or Fortran-style ordering). ``0`` is returned on "
775759
"success, ``-1`` on error."
776760
msgstr ""
777-
"从 *buf* 复制连续的 *len* 字节到 *view* 。*fort* 可以是 ``'C'`` 或 ``'F'``(对应于 C 风格或 "
778-
"Fortran 风格的顺序)。成功时返回 ``0``,错误时返回 ``-1``。"
761+
"从 *buf* 复制连续的 *len* 字节到 *view* 。*fort* 可以是 ``'C'`` 或 ``'F'`` (对应于 C 风格或 "
762+
"Fortran 风格的顺序)。成功时返回 ``0`` ,错误时返回 ``-1`` 。"
779763

780764
#: ../../c-api/buffer.rst:495
781765
msgid ""
@@ -784,22 +768,32 @@ msgid ""
784768
"ordering or either one). ``0`` is returned on success, ``-1`` on error."
785769
msgstr ""
786770
"从 *src* 复制 *len* 字节到 *buf* ,成为连续字节串的形式。*order* 可以是 ``'C'`` 或 ``'F'`` 或 "
787-
"``'A'``(对应于 C 风格、Fortran 风格的顺序或其中任意一种)。成功时返回 ``0``,出错时返回 ``-1``。"
771+
"``'A'`` (对应于 C 风格、Fortran 风格的顺序或其中任意一种)。成功时返回 ``0`` ,出错时返回 ``-1`` 。"
788772

789773
#: ../../c-api/buffer.rst:499
790774
msgid "This function fails if *len* != *src->len*."
791775
msgstr "如果 *len* != *src->len* 则此函数将报错。"
792776

793777
#: ../../c-api/buffer.rst:504
794778
msgid ""
779+
"Copy data from *src* to *dest* buffer. Can convert between C-style and or "
780+
"Fortran-style buffers."
781+
msgstr "将数据从 *src* 拷贝到 *dest* 缓冲区。 可以在 C 风格或 Fortran 风格的缓冲区之间进行转换。"
782+
783+
#: ../../c-api/buffer.rst:507
784+
msgid "``0`` is returned on success, ``-1`` on error."
785+
msgstr "成功时返回 ``0``,出错时返回 ``-1``。"
786+
787+
#: ../../c-api/buffer.rst:511
788+
msgid ""
795789
"Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style "
796790
"if *order* is ``'C'`` or Fortran-style if *order* is ``'F'``) array of the "
797791
"given shape with the given number of bytes per element."
798792
msgstr ""
799793
"用给定形状的 :term:`contiguous` 字节串数组 (如果 *order* 为 ``'C'`` 则为 C 风格,如果 *order* 为 "
800794
"``'F'`` 则为 Fortran 风格) 来填充 *strides* 数组,每个元素具有给定的字节数。"
801795

802-
#: ../../c-api/buffer.rst:511
796+
#: ../../c-api/buffer.rst:518
803797
msgid ""
804798
"Handle buffer requests for an exporter that wants to expose *buf* of size "
805799
"*len* with writability set according to *readonly*. *buf* is interpreted as "
@@ -808,7 +802,7 @@ msgstr ""
808802
"处理导出程序的缓冲区请求,该导出程序要公开大小为 *len* 的 *buf* ,并根据 *readonly* 设置可写性。*bug* "
809803
"被解释为一个无符号字节序列。"
810804

811-
#: ../../c-api/buffer.rst:515
805+
#: ../../c-api/buffer.rst:522
812806
msgid ""
813807
"The *flags* argument indicates the request type. This function always fills "
814808
"in *view* as specified by flags, unless *buf* has been designated as read-"
@@ -817,7 +811,7 @@ msgstr ""
817811
"参数 *flags* 表示请求的类型。该函数总是按照 flag 指定的内容填入 *view*,除非 *buf* 设为只读,并且 *flag* 中设置了 "
818812
":c:macro:`PyBUF_WRITABLE` 标志。"
819813

820-
#: ../../c-api/buffer.rst:519
814+
#: ../../c-api/buffer.rst:526
821815
msgid ""
822816
"On success, set ``view->obj`` to a new reference to *exporter* and return 0."
823817
" Otherwise, raise :c:data:`PyExc_BufferError`, set ``view->obj`` to ``NULL``"
@@ -826,11 +820,43 @@ msgstr ""
826820
"成功时,将 ``view->obj`` 设为 *exporter* 的新引用,并返回 0。否则,引发 "
827821
":c:data:`PyExc_BufferError` ,将 ``view->obj`` 设为 ``NULL``,并返回 ``-1``。"
828822

829-
#: ../../c-api/buffer.rst:523
823+
#: ../../c-api/buffer.rst:530
830824
msgid ""
831825
"If this function is used as part of a :ref:`getbufferproc <buffer-structs>`,"
832826
" *exporter* MUST be set to the exporting object and *flags* must be passed "
833827
"unmodified. Otherwise, *exporter* MUST be ``NULL``."
834828
msgstr ""
835829
"如果此函数用作 :ref:`getbufferproc <buffer-structs>` 的一部分,则 *exporter* "
836830
"必须设置为导出对象,并且必须在未修改的情况下传递 *flags*。否则,*exporter* 必须是 ``NULL``。"
831+
832+
#: ../../c-api/buffer.rst:3
833+
msgid "buffer protocol"
834+
msgstr "缓冲协议"
835+
836+
#: ../../c-api/buffer.rst:3
837+
msgid "buffer interface"
838+
msgstr "缓冲接口"
839+
840+
#: ../../c-api/buffer.rst:3 ../../c-api/buffer.rst:3
841+
msgid "(see buffer protocol)"
842+
msgstr "(参见缓冲协议)"
843+
844+
#: ../../c-api/buffer.rst:3
845+
msgid "buffer object"
846+
msgstr "缓冲对象"
847+
848+
#: ../../c-api/buffer.rst:32
849+
msgid "PyBufferProcs"
850+
msgstr "PyBufferProcs"
851+
852+
#: ../../c-api/buffer.rst:284
853+
msgid "contiguous"
854+
msgstr "contiguous -- 连续"
855+
856+
#: ../../c-api/buffer.rst:284
857+
msgid "C-contiguous"
858+
msgstr "C 连续"
859+
860+
#: ../../c-api/buffer.rst:284
861+
msgid "Fortran contiguous"
862+
msgstr "Fortran 连续"

0 commit comments

Comments
 (0)