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

Skip to content

Commit 52e94f0

Browse files
[po] auto sync
1 parent 3bf16a5 commit 52e94f0

9 files changed

Lines changed: 54 additions & 32 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.46%", "updated_at": "2024-02-02T14:55:47Z"}
1+
{"translation": "93.49%", "updated_at": "2024-02-02T15:55:34Z"}

c-api/memoryview.po

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2023, 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:
77
# Alpha Du <[email protected]>, 2021
8-
# Freesand Leo <[email protected]>, 2023
8+
# Freesand Leo <[email protected]>, 2024
99
#
1010
#, fuzzy
1111
msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.12\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2023-07-28 14:13+0000\n"
15+
"POT-Creation-Date: 2024-02-02 15:40+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:49+0000\n"
17-
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
17+
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1919
"MIME-Version: 1.0\n"
2020
"Content-Type: text/plain; charset=UTF-8\n"
@@ -45,15 +45,23 @@ msgstr ""
4545
"从提供缓冲区接口的对象创建 memoryview 对象。 如果 *obj* 支持可写缓冲区导出,则 memoryview "
4646
"对象将可以被读/写,否则它可能是只读的,也可以是导出器自行决定的读/写。"
4747

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

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

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

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

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

95-
#: ../../c-api/memoryview.rst:60
108+
#: ../../c-api/memoryview.rst:73
96109
msgid ""
97110
"Return either a pointer to the exporting object that the memoryview is based"
98111
" on or ``NULL`` if the memoryview has been created by one of the functions "

c-api/object.po

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
# Dai Xu <[email protected]>, 2023
1010
# ppcfish <[email protected]>, 2023
1111
# sgqy <[email protected]>, 2023
12-
# Freesand Leo <[email protected]>, 2023
12+
# Freesand Leo <[email protected]>, 2024
1313
#
1414
#, fuzzy
1515
msgid ""
1616
msgstr ""
1717
"Project-Id-Version: Python 3.12\n"
1818
"Report-Msgid-Bugs-To: \n"
19-
"POT-Creation-Date: 2024-02-02 14:13+0000\n"
19+
"POT-Creation-Date: 2024-02-02 15:40+0000\n"
2020
"PO-Revision-Date: 2021-06-28 00:49+0000\n"
21-
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
21+
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2222
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2323
"MIME-Version: 1.0\n"
2424
"Content-Type: text/plain; charset=UTF-8\n"
@@ -256,6 +256,8 @@ msgid ""
256256
" like :c:func:`PyObject_RichCompare`, but returns ``-1`` on error, ``0`` if "
257257
"the result is false, ``1`` otherwise."
258258
msgstr ""
259+
"使用 *opid* 所指定的操作,例如 :c:func:`PyObject_RichCompare` 来比较 *o1* 和 *o2* "
260+
"的值,但在出错时返回 ``-1``,在结果为假值时返回 ``0``,在其他情况下返回 ``1``。"
259261

260262
#: ../../c-api/object.rst:179
261263
msgid ""

howto/logging.po

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ msgid ""
2222
msgstr ""
2323
"Project-Id-Version: Python 3.12\n"
2424
"Report-Msgid-Bugs-To: \n"
25-
"POT-Creation-Date: 2024-02-02 14:13+0000\n"
25+
"POT-Creation-Date: 2024-02-02 15:40+0000\n"
2626
"PO-Revision-Date: 2021-06-28 00:53+0000\n"
2727
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2828
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1076,18 +1076,20 @@ msgstr "对于 3.2 之前的 Python 版本,行为如下:"
10761076
msgid ""
10771077
"If :data:`raiseExceptions` is ``False`` (production mode), the event is "
10781078
"silently dropped."
1079-
msgstr ""
1079+
msgstr "如果 :data:`raiseExceptions` 为 ``False`` (生产模式),则该事件会被静默地丢弃。"
10801080

10811081
#: ../../howto/logging.rst:796
10821082
msgid ""
10831083
"If :data:`raiseExceptions` is ``True`` (development mode), a message 'No "
10841084
"handlers could be found for logger X.Y.Z' is printed once."
10851085
msgstr ""
1086+
"如果 :data:`raiseExceptions` 为 ``True`` (开发模式),则会打印一条消息 'No handlers could be "
1087+
"found for logger X.Y.Z'。"
10861088

10871089
#: ../../howto/logging.rst:799
10881090
msgid ""
10891091
"To obtain the pre-3.2 behaviour, :data:`lastResort` can be set to ``None``."
1090-
msgstr ""
1092+
msgstr "要获得 3.2 之前的行为,可以将 :data:`lastResort` 设为 ``None``。"
10911093

10921094
#: ../../howto/logging.rst:805
10931095
msgid "Configuring Logging for a Library"

library/io.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ msgstr ""
771771

772772
#: ../../library/io.rst:469
773773
msgid "Base class for raw binary streams. It inherits from :class:`IOBase`."
774-
msgstr ""
774+
msgstr "原始二进制流的基类。 它继承自 :class:`IOBase`。"
775775

776776
#: ../../library/io.rst:471
777777
msgid ""
@@ -845,7 +845,7 @@ msgstr ""
845845
msgid ""
846846
"Base class for binary streams that support some kind of buffering. It "
847847
"inherits from :class:`IOBase`."
848-
msgstr ""
848+
msgstr "支持某种缓冲的二进制流的基类。 它继承自 :class:`IOBase`。"
849849

850850
#: ../../library/io.rst:524
851851
msgid ""

library/pickle.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ msgid ""
2121
msgstr ""
2222
"Project-Id-Version: Python 3.12\n"
2323
"Report-Msgid-Bugs-To: \n"
24-
"POT-Creation-Date: 2024-02-02 14:13+0000\n"
24+
"POT-Creation-Date: 2024-02-02 15:40+0000\n"
2525
"PO-Revision-Date: 2021-06-28 01:11+0000\n"
2626
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2727
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -457,13 +457,13 @@ msgstr ":mod:`pickle` 模块定义了以下 3 个异常:"
457457
msgid ""
458458
"Common base class for the other pickling exceptions. It inherits from "
459459
":exc:`Exception`."
460-
msgstr ""
460+
msgstr "其他 pickle 异常的共同基类。 它继承自 :exc:`Exception`。"
461461

462462
#: ../../library/pickle.rst:280
463463
msgid ""
464464
"Error raised when an unpicklable object is encountered by :class:`Pickler`. "
465465
"It inherits from :exc:`PickleError`."
466-
msgstr ""
466+
msgstr "当 :class:`Pickler` 遇到无法解封的对象时将引发的错误。 它继承自 :exc:`PickleError`。"
467467

468468
#: ../../library/pickle.rst:283
469469
msgid ""
@@ -475,7 +475,7 @@ msgstr "参考 :ref:`pickle-picklable` 来了解哪些对象可以被封存。"
475475
msgid ""
476476
"Error raised when there is a problem unpickling an object, such as a data "
477477
"corruption or a security violation. It inherits from :exc:`PickleError`."
478-
msgstr ""
478+
msgstr "当解封对象出现问题时将引发的错误,例如数据损坏或违反安全规则。 它继承自 :exc:`PickleError`。"
479479

480480
#: ../../library/pickle.rst:291
481481
msgid ""

library/shutil.po

Lines changed: 5 additions & 2 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: 2024-02-02 14:13+0000\n"
16+
"POT-Creation-Date: 2024-02-02 15:40+0000\n"
1717
"PO-Revision-Date: 2021-06-28 01:13+0000\n"
1818
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -842,7 +842,7 @@ msgstr "创建一个归档文件(例如 zip 或 tar)并返回其名称。"
842842
msgid ""
843843
"*base_name* is the name of the file to create, including the path, minus any"
844844
" format-specific extension."
845-
msgstr ""
845+
msgstr "*base_name* 是要创建的文件的名称,包括路径,去除任何格式专属的扩展名。"
846846

847847
#: ../../library/shutil.rst:585
848848
msgid ""
@@ -851,6 +851,9 @@ msgid ""
851851
"\"bztar\" (if the :mod:`bz2` module is available), or \"xztar\" (if the "
852852
":mod:`lzma` module is available)."
853853
msgstr ""
854+
"*format* 是归档格式:为 \"zip\" (如果 :mod:`zlib` 模块可用), \"tar\", \"gztar\" (如果 "
855+
":mod:`zlib` 模块可用), \"bztar\" (如果 :mod:`bz2` 模块可用) 或 \"xztar\" (如果 "
856+
":mod:`lzma` 模块可用) 中的一个。"
854857

855858
#: ../../library/shutil.rst:590
856859
msgid ""

library/symtable.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
# Translators:
77
# jaystone776 <[email protected]>, 2021
88
# Dai Xu <[email protected]>, 2021
9-
# Freesand Leo <[email protected]>, 2023
9+
# Freesand Leo <[email protected]>, 2024
1010
#
1111
#, fuzzy
1212
msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.12\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2024-02-02 14:13+0000\n"
16+
"POT-Creation-Date: 2024-02-02 15:40+0000\n"
1717
"PO-Revision-Date: 2021-06-28 01:14+0000\n"
18-
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
18+
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -139,7 +139,7 @@ msgstr "返回嵌套符号表的列表。"
139139
msgid ""
140140
"A namespace for a function or method. This class inherits from "
141141
":class:`SymbolTable`."
142-
msgstr ""
142+
msgstr "函数或方法的命名空间。 该类继承自 :class:`SymbolTable`。"
143143

144144
#: ../../library/symtable.rst:105
145145
msgid "Return a tuple containing names of parameters to this function."
@@ -164,7 +164,7 @@ msgstr "返回函数中自由变量名组成的元组。"
164164
#: ../../library/symtable.rst:126
165165
msgid ""
166166
"A namespace of a class. This class inherits from :class:`SymbolTable`."
167-
msgstr ""
167+
msgstr "类的命名空间。 该类继承自 :class:`SymbolTable`。"
168168

169169
#: ../../library/symtable.rst:130
170170
msgid "Return a tuple containing the names of methods declared in the class."

library/xml.etree.elementtree.po

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ msgid ""
2121
msgstr ""
2222
"Project-Id-Version: Python 3.12\n"
2323
"Report-Msgid-Bugs-To: \n"
24-
"POT-Creation-Date: 2024-02-02 14:13+0000\n"
24+
"POT-Creation-Date: 2024-02-02 15:40+0000\n"
2525
"PO-Revision-Date: 2021-06-28 01:18+0000\n"
2626
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2727
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -798,6 +798,8 @@ msgid ""
798798
"contain processing instruction nodes if they have been inserted into to the "
799799
"tree using one of the :class:`Element` methods."
800800
msgstr ""
801+
"请注意 :class:`XMLParser` 会跳过输入中的处理指令而不会为其创建 PI 对象。 :class:`ElementTree` "
802+
"将只在当使用某个 :class:`Element` 方法向树插入了处理指令节点时才会包含它们。"
801803

802804
#: ../../library/xml.etree.elementtree.rst:674
803805
msgid ""
@@ -1497,7 +1499,7 @@ msgstr "使用给定的 *text* 创建一条注释。 如果 ``insert_comments``
14971499
msgid ""
14981500
"Creates a process instruction with the given *target* name and *text*. If "
14991501
"``insert_pis`` is true, this will also add it to the tree."
1500-
msgstr ""
1502+
msgstr "使用给定的 *target* 名称和 *text* 创建一条处理指令。 如果 ``insert_pis`` 为真值,这还会将其添加到树中。"
15011503

15021504
#: ../../library/xml.etree.elementtree.rst:1311
15031505
msgid ""

0 commit comments

Comments
 (0)