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

Skip to content

Commit 40b8a56

Browse files
[po] auto sync
1 parent 1412a32 commit 40b8a56

28 files changed

Lines changed: 435 additions & 452 deletions

c-api/bool.po

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#
66
# Translators:
77
# QR Wang <[email protected]>, 2018
8-
# wwj402 <[email protected]>, 2018
98
# isaced <[email protected]>, 2018
109
# Shengjing Zhu <[email protected]>, 2018
1110
#
@@ -14,7 +13,7 @@ msgid ""
1413
msgstr ""
1514
"Project-Id-Version: Python 3.9\n"
1615
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
16+
"POT-Creation-Date: 2021-01-07 05:06+0000\n"
1817
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
1918
"Last-Translator: Shengjing Zhu <[email protected]>, 2018\n"
2019
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -39,34 +38,36 @@ msgstr ""
3938
"两个布尔值。因此,正常的创建和删除功能不适用于布尔值。但是,下列宏可用。"
4039

4140
#: ../../c-api/bool.rst:16
42-
msgid "Return true if *o* is of type :c:data:`PyBool_Type`."
43-
msgstr "如果 *o* 的类型为 :c:data:`PyBool_Type`,则返回 true。"
41+
msgid ""
42+
"Return true if *o* is of type :c:data:`PyBool_Type`. This function always "
43+
"succeeds."
44+
msgstr ""
4445

45-
#: ../../c-api/bool.rst:21
46+
#: ../../c-api/bool.rst:22
4647
msgid ""
4748
"The Python ``False`` object. This object has no methods. It needs to be "
4849
"treated just like any other object with respect to reference counts."
4950
msgstr "Python 的 ``False`` 对象没有任何方法,它需要和其他对象一样遵循引用计数。"
5051

51-
#: ../../c-api/bool.rst:27
52+
#: ../../c-api/bool.rst:28
5253
msgid ""
5354
"The Python ``True`` object. This object has no methods. It needs to be "
5455
"treated just like any other object with respect to reference counts."
5556
msgstr "Python 的 ``True`` 对象没有任何方法,它需要和其他对象一样遵循引用计数。"
5657

57-
#: ../../c-api/bool.rst:33
58+
#: ../../c-api/bool.rst:34
5859
msgid ""
5960
"Return :const:`Py_False` from a function, properly incrementing its "
6061
"reference count."
6162
msgstr "从函数返回 :const:`Py_False` 时,需要增加它的引用计数。"
6263

63-
#: ../../c-api/bool.rst:39
64+
#: ../../c-api/bool.rst:40
6465
msgid ""
6566
"Return :const:`Py_True` from a function, properly incrementing its reference"
6667
" count."
6768
msgstr "从函数返回 :const:`Py_True` 时,需要增加它的引用计数。"
6869

69-
#: ../../c-api/bool.rst:45
70+
#: ../../c-api/bool.rst:46
7071
msgid ""
7172
"Return a new reference to :const:`Py_True` or :const:`Py_False` depending on"
7273
" the truth value of *v*."

c-api/bytearray.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.9\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
16+
"POT-Creation-Date: 2021-01-07 05:06+0000\n"
1717
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
1818
"Last-Translator: Freesand Leo <[email protected]>, 2019\n"
1919
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -47,14 +47,14 @@ msgstr "类型检查宏"
4747
#: ../../c-api/bytearray.rst:27
4848
msgid ""
4949
"Return true if the object *o* is a bytearray object or an instance of a "
50-
"subtype of the bytearray type."
51-
msgstr "当对象 *o* 是一个字节数组对象而且是一个字节数组类型的子类型实例时,返回真。"
50+
"subtype of the bytearray type. This function always succeeds."
51+
msgstr ""
5252

5353
#: ../../c-api/bytearray.rst:33
5454
msgid ""
5555
"Return true if the object *o* is a bytearray object, but not an instance of "
56-
"a subtype of the bytearray type."
57-
msgstr "当对象 *o* 是一个字节数组对象,但不是一个字节数组类型的子类型实例时,返回真。"
56+
"a subtype of the bytearray type. This function always succeeds."
57+
msgstr ""
5858

5959
#: ../../c-api/bytearray.rst:38
6060
msgid "Direct API functions"

c-api/bytes.po

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# sgqy <[email protected]>, 2019
1010
# Iterator <[email protected]>, 2019
1111
# ppcfish <[email protected]>, 2019
12-
# Shengjing Zhu <[email protected]>, 2019
1312
# 昌伟 任 <[email protected]>, 2019
1413
# Freesand Leo <[email protected]>, 2020
1514
#
@@ -18,7 +17,7 @@ msgid ""
1817
msgstr ""
1918
"Project-Id-Version: Python 3.9\n"
2019
"Report-Msgid-Bugs-To: \n"
21-
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
20+
"POT-Creation-Date: 2021-01-07 05:06+0000\n"
2221
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
2322
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
2423
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -53,14 +52,14 @@ msgstr ""
5352
#: ../../c-api/bytes.rst:27
5453
msgid ""
5554
"Return true if the object *o* is a bytes object or an instance of a subtype "
56-
"of the bytes type."
57-
msgstr "如果对象 *o* 是字节对象或字节类型的子类型的实例,则返回 true。"
55+
"of the bytes type. This function always succeeds."
56+
msgstr ""
5857

5958
#: ../../c-api/bytes.rst:33
6059
msgid ""
6160
"Return true if the object *o* is a bytes object, but not an instance of a "
62-
"subtype of the bytes type."
63-
msgstr "如果对象 *o* 是字节对象,但不是字节类型子类型的实例,则返回 true。"
61+
"subtype of the bytes type. This function always succeeds."
62+
msgstr ""
6463

6564
#: ../../c-api/bytes.rst:39
6665
msgid ""

c-api/capsule.po

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
# Translators:
77
# Shengjing Zhu <[email protected]>, 2019
88
# Trim21 <[email protected]>, 2019
9-
# RSNOW <[email protected]>, 2019
109
# Freesand Leo <[email protected]>, 2020
1110
#
1211
#, fuzzy
1312
msgid ""
1413
msgstr ""
1514
"Project-Id-Version: Python 3.9\n"
1615
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
16+
"POT-Creation-Date: 2021-01-07 05:06+0000\n"
1817
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
1918
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
2019
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -57,20 +56,22 @@ msgid ""
5756
msgstr "参阅 :c:func:`PyCapsule_New` 来获取 PyCapsule_Destructor 返回值的语义。"
5857

5958
#: ../../c-api/capsule.rst:37
60-
msgid "Return true if its argument is a :c:type:`PyCapsule`."
61-
msgstr "如果参数是一个 :c:type:`PyCapsule` 则返回 True"
59+
msgid ""
60+
"Return true if its argument is a :c:type:`PyCapsule`. This function always "
61+
"succeeds."
62+
msgstr ""
6263

63-
#: ../../c-api/capsule.rst:42
64+
#: ../../c-api/capsule.rst:43
6465
msgid ""
6566
"Create a :c:type:`PyCapsule` encapsulating the *pointer*. The *pointer* "
6667
"argument may not be ``NULL``."
6768
msgstr "创建一个封装了 *pointer* 的 :c:type:`PyCapsule`。 *pointer* 参考可以不为 ``NULL``。"
6869

69-
#: ../../c-api/capsule.rst:45
70+
#: ../../c-api/capsule.rst:46
7071
msgid "On failure, set an exception and return ``NULL``."
7172
msgstr "在失败时设置一个异常并返回 ``NULL``。"
7273

73-
#: ../../c-api/capsule.rst:47
74+
#: ../../c-api/capsule.rst:48
7475
msgid ""
7576
"The *name* string may either be ``NULL`` or a pointer to a valid C string. "
7677
"If non-``NULL``, this string must outlive the capsule. (Though it is "
@@ -79,13 +80,13 @@ msgstr ""
7980
"字符串 *name* 可以是 ``NULL`` 或是一个指向有效的 C 字符串的指针。 如果不为 ``NULL``,则此字符串必须比 capsule "
8081
"长(虽然也允许在 *destructor* 中释放它。)"
8182

82-
#: ../../c-api/capsule.rst:51
83+
#: ../../c-api/capsule.rst:52
8384
msgid ""
8485
"If the *destructor* argument is not ``NULL``, it will be called with the "
8586
"capsule as its argument when it is destroyed."
8687
msgstr "如果 *destructor* 参数不为 ``NULL``,则当它被销毁时将附带 capsule 作为参数来调用。"
8788

88-
#: ../../c-api/capsule.rst:54
89+
#: ../../c-api/capsule.rst:55
8990
msgid ""
9091
"If this capsule will be stored as an attribute of a module, the *name* "
9192
"should be specified as ``modulename.attributename``. This will enable other"
@@ -94,13 +95,13 @@ msgstr ""
9495
"如果此 capsule 将被保存为一个模块的属性,则 *name* 应当被指定为 ``modulename.attributename``。 "
9596
"这将允许其他模块使用 :c:func:`PyCapsule_Import` 来导入此 capsule。"
9697

97-
#: ../../c-api/capsule.rst:61
98+
#: ../../c-api/capsule.rst:62
9899
msgid ""
99100
"Retrieve the *pointer* stored in the capsule. On failure, set an exception "
100101
"and return ``NULL``."
101102
msgstr "提取保存在 capsule 中的 *pointer*。 在失败时设置一个异常并返回 ``NULL``。"
102103

103-
#: ../../c-api/capsule.rst:64
104+
#: ../../c-api/capsule.rst:65
104105
msgid ""
105106
"The *name* parameter must compare exactly to the name stored in the capsule."
106107
" If the name stored in the capsule is ``NULL``, the *name* passed in must "
@@ -110,13 +111,13 @@ msgstr ""
110111
"*name* 形参必须与保存在 capsule 中的名称进行精确比较。 如果保存在 capsule 中的名称为 ``NULL``,则传入的 *name*"
111112
" 也必须为 ``NULL``。 Python 会使用 C 函数 :c:func:`strcmp` 来比较 capsule 名称。"
112113

113-
#: ../../c-api/capsule.rst:72
114+
#: ../../c-api/capsule.rst:73
114115
msgid ""
115116
"Return the current destructor stored in the capsule. On failure, set an "
116117
"exception and return ``NULL``."
117118
msgstr "返回保存在 capsule 中的当前析构器。 在失败时设置一个异常并返回 ``NULL``。"
118119

119-
#: ../../c-api/capsule.rst:75
120+
#: ../../c-api/capsule.rst:76
120121
msgid ""
121122
"It is legal for a capsule to have a ``NULL`` destructor. This makes a "
122123
"``NULL`` return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
@@ -125,13 +126,13 @@ msgstr ""
125126
"capsule 具有 ``NULL`` 析构器是合法的。 这会使得 ``NULL`` 返回码有些歧义;请使用 "
126127
":c:func:`PyCapsule_IsValid` 或 :c:func:`PyErr_Occurred` 来消除歧义。"
127128

128-
#: ../../c-api/capsule.rst:82
129+
#: ../../c-api/capsule.rst:83
129130
msgid ""
130131
"Return the current context stored in the capsule. On failure, set an "
131132
"exception and return ``NULL``."
132133
msgstr "返回保存在 capsule 中的当前上下文。 在失败时设置一个异常并返回 ``NULL``。"
133134

134-
#: ../../c-api/capsule.rst:85
135+
#: ../../c-api/capsule.rst:86
135136
msgid ""
136137
"It is legal for a capsule to have a ``NULL`` context. This makes a ``NULL``"
137138
" return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
@@ -140,13 +141,13 @@ msgstr ""
140141
"capsule 具有 ``NULL`` 上下文是全法的。 这会使得 ``NULL`` 返回码有些歧义;请使用 "
141142
":c:func:`PyCapsule_IsValid` 或 :c:func:`PyErr_Occurred` 来消除歧义。"
142143

143-
#: ../../c-api/capsule.rst:92
144+
#: ../../c-api/capsule.rst:93
144145
msgid ""
145146
"Return the current name stored in the capsule. On failure, set an exception"
146147
" and return ``NULL``."
147148
msgstr "返回保存在 capsule 中的当前名称。 在失败时设置一个异常并返回 ``NULL``。"
148149

149-
#: ../../c-api/capsule.rst:95
150+
#: ../../c-api/capsule.rst:96
150151
msgid ""
151152
"It is legal for a capsule to have a ``NULL`` name. This makes a ``NULL`` "
152153
"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or "
@@ -155,7 +156,7 @@ msgstr ""
155156
"capsule 具有 ``NULL`` 名称是合法的。 这会使得 ``NULL`` 返回码有些歧义;请使用 "
156157
":c:func:`PyCapsule_IsValid` 或 :c:func:`PyErr_Occurred` 来消除歧义。"
157158

158-
#: ../../c-api/capsule.rst:102
159+
#: ../../c-api/capsule.rst:103
159160
msgid ""
160161
"Import a pointer to a C object from a capsule attribute in a module. The "
161162
"*name* parameter should specify the full name to the attribute, as in "
@@ -169,13 +170,13 @@ msgstr ""
169170
":c:func:`PyImport_ImportModuleNoBlock`)。 如果 *no_block* 为假值,则以传统模式导入模块 (使用 "
170171
":c:func:`PyImport_ImportModule`)。"
171172

172-
#: ../../c-api/capsule.rst:109
173+
#: ../../c-api/capsule.rst:110
173174
msgid ""
174175
"Return the capsule's internal *pointer* on success. On failure, set an "
175176
"exception and return ``NULL``."
176177
msgstr "成功时返回 capsule 的内部 *指针*。 在失败时设置一个异常并返回 ``NULL``。"
177178

178-
#: ../../c-api/capsule.rst:115
179+
#: ../../c-api/capsule.rst:116
179180
msgid ""
180181
"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
181182
"non-``NULL``, passes :c:func:`PyCapsule_CheckExact`, has a non-``NULL`` "
@@ -187,7 +188,7 @@ msgstr ""
187188
":c:func:`PyCapsule_CheckExact`,在其中存储一个不为 ``NULL`` 的指针,并且其内部名称与 *name* 形参相匹配。"
188189
" (请参阅 :c:func:`PyCapsule_GetPointer` 了解如何对 capsule 名称进行比较的有关信息。)"
189190

190-
#: ../../c-api/capsule.rst:121
191+
#: ../../c-api/capsule.rst:122
191192
msgid ""
192193
"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
193194
"to any of the accessors (any function starting with :c:func:`PyCapsule_Get`)"
@@ -196,27 +197,27 @@ msgstr ""
196197
"换句话说,如果 :c:func:`PyCapsule_IsValid` 返回真值,则任何对访问器(以 :c:func:`PyCapsule_Get` "
197198
"开头的任何函数)的调用都保证会成功。"
198199

199-
#: ../../c-api/capsule.rst:125
200+
#: ../../c-api/capsule.rst:126
200201
msgid ""
201202
"Return a nonzero value if the object is valid and matches the name passed "
202203
"in. Return ``0`` otherwise. This function will not fail."
203204
msgstr "如果对象有效并且匹配传入的名称则返回非零值。 否则返回 ``0``。 此函数一定不会失败。"
204205

205-
#: ../../c-api/capsule.rst:131
206+
#: ../../c-api/capsule.rst:132
206207
msgid "Set the context pointer inside *capsule* to *context*."
207208
msgstr "将 *capsule* 内部的上下文指针设为 *context*。"
208209

209-
#: ../../c-api/capsule.rst:133 ../../c-api/capsule.rst:140
210-
#: ../../c-api/capsule.rst:149 ../../c-api/capsule.rst:157
210+
#: ../../c-api/capsule.rst:134 ../../c-api/capsule.rst:141
211+
#: ../../c-api/capsule.rst:150 ../../c-api/capsule.rst:158
211212
msgid ""
212213
"Return ``0`` on success. Return nonzero and set an exception on failure."
213214
msgstr "成功时返回 ``0``。 失败时返回非零值并设置一个异常。"
214215

215-
#: ../../c-api/capsule.rst:138
216+
#: ../../c-api/capsule.rst:139
216217
msgid "Set the destructor inside *capsule* to *destructor*."
217218
msgstr "将 *capsule* 内部的析构器设为 *destructor*。"
218219

219-
#: ../../c-api/capsule.rst:145
220+
#: ../../c-api/capsule.rst:146
220221
msgid ""
221222
"Set the name inside *capsule* to *name*. If non-``NULL``, the name must "
222223
"outlive the capsule. If the previous *name* stored in the capsule was not "
@@ -225,7 +226,7 @@ msgstr ""
225226
"将 *capsule* 内部的名称设为 *name*。 如果不为 ``NULL``,则名称的存在期必须比 capsule 更长。 如果之前保存在 "
226227
"capsule 中的 *name* 不为 ``NULL``,则不会尝试释放它。"
227228

228-
#: ../../c-api/capsule.rst:154
229+
#: ../../c-api/capsule.rst:155
229230
msgid ""
230231
"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
231232
"``NULL``."

c-api/cell.po

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.9\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
15+
"POT-Creation-Date: 2021-01-07 05:06+0000\n"
1616
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
1717
"Last-Translator: Freesand Leo <[email protected]>, 2019\n"
1818
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -52,26 +52,28 @@ msgid "The type object corresponding to cell objects."
5252
msgstr "与 Cell 对象对应的类型对​​象。"
5353

5454
#: ../../c-api/cell.rst:30
55-
msgid "Return true if *ob* is a cell object; *ob* must not be ``NULL``."
56-
msgstr "如果 *ob* 是一个 cell 对象则返回真值;*ob* 必须不为 ``NULL``。"
55+
msgid ""
56+
"Return true if *ob* is a cell object; *ob* must not be ``NULL``. This "
57+
"function always succeeds."
58+
msgstr ""
5759

58-
#: ../../c-api/cell.rst:35
60+
#: ../../c-api/cell.rst:36
5961
msgid ""
6062
"Create and return a new cell object containing the value *ob*. The parameter"
6163
" may be ``NULL``."
6264
msgstr "创建并返回一个包含值 *ob* 的新 cell 对象。形参可以为 ``NULL``。"
6365

64-
#: ../../c-api/cell.rst:41
66+
#: ../../c-api/cell.rst:42
6567
msgid "Return the contents of the cell *cell*."
6668
msgstr "返回 cell 对象 *cell* 的内容。"
6769

68-
#: ../../c-api/cell.rst:46
70+
#: ../../c-api/cell.rst:47
6971
msgid ""
7072
"Return the contents of the cell *cell*, but without checking that *cell* is "
7173
"non-``NULL`` and a cell object."
7274
msgstr "返回 cell 对象 *cell* 的内容,但是不检测 *cell* 是否非 ``NULL`` 并且为一个 cell 对象。"
7375

74-
#: ../../c-api/cell.rst:52
76+
#: ../../c-api/cell.rst:53
7577
msgid ""
7678
"Set the contents of the cell object *cell* to *value*. This releases the "
7779
"reference to any current content of the cell. *value* may be ``NULL``. "
@@ -81,7 +83,7 @@ msgstr ""
8183
"将 cell 对象 *cell* 的内容设为 *value*。 这将释放任何对 cell 对象当前内容的引用。 *value* 可以为 "
8284
"``NULL``。 *cell* 必须为非 ``NULL``;如果它不是一个 cell 对象则将返回 ``-1``。 如果设置成功则将返回 ``0``。"
8385

84-
#: ../../c-api/cell.rst:60
86+
#: ../../c-api/cell.rst:61
8587
msgid ""
8688
"Sets the value of the cell object *cell* to *value*. No reference counts "
8789
"are adjusted, and no checks are made for safety; *cell* must be non-``NULL``"

0 commit comments

Comments
 (0)