Skip to content

Commit

Permalink
[po] auto sync
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 18, 2021
1 parent ec94956 commit f8fc280
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions library/email.generator.po
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ msgid ""
"object passed to ``flatten`` to control the message generation. See "
":mod:`email.policy` for details on what *policy* controls."
msgstr ""
"如果指定了 *policy*,则使用该策略来控制消息的生成。 如果 *policy* 为 ``None`` (默认值),则使用与传递给 "
"``flatten`` 的 :class:`~email.message.Message` 或 "
":class:`~email.message.EmailMessage` 对象相关联的策略来控制消息的生成。 请参阅 "
":mod:`email.policy` 了解有关 *policy* 所控制内容的详情。"

#: ../../library/email.generator.rst:71 ../../library/email.generator.rst:170
msgid "Added the *policy* keyword."
Expand All @@ -140,14 +144,14 @@ msgstr "添加了*policy*关键字。"
msgid ""
"The default behavior of the *mangle_from_* and *maxheaderlen* parameters is "
"to follow the policy."
msgstr ""
msgstr "*mangle_from_* 和 *maxheaderlen* 形参的默认行为是遵循策略。"

#: ../../library/email.generator.rst:79
msgid ""
"Print the textual representation of the message object structure rooted at "
"*msg* to the output file specified when the :class:`BytesGenerator` instance"
" was created."
msgstr ""
msgstr "将将以 *msg* 为根的消息对象结构体的文本表示形式打印到创建 :class:`BytesGenerator` 实例时指定的输出文件。"

#: ../../library/email.generator.rst:83
msgid ""
Expand All @@ -164,6 +168,14 @@ msgid ""
"bytes in headers using the MIME ``unknown-8bit`` character set, thus "
"rendering them RFC-compliant."
msgstr ""
"如果 :mod:`~email.policy` 选项 :attr:`~email.policy.Policy.cte_type` 为 ``8bit`` "
"(默认值),则会将未被修改的原始已解析消息中的任何标头拷贝到输出,其中会重新生成与原始数据相同的高比特位组字节数据,并保留具有它们的任何消息体部分的非 "
"ASCII :mailheader:`Content-Transfer-Encoding`。 如果 ``cte_type`` 为 "
"``7bit``,则会根据需要使用兼容 ASCII 的 :mailheader:`Content-Transfer-Encoding` "
"来转换高比特位组字节数据。 也就是说,将具有非 ASCII :mailheader:`Content-Transfer-Encoding` "
"(:mailheader:`Content-Transfer-Encoding: 8bit`) 的部分转换为兼容 ASCII 的 :mailheader"
":`Content-Transfer-Encoding`,并使用 MIME ``unknown-8bit`` 字符集来编码标头中不符合 RFC 的非 "
"ASCII 字节数据,以使其符合 RFC。"

#: ../../library/email.generator.rst:100 ../../library/email.generator.rst:193
msgid ""
Expand All @@ -173,6 +185,9 @@ msgid ""
"header, craft a standard one. The default is ``False``. Note that for "
"subparts, no envelope header is ever printed."
msgstr ""
"如果 *unixfrom* 为 ``True``,则会在根消息对象的第一个 :rfc:`5322` 标头之前打印 Unix mailbox 格式 (参见"
" :mod:`mailbox`) 所使用的封包标头分隔符。 如果根对象没有封包标头,则会创建一个标准标头。 默认值为 ``False``。 "
"请注意对于子部分来说,不会打印任何封包标头。"

#: ../../library/email.generator.rst:106 ../../library/email.generator.rst:199
msgid ""
Expand Down

0 comments on commit f8fc280

Please sign in to comment.