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

Skip to content

Commit f52d2e3

Browse files
[po] auto sync
1 parent 591e906 commit f52d2e3

44 files changed

Lines changed: 1639 additions & 1118 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": "90.90%", "updated_at": "2024-02-02T15:41:35Z"}
1+
{"translation": "91.47%", "updated_at": "2024-02-03T03:41:10Z"}

c-api/init.po

Lines changed: 131 additions & 27 deletions
Large diffs are not rendered by default.

c-api/memory.po

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Rafael Fontenelle <[email protected]>, 2023
7+
# Rafael Fontenelle <[email protected]>, 2024
88
#
99
#, fuzzy
1010
msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-01-26 16:43+0000\n"
14+
"POT-Creation-Date: 2024-02-02 18:15+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:09+0000\n"
16-
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
16+
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1818
"MIME-Version: 1.0\n"
1919
"Content-Type: text/plain; charset=UTF-8\n"
@@ -387,6 +387,8 @@ msgid ""
387387
"of memory. Returns a pointer cast to ``TYPE*``. The memory will not have "
388388
"been initialized in any way."
389389
msgstr ""
390+
"与 :c:func:`PyMem_Malloc` 相同,但会分配 ``(n * sizeof(TYPE))`` 字节的内存。 返回一个转换为 "
391+
"``TYPE*`` 的指针。 内存不会以任何方式被初始化。"
390392

391393
#: ../../c-api/memory.rst:276
392394
msgid ""
@@ -395,6 +397,8 @@ msgid ""
395397
"will be a pointer to the new memory area, or ``NULL`` in the event of "
396398
"failure."
397399
msgstr ""
400+
"与 :c:func:`PyMem_Realloc` 类似,但内存块的大小被调整为 ``(n * sizeof(TYPE))`` 个字节。 返回一个转换为"
401+
" ``TYPE*`` 的指针。 在返回时,*p* 将是一个指向新内存区域的指针,或者如果执行失败则为 ``NULL``。"
398402

399403
#: ../../c-api/memory.rst:281
400404
msgid ""

c-api/memoryview.po

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
2+
# Copyright (C) 2001-2024, 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-
# Freesand Leo <[email protected]>, 2021
8-
# Alpha Du <[email protected]>, 2021
7+
# Rafael Fontenelle <[email protected]>, 2024
98
#
109
#, fuzzy
1110
msgid ""
1211
msgstr ""
13-
"Project-Id-Version: Python 3.10\n"
12+
"Project-Id-Version: Python 3.11\n"
1413
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2022-11-04 14:28+0000\n"
16-
"PO-Revision-Date: 2021-06-28 00:49+0000\n"
17-
"Last-Translator: Alpha Du <alphanow@gmail.com>, 2021\n"
18-
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
14+
"POT-Creation-Date: 2024-02-02 18:15+0000\n"
15+
"PO-Revision-Date: 2023-05-24 02:09+0000\n"
16+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
17+
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1918
"MIME-Version: 1.0\n"
2019
"Content-Type: text/plain; charset=UTF-8\n"
2120
"Content-Transfer-Encoding: 8bit\n"
@@ -45,15 +44,23 @@ msgstr ""
4544
"从提供缓冲区接口的对象创建 memoryview 对象。 如果 *obj* 支持可写缓冲区导出,则 memoryview "
4645
"对象将可以被读/写,否则它可能是只读的,也可以是导出器自行决定的读/写。"
4746

48-
#: ../../c-api/memoryview.rst:25
47+
#: ../../c-api/memoryview.rst:26
48+
msgid "Flag to request a readonly buffer."
49+
msgstr "用于请求只读缓冲区的旗标。"
50+
51+
#: ../../c-api/memoryview.rst:31
52+
msgid "Flag to request a writable buffer."
53+
msgstr "用于请求可写缓冲区的旗标。"
54+
55+
#: ../../c-api/memoryview.rst:36
4956
msgid ""
5057
"Create a memoryview object using *mem* as the underlying buffer. *flags* can"
5158
" be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`."
5259
msgstr ""
5360
"使用 *mem* 作为底层缓冲区创建一个 memoryview 对象。 *flags* 可以是 :c:macro:`PyBUF_READ` 或者 "
5461
":c:macro:`PyBUF_WRITE` 之一."
5562

56-
#: ../../c-api/memoryview.rst:32
63+
#: ../../c-api/memoryview.rst:43
5764
msgid ""
5865
"Create a memoryview object wrapping the given buffer structure *view*. For "
5966
"simple byte buffers, :c:func:`PyMemoryView_FromMemory` is the preferred "
@@ -62,7 +69,7 @@ msgstr ""
6269
"创建一个包含给定缓冲区结构 *view* 的 memoryview 对象。 "
6370
"对于简单的字节缓冲区,:c:func:`PyMemoryView_FromMemory` 是首选函数。"
6471

65-
#: ../../c-api/memoryview.rst:38
72+
#: ../../c-api/memoryview.rst:49
6673
msgid ""
6774
"Create a memoryview object to a :term:`contiguous` chunk of memory (in "
6875
"either 'C' or 'F'ortran *order*) from an object that defines the buffer "
@@ -74,7 +81,12 @@ msgstr ""
7481
"*order* 中)。 如果内存是连续的,则 memoryview 对象指向原始内存。 否则,复制并且 memoryview 指向新的 bytes "
7582
"对象。"
7683

77-
#: ../../c-api/memoryview.rst:47
84+
#: ../../c-api/memoryview.rst:55
85+
msgid ""
86+
"*buffertype* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`."
87+
msgstr "*buffertype* 可以为 :c:macro:`PyBUF_READ` 或 :c:macro:`PyBUF_WRITE` 中的一个。"
88+
89+
#: ../../c-api/memoryview.rst:60
7890
msgid ""
7991
"Return true if the object *obj* is a memoryview object. It is not currently"
8092
" allowed to create subclasses of :class:`memoryview`. This function always "
@@ -83,7 +95,7 @@ msgstr ""
8395
"如果 *obj* 是一个 memoryview 对象则返回真值。 目前不允许创建 :class:`memoryview` 的子类。 "
8496
"此函数总是会成功执行。"
8597

86-
#: ../../c-api/memoryview.rst:54
98+
#: ../../c-api/memoryview.rst:67
8799
msgid ""
88100
"Return a pointer to the memoryview's private copy of the exporter's buffer. "
89101
"*mview* **must** be a memoryview instance; this macro doesn't check its "
@@ -92,7 +104,7 @@ msgstr ""
92104
"返回指向 memoryview 的导出缓冲区私有副本的指针。 *mview* **必须** 是一个 memoryview "
93105
"实例;这个宏不检查它的类型,你必须自己检查,否则你将面临崩溃风险。"
94106

95-
#: ../../c-api/memoryview.rst:60
107+
#: ../../c-api/memoryview.rst:73
96108
msgid ""
97109
"Return either a pointer to the exporting object that the memoryview is based"
98110
" on or ``NULL`` if the memoryview has been created by one of the functions "
@@ -102,3 +114,11 @@ msgstr ""
102114
"返回 memoryview 所基于的导出对象的指针,或者如果 memoryview 已由函数 "
103115
":c:func:`PyMemoryView_FromMemory` 或 :c:func:`PyMemoryView_FromBuffer` 创建则返回 "
104116
"``NULL``。 *mview* **必须** 是一个 memoryview 实例。"
117+
118+
#: ../../c-api/memoryview.rst:5
119+
msgid "object"
120+
msgstr "object -- 对象"
121+
122+
#: ../../c-api/memoryview.rst:5
123+
msgid "memoryview"
124+
msgstr "memoryview"

c-api/object.po

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Rafael Fontenelle <[email protected]>, 2023
7+
# Rafael Fontenelle <[email protected]>, 2024
88
#
99
#, fuzzy
1010
msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-02-02 14:31+0000\n"
14+
"POT-Creation-Date: 2024-02-02 18:15+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:09+0000\n"
16-
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
16+
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1818
"MIME-Version: 1.0\n"
1919
"Content-Type: text/plain; charset=UTF-8\n"
@@ -259,6 +259,8 @@ msgid ""
259259
" like :c:func:`PyObject_RichCompare`, but returns ``-1`` on error, ``0`` if "
260260
"the result is false, ``1`` otherwise."
261261
msgstr ""
262+
"使用 *opid* 所指定的操作,例如 :c:func:`PyObject_RichCompare` 来比较 *o1* 和 *o2* "
263+
"的值,但在出错时返回 ``-1``,在结果为假值时返回 ``0``,在其他情况下返回 ``1``。"
262264

263265
#: ../../c-api/object.rst:187
264266
msgid ""

glossary.po

Lines changed: 13 additions & 13 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: 2024-01-19 16:40+0000\n"
15+
"POT-Creation-Date: 2024-02-02 18:15+0000\n"
1616
"PO-Revision-Date: 2023-05-24 02:11+0000\n"
1717
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -342,7 +342,7 @@ msgid ""
342342
"<sys.stdin>`, :data:`sys.stdout.buffer <sys.stdout>`, and instances of "
343343
":class:`io.BytesIO` and :class:`gzip.GzipFile`."
344344
msgstr ""
345-
":term:`file object` 能够读写 :term:`字节类对象 <bytes-like object>`。 二进制文件的例子包括以二进制模式"
345+
":term:`file object` 能够读写 :term:`字节型对象 <bytes-like object>`。 二进制文件的例子包括以二进制模式"
346346
" (``'rb'``, ``'wb'`` 或 ``'rb+'``) 打开的文件、:data:`sys.stdin.buffer "
347347
"<sys.stdin>`、:data:`sys.stdout.buffer <sys.stdout>` 以及 :class:`io.BytesIO` 和"
348348
" :class:`gzip.GzipFile` 的实例。"
@@ -381,7 +381,7 @@ msgstr ""
381381

382382
#: ../../glossary.rst:182
383383
msgid "bytes-like object"
384-
msgstr "bytes-like object -- 字节类对象"
384+
msgstr "bytes-like object -- 字节型对象"
385385

386386
#: ../../glossary.rst:184
387387
msgid ""
@@ -394,7 +394,7 @@ msgid ""
394394
msgstr ""
395395
"支持 :ref:`bufferobjects` 并且能导出 C-:term:`contiguous` 缓冲的对象。这包括所有 "
396396
":class:`bytes`、:class:`bytearray` 和 :class:`array.array` 对象,以及许多普通 "
397-
":class:`memoryview` 对象。字节类对象可在多种二进制数据操作中使用;这些操作包括压缩、保存为二进制文件以及通过套接字发送等。"
397+
":class:`memoryview` 对象。 字节型对象可在多种二进制数据操作中使用;这些操作包括压缩、保存为二进制文件以及通过套接字发送等。"
398398

399399
#: ../../glossary.rst:191
400400
msgid ""
@@ -804,7 +804,7 @@ msgid ""
804804
msgstr ""
805805
"对外公开面向文件的 API(带有 :meth:`!read` 或 :meth:`!write` 等方法)以使用下层资源的对象。 "
806806
"根据其创建方式的不同,文件对象可以处理对真实磁盘文件、其他类型的存储或通信设备的访问(例如标准输入/输出、内存缓冲区、套接字、管道等)。 "
807-
"文件对象也被称为 :dfn:`文件类对象` 或 :dfn:`流`。"
807+
"文件对象也被称为 :dfn:`文件型对象` 或 :dfn:`流`。"
808808

809809
#: ../../glossary.rst:404
810810
msgid ""
@@ -815,12 +815,12 @@ msgid ""
815815
"function."
816816
msgstr ""
817817
"实际上共有三种类别的文件对象: 原始 :term:`二进制文件 <binary file>`, 缓冲 :term:`二进制文件 <binary "
818-
"file>` 以及 :term:`文本文件 <text file>`。它们的接口定义均在 :mod:`io` 模块中。创建文件对象的规范方式是使用 "
818+
"file>` 以及 :term:`文本文件 <text file>`。它们的接口定义均在 :mod:`io` 模块中。 创建文件对象的规范方式是使用 "
819819
":func:`open` 函数。"
820820

821821
#: ../../glossary.rst:409
822822
msgid "file-like object"
823-
msgstr "file-like object -- 文件类对象"
823+
msgstr "file-like object -- 文件型对象"
824824

825825
#: ../../glossary.rst:411
826826
msgid "A synonym for :term:`file object`."
@@ -986,7 +986,7 @@ msgstr ""
986986
"释放不再被使用的内存空间的过程。Python 是通过引用计数和一个能够检测和打破循环引用的循环垃圾回收器来执行垃圾回收的。可以使用 :mod:`gc` "
987987
"模块来控制垃圾回收器。"
988988

989-
#: ../../glossary.rst:493 ../../glossary.rst:492
989+
#: ../../glossary.rst:492 ../../glossary.rst:493
990990
msgid "generator"
991991
msgstr "generator -- 生成器"
992992

@@ -1025,7 +1025,7 @@ msgstr ""
10251025
"每个 :keyword:`yield` 会临时暂停处理,记住当前位置执行状态(包括局部变量和挂起的 try 语句)。当该 *生成器迭代器* "
10261026
"恢复时,它会从离开位置继续执行(这与每次调用都从新开始的普通函数差别很大)。"
10271027

1028-
#: ../../glossary.rst:514 ../../glossary.rst:513
1028+
#: ../../glossary.rst:513 ../../glossary.rst:514
10291029
msgid "generator expression"
10301030
msgstr "generator expression -- 生成器表达式"
10311031

@@ -1591,7 +1591,7 @@ msgstr ""
15911591
msgid "More information can be found in :ref:`metaclasses`."
15921592
msgstr "更多详情参见 :ref:`metaclasses`。"
15931593

1594-
#: ../../glossary.rst:793 ../../glossary.rst:761 ../../glossary.rst:1126
1594+
#: ../../glossary.rst:761 ../../glossary.rst:793 ../../glossary.rst:1126
15951595
msgid "method"
15961596
msgstr "method -- 方法"
15971597

@@ -2295,7 +2295,7 @@ msgstr ""
22952295
msgid ""
22962296
"Serializing a string into a sequence of bytes is known as \"encoding\", and "
22972297
"recreating the string from the sequence of bytes is known as \"decoding\"."
2298-
msgstr "将一个字符串序列化为一个字节序列被称为 \"编码\",而从字节序列中重新创建字符串被称为 \"解码\"。"
2298+
msgstr "将一个字符串序列化为一个字节序列被称为“编码”,而从字节序列中重新创建字符串被称为“解码”。"
22992299

23002300
#: ../../glossary.rst:1165
23012301
msgid ""
@@ -2325,7 +2325,7 @@ msgid ""
23252325
"See also :term:`binary file` for a file object able to read and write "
23262326
":term:`bytes-like objects <bytes-like object>`."
23272327
msgstr ""
2328-
"另请参看 :term:`binary file` 了解能够读写 :term:`字节类对象 <bytes-like object>` 的文件对象。"
2328+
"另请参看 :term:`binary file` 了解能够读写 :term:`字节型对象 <bytes-like object>` 的文件对象。"
23292329

23302330
#: ../../glossary.rst:1179
23312331
msgid "triple-quoted string"
@@ -2437,7 +2437,7 @@ msgstr "在标注变量或类属性时,还可选择为其赋值::"
24372437
msgid ""
24382438
"Variable annotations are usually used for :term:`type hints <type hint>`: "
24392439
"for example this variable is expected to take :class:`int` values::"
2440-
msgstr "变量标注通常被用作 :term:`类型注解 <type hint>`:例如以下变量预期接受 :class:`int` 类型的值::"
2440+
msgstr "变量标注通常被用作 :term:`类型提示 <type hint>`:例如以下变量预期接受 :class:`int` 类型的值::"
24412441

24422442
#: ../../glossary.rst:1249
24432443
msgid "Variable annotation syntax is explained in section :ref:`annassign`."

howto/logging.po

Lines changed: 5 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: 2024-02-02 14:31+0000\n"
14+
"POT-Creation-Date: 2024-02-02 18:15+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:11+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1059,18 +1059,20 @@ msgstr "对于 3.2 之前的 Python 版本,行为如下:"
10591059
msgid ""
10601060
"If :data:`raiseExceptions` is ``False`` (production mode), the event is "
10611061
"silently dropped."
1062-
msgstr ""
1062+
msgstr "如果 :data:`raiseExceptions` 为 ``False`` (生产模式),则该事件会被静默地丢弃。"
10631063

10641064
#: ../../howto/logging.rst:793
10651065
msgid ""
10661066
"If :data:`raiseExceptions` is ``True`` (development mode), a message 'No "
10671067
"handlers could be found for logger X.Y.Z' is printed once."
10681068
msgstr ""
1069+
"如果 :data:`raiseExceptions` 为 ``True`` (开发模式),则会打印一条消息 'No handlers could be "
1070+
"found for logger X.Y.Z'。"
10691071

10701072
#: ../../howto/logging.rst:796
10711073
msgid ""
10721074
"To obtain the pre-3.2 behaviour, :data:`lastResort` can be set to ``None``."
1073-
msgstr ""
1075+
msgstr "要获得 3.2 之前的行为,可以将 :data:`lastResort` 设为 ``None``。"
10741076

10751077
#: ../../howto/logging.rst:802
10761078
msgid "Configuring Logging for a Library"

library/argparse.po

Lines changed: 2 additions & 2 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: 2024-01-26 16:43+0000\n"
14+
"POT-Creation-Date: 2024-02-02 18:15+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:12+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1923,7 +1923,7 @@ msgstr ""
19231923

19241924
#: ../../library/argparse.rst:1926
19251925
msgid "Added the *encodings* and *errors* parameters."
1926-
msgstr ""
1926+
msgstr "增加了 *encodings* 和 *errors* 形参。"
19271927

19281928
#: ../../library/argparse.rst:1931
19291929
msgid "Argument groups"

0 commit comments

Comments
 (0)