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

Skip to content

Commit b76aa89

Browse files
[po] auto sync
1 parent a708541 commit b76aa89

5 files changed

Lines changed: 27 additions & 6 deletions

File tree

c-api/conversion.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ msgid ""
7070
"into str. Both functions require that ``str != NULL``, ``size > 0`` and "
7171
"``format != NULL``."
7272
msgstr ""
73+
"包装器会确保 ``str[size-1]`` 在返回时始终为 ``'\\0'``。 它们从不写入超过 *size* 个字节 (包括末尾的 "
74+
"``'\\0'``) 到字符串。 两个函数都要求 ``str != NULL``, ``size > 0`` 和 ``format != NULL``。"
7375

7476
#: ../../c-api/conversion.rst:33
7577
msgid ""
@@ -92,20 +94,26 @@ msgid ""
9294
"characters were written to *str* (excluding the trailing ``'\\0'`` byte at "
9395
"``str[rv]``)."
9496
msgstr ""
97+
"当 ``0 <= rv < size`` 时,输出转换即成功并将 *rv* 个字符写入到 *str* (不包括末尾 ``str[rv]`` 位置的 "
98+
"``'\\0'`` 字节)。"
9599

96100
#: ../../c-api/conversion.rst:43
97101
msgid ""
98102
"When ``rv >= size``, the output conversion was truncated and a buffer with "
99103
"``rv + 1`` bytes would have been needed to succeed. ``str[size-1]`` is "
100104
"``'\\0'`` in this case."
101105
msgstr ""
106+
"当 ``rv >= size`` 时,输出转换会被截断并且需要一个具有 ``rv + 1`` 字节的缓冲区才能成功执行。 在此情况下 "
107+
"``str[size-1]`` 为 ``'\\0'``。"
102108

103109
#: ../../c-api/conversion.rst:47
104110
msgid ""
105111
"When ``rv < 0``, \"something bad happened.\" ``str[size-1]`` is ``'\\0'`` in"
106112
" this case too, but the rest of *str* is undefined. The exact cause of the "
107113
"error depends on the underlying platform."
108114
msgstr ""
115+
"当 ``rv < 0`` 时,\"会发生不好的事情。\" 在此情况下 ``str[size-1]`` 也为 ``'\\0'``,但 *str* "
116+
"的其余部分是未定义的。 错误的确切原因取决于底层平台。"
109117

110118
#: ../../c-api/conversion.rst:51
111119
msgid ""

library/dis.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Translators:
77
# SKY H. <[email protected]>, 2018
88
# Meng Du <[email protected]>, 2019
9-
# Freesand Leo <[email protected]>, 2020
9+
# Freesand Leo <[email protected]>, 2021
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2021-02-20 05:29+0000\n"
1717
"PO-Revision-Date: 2017-02-16 23:06+0000\n"
18-
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
18+
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
1919
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -412,7 +412,7 @@ msgstr "将第二个和第三个堆栈项向上提升一个位置,顶项移动
412412
msgid ""
413413
"Lifts second, third and fourth stack items one position up, moves top down "
414414
"to position four."
415-
msgstr ""
415+
msgstr "将第二个、第三个和第四个堆栈项向上提升一个位置,将顶项移动到第四个位置。"
416416

417417
#: ../../library/dis.rst:357
418418
msgid "Duplicates the reference on top of the stack."

library/email.compat32-message.po

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Translators:
77
# Kevin Deng <[email protected]>, 2020
8-
# Freesand Leo <[email protected]>, 2020
8+
# Freesand Leo <[email protected]>, 2021
99
#
1010
#, fuzzy
1111
msgid ""
@@ -14,7 +14,7 @@ msgstr ""
1414
"Report-Msgid-Bugs-To: \n"
1515
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
1616
"PO-Revision-Date: 2017-02-16 23:07+0000\n"
17-
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
17+
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
1818
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1919
"MIME-Version: 1.0\n"
2020
"Content-Type: text/plain; charset=UTF-8\n"
@@ -27,6 +27,8 @@ msgid ""
2727
":mod:`email.message.Message`: Representing an email message using the "
2828
":data:`~email.policy.compat32` API"
2929
msgstr ""
30+
":mod:`email.message.Message`: 使用 :data:`~email.policy.compat32` API "
31+
"来表示电子邮件消息"
3032

3133
#: ../../library/email.compat32-message.rst:12
3234
msgid ""

library/email.contentmanager.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,32 +296,41 @@ msgid ""
296296
" *filename* is also not specified, do not add the header. The only valid "
297297
"values for *disposition* are ``attachment`` and ``inline``."
298298
msgstr ""
299+
"如果设置了 *disposition*,它会被用作 :mailheader:`Content-Disposition` 标头的值。 "
300+
"如果未设置,并且指定了 *filename*,则添加值为 ``attachment`` 的标头。 如果未设置 *disposition* 并且也未指定 "
301+
"*filename*,则不添加标头。 *disposition* 的有效值仅有 ``attachment`` 和 ``inline``。"
299302

300303
#: ../../library/email.contentmanager.rst:179
301304
msgid ""
302305
"If *filename* is specified, use it as the value of the ``filename`` "
303306
"parameter of the :mailheader:`Content-Disposition` header."
304307
msgstr ""
308+
"如果设置了 *filename*,则将其用作 :mailheader:`Content-Disposition` 标头的 ``filename`` "
309+
"参数的值。"
305310

306311
#: ../../library/email.contentmanager.rst:182
307312
msgid ""
308313
"If *cid* is specified, add a :mailheader:`Content-ID` header with *cid* as "
309314
"its value."
310-
msgstr ""
315+
msgstr "如果设置了 *cid*,则添加一个 :mailheader:`Content-ID` 标头并将其值设为 *cid*。"
311316

312317
#: ../../library/email.contentmanager.rst:185
313318
msgid ""
314319
"If *params* is specified, iterate its ``items`` method and use the resulting"
315320
" ``(key, value)`` pairs to set additional parameters on the :mailheader"
316321
":`Content-Type` header."
317322
msgstr ""
323+
"如果设置了 *params*,则迭代其 ``items`` 方法并使用输出的 ``(key, value)`` 结果对在 :mailheader"
324+
":`Content-Type` 标头上设置附加参数。"
318325

319326
#: ../../library/email.contentmanager.rst:189
320327
msgid ""
321328
"If *headers* is specified and is a list of strings of the form ``headername:"
322329
" headervalue`` or a list of ``header`` objects (distinguished from strings "
323330
"by having a ``name`` attribute), add the headers to *msg*."
324331
msgstr ""
332+
"如果设置了 *headers* 并且为 ``headername: headervalue`` 形式的字符串的列表或为 ``header`` "
333+
"对象的列表(通过一个 ``name`` 属性与字符串相区分),则将标头添加到 *msg*。"
325334

326335
#: ../../library/email.contentmanager.rst:196
327336
msgid "Footnotes"

tutorial/controlflow.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ msgid ""
287287
"another function, or calls itself recursively, a new local symbol table is "
288288
"created for that call."
289289
msgstr ""
290+
"在调用函数时会将实际参数(实参)引入到被调用函数的局部符号表中;因此,实参是使用 *按值调用* 来传递的(其中的 *值* 始终是对象的 *引用* "
291+
"而不是对象的值)。 [#]_ 当一个函数调用另外一个函数时,会为该调用创建一个新的局部符号表。"
290292

291293
#: ../../tutorial/controlflow.rst:301
292294
msgid ""

0 commit comments

Comments
 (0)