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

Skip to content

Commit ab8a0cb

Browse files
[po] auto sync
1 parent cb872b7 commit ab8a0cb

3 files changed

Lines changed: 39 additions & 28 deletions

File tree

library/email.generator.po

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ msgid ""
330330
"instead represented in the output stream by a string derived from a template"
331331
" filled in with information about the part."
332332
msgstr ""
333+
":mod:`email.generator` 模块还提供了一个派生类 :class:`DecodedGenerator`,它类似于 "
334+
":class:`Generator` 基类,不同之处在于非 :mimetype:`text` 部分不会被序列化,而是被表示为 "
335+
"基于模板并填写了有关该部分的信息的字符串输出流的形式。"
333336

334337
#: ../../library/email.generator.rst:244
335338
msgid ""
@@ -340,54 +343,57 @@ msgid ""
340343
"*fmt* using information from the part and print the resulting filled-in "
341344
"string."
342345
msgstr ""
346+
"行为类似于 :class:`Generator`,不同之处在于对传给 :meth:`Generator.flatten` "
347+
"的消息的任何子部分,如果该子部分的主类型为 :mimetype:`text`,则打印该子部分的已解码载荷,而如果其主类型不为 "
348+
":mimetype:`text`,则不直接打印它而是使用来自该部分的信息填入字符串 *fmt* 并将填写完成的字符串打印出来。"
343349

344350
#: ../../library/email.generator.rst:251
345351
msgid ""
346352
"To fill in *fmt*, execute ``fmt % part_info``, where ``part_info`` is a "
347353
"dictionary composed of the following keys and values:"
348-
msgstr ""
354+
msgstr "要填入 *fmt*,则执行 ``fmt % part_info``,其中 ``part_info`` 是由下列键和值组成的字典:"
349355

350356
#: ../../library/email.generator.rst:254
351357
msgid "``type`` -- Full MIME type of the non-\\ :mimetype:`text` part"
352-
msgstr ""
358+
msgstr "``type`` -- 非 :mimetype:`text` 部分的完整 MIME 类型"
353359

354360
#: ../../library/email.generator.rst:256
355361
msgid "``maintype`` -- Main MIME type of the non-\\ :mimetype:`text` part"
356-
msgstr ""
362+
msgstr "``maintype`` -- 非 :mimetype:`text` 部分的主 MIME 类型"
357363

358364
#: ../../library/email.generator.rst:258
359365
msgid "``subtype`` -- Sub-MIME type of the non-\\ :mimetype:`text` part"
360-
msgstr ""
366+
msgstr "``subtype`` -- 非 :mimetype:`text` 部分的子 MIME 类型"
361367

362368
#: ../../library/email.generator.rst:260
363369
msgid "``filename`` -- Filename of the non-\\ :mimetype:`text` part"
364-
msgstr ""
370+
msgstr "``filename`` -- 非 :mimetype:`text` 部分的文件名"
365371

366372
#: ../../library/email.generator.rst:262
367373
msgid ""
368374
"``description`` -- Description associated with the non-\\ :mimetype:`text` "
369375
"part"
370-
msgstr ""
376+
msgstr "``description`` -- 与非 :mimetype:`text` 部分相关联的描述"
371377

372378
#: ../../library/email.generator.rst:264
373379
msgid ""
374380
"``encoding`` -- Content transfer encoding of the non-\\ :mimetype:`text` "
375381
"part"
376-
msgstr ""
382+
msgstr "``encoding`` -- 非 :mimetype:`text` 部分的内容转换编码格式"
377383

378384
#: ../../library/email.generator.rst:266
379385
msgid "If *fmt* is ``None``, use the following default *fmt*:"
380-
msgstr ""
386+
msgstr "如果 *fmt* 为 ``None``,则使用下列默认 *fmt*:"
381387

382388
#: ../../library/email.generator.rst:268
383389
msgid "\"[Non-text (%(type)s) part of message omitted, filename %(filename)s]\""
384-
msgstr ""
390+
msgstr "\"[忽略消息的非文本 (%(type)s) 部分,文件名 %(filename)s]\""
385391

386392
#: ../../library/email.generator.rst:270
387393
msgid ""
388394
"Optional *_mangle_from_* and *maxheaderlen* are as with the "
389395
":class:`Generator` base class."
390-
msgstr ""
396+
msgstr "可选的 *_mangle_from_* 和 *maxheaderlen* 与 :class:`Generator` 基类的相同。"
391397

392398
#: ../../library/email.generator.rst:275
393399
msgid "Footnotes"
@@ -404,3 +410,6 @@ msgid ""
404410
"original text is lost during parsing error recovery. It is a goal to fix "
405411
"these latter edge cases when possible."
406412
msgstr ""
413+
"此语句假定你使用了正确的 ``unixfrom`` 设置,并且没有用于自动调整的 :mod:`policy` 设置调用(例如 "
414+
":attr:`~email.policy.Policy.refold_source` 必须为 ``none``,这 *不是* 默认值)。 这也不是 "
415+
"100% 为真,因为如果消息不遵循 RFC 标准则有时实际原始文本的信息会在解析错误恢复时丢失。 它的目标是在可能的情况下修复这些后续边缘情况。"

library/email.policy.po

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Jerry Chen <[email protected]>, 2017
88
# ppcfish <[email protected]>, 2019
99
# cdarlint <[email protected]>, 2019
10+
# Freesand Leo <[email protected]>, 2021
1011
#
1112
#, fuzzy
1213
msgid ""
@@ -15,7 +16,7 @@ msgstr ""
1516
"Report-Msgid-Bugs-To: \n"
1617
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
1718
"PO-Revision-Date: 2017-02-16 23:09+0000\n"
18-
"Last-Translator: cdarlint <cdarling@126.com>, 2019\n"
19+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
1920
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2021
"MIME-Version: 1.0\n"
2122
"Content-Type: text/plain; charset=UTF-8\n"
@@ -25,11 +26,11 @@ msgstr ""
2526

2627
#: ../../library/email.policy.rst:2
2728
msgid ":mod:`email.policy`: Policy Objects"
28-
msgstr ""
29+
msgstr ":mod:`email.policy`: 策略对象"
2930

3031
#: ../../library/email.policy.rst:12
3132
msgid "**Source code:** :source:`Lib/email/policy.py`"
32-
msgstr ""
33+
msgstr "**源代码:** :source:`Lib/email/policy.py`"
3334

3435
#: ../../library/email.policy.rst:16
3536
msgid ""

tutorial/controlflow.po

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ msgid ""
348348
"efficient."
349349
msgstr ""
350350
"``result.append(a)`` 语句调用了列表对象 ``result`` 的 *方法* 。方法是“从属于”对象的函数,命名为 "
351-
"``obj.methodname``,其中,``obj`` 是对象(也可以是表达式), ``methodname`` "
352-
"是对象类型定义的方法名称。不同类型定义的方法不同。不同类型的方法可以有相同的名称,还不会引起歧义。(*类* 可以定义自定义对象类型和方法,详见 :ref"
353-
":`tut-classes` )示例中的方法 :meth:`append` 是为列表对象定义的;用于在列表的末尾添加新元素。本例中,它相当于 "
354-
"``result = result + [a]`` ,但更高效。"
351+
"``obj.methodname``,``obj`` 是对象(也可以是表达式),``methodname`` "
352+
"是对象类型定义的方法名。不同类型定义不同的方法,不同类型的方法名可以相同,且不会不会引起歧义。(用 *类* 可以自定义对象类型和方法,详见 :ref"
353+
":`tut-classes` )示例中的方法 :meth:`append` 是为列表对象定义的,用于在列表末尾添加新元素。本例中,该方法相当于 "
354+
"``result = result + [a]`` ,但更有效。"
355355

356356
#: ../../tutorial/controlflow.rst:359
357357
msgid "More on Defining Functions"
@@ -382,7 +382,7 @@ msgstr "该函数可以用以下方式调用:"
382382
msgid ""
383383
"giving only the mandatory argument: ``ask_ok('Do you really want to "
384384
"quit?')``"
385-
msgstr "只给出必需的参数:``ask_ok('Do you really want to quit?')``"
385+
msgstr "只给出必选参数:``ask_ok('Do you really want to quit?')``"
386386

387387
#: ../../tutorial/controlflow.rst:390
388388
msgid ""
@@ -431,7 +431,7 @@ msgstr "输出结果如下:"
431431
msgid ""
432432
"If you don't want the default to be shared between subsequent calls, you can"
433433
" write the function like this instead::"
434-
msgstr "不需要在后续调用之间共享默认值时,应以如下方式编写函数:"
434+
msgstr "不想在后续调用之间共享默认值时,应以如下方式编写函数:"
435435

436436
#: ../../tutorial/controlflow.rst:443
437437
msgid "Keyword Arguments"
@@ -442,7 +442,8 @@ msgid ""
442442
"Functions can also be called using :term:`keyword arguments <keyword "
443443
"argument>` of the form ``kwarg=value``. For instance, the following "
444444
"function::"
445-
msgstr "也可以用 ``kwarg=value`` 形式 :term:`关键字参数 <keyword argument>` 调用函数。例如:"
445+
msgstr ""
446+
"``kwarg=value`` 形式的 :term:`关键字参数 <keyword argument>` 也可以用于调用函数。函数示例如下:"
446447

447448
#: ../../tutorial/controlflow.rst:454
448449
msgid ""
@@ -455,7 +456,7 @@ msgstr ""
455456

456457
#: ../../tutorial/controlflow.rst:465
457458
msgid "but all the following calls would be invalid::"
458-
msgstr "但下面的函数调用方式都是无效的:"
459+
msgstr "以下函数调用方式都是无效的:"
459460

460461
#: ../../tutorial/controlflow.rst:472
461462
msgid ""
@@ -481,24 +482,24 @@ msgid ""
481482
"positional arguments beyond the formal parameter list. (``*name`` must "
482483
"occur before ``**name``.) For example, if we define a function like this::"
483484
msgstr ""
484-
"当存在一个形式为 ``**name`` 的最后一个形参时,它会接收一个字典 (参见 "
485-
":ref:`typesmapping`),其中包含除了与已有形参相对应的关键字参数以外的所有关键字参数。 这可以与一个形式为 "
486-
"``*name``,接收一个包含除了与已有形参列表以外的位置参数的 :ref:`元组 <tut-tuples>` 的形参 (将在下一小节介绍) 组合使用"
487-
" (``*name`` 必须出现在 ``**name`` 之前。) 例如,如果我们这样定义一个函数::"
485+
"最后一个形参为 ``**name`` 形式时,接收一个字典(详见 "
486+
":ref:`typesmapping`),该字典包含与函数中已定义形参对应之外的所有关键字参数。``**name`` 形参可以与 ``*name`` "
487+
"形参(下一小节介绍)组合使用(``*name`` 必须在 ``**name`` 前面), ``*name`` 形参接收一个 :ref:`元组 <tut-"
488+
"tuples>`,该元组包含形参列表之外的位置参数。例如,可以定义下面这样的函数:"
488489

489490
#: ../../tutorial/controlflow.rst:505
490491
msgid "It could be called like this::"
491-
msgstr "它可以像这样调用::"
492+
msgstr "该函数可以用如下方式调用:"
492493

493494
#: ../../tutorial/controlflow.rst:513
494495
msgid "and of course it would print:"
495-
msgstr "当然它会打印::"
496+
msgstr "输出结果如下:"
496497

497498
#: ../../tutorial/controlflow.rst:526
498499
msgid ""
499500
"Note that the order in which the keyword arguments are printed is guaranteed"
500501
" to match the order in which they were provided in the function call."
501-
msgstr "注意打印时关键字参数的顺序保证与调用函数时提供它们的顺序是相匹配的。"
502+
msgstr "注意,关键字参数在输出结果中的顺序与调用函数时的顺序一致。"
502503

503504
#: ../../tutorial/controlflow.rst:530
504505
msgid "Special parameters"

0 commit comments

Comments
 (0)