@@ -255,12 +255,16 @@ msgid ""
255255"specified encoding (for example, specifying a *cte* of ``7bit`` for an input"
256256" that contains non-ASCII values), raise a :exc:`ValueError`."
257257msgstr ""
258+ "如果设置了 *cte*,则使用指定的内容传输编码格式对有效载荷进行编码,并将 :mailheader:`Content-Transfer-"
259+ "Encoding` 标头设为该值。 可能的 *cte* 值有 ``quoted-printable``, ``base64``, ``7bit``, "
260+ "``8bit`` 和 ``binary``。 如果输入无法以指定的编码格式被编码 (例如,对于包含非 ASCII 值的输入指定 *cte* 值为 "
261+ "``7bit``),则会引发 :exc:`ValueError`。"
258262
259263#: ../../library/email.contentmanager.rst:158
260264msgid ""
261265"For ``str`` objects, if *cte* is not set use heuristics to determine the "
262266"most compact encoding."
263- msgstr ""
267+ msgstr "对于 ``str`` 对象,如果 *cte* 未设置则会使用启发方式来确定最紧凑的编码格式。 "
264268
265269#: ../../library/email.contentmanager.rst:160
266270msgid ""
@@ -270,13 +274,19 @@ msgid ""
270274"body``. For ``message/rfc822``, use ``8bit`` if *cte* is not specified. "
271275"For all other values of *subtype*, use ``7bit``."
272276msgstr ""
277+ "对于 :class:`~email.message.EmailMessage`,按照 :rfc:`2046`,如果为 *subtype* "
278+ "``rfc822`` 请求的 *cte* 为 ``quoted-printable`` 或 ``base64`` ,而为 ``7bit`` 以外的任何 "
279+ "*cte* 为 *subtype* ``external-body`` 则会引发一个错误。 对于 ``message/rfc822``,如果 *cte*"
280+ " 未指定则会使用 ``8bit``。 对于所有其他 *subtype* 值,都会使用 ``7bit``。"
273281
274282#: ../../library/email.contentmanager.rst:167
275283msgid ""
276284"A *cte* of ``binary`` does not actually work correctly yet. The "
277285"``EmailMessage`` object as modified by ``set_content`` is correct, but "
278286":class:`~email.generator.BytesGenerator` does not serialize it correctly."
279287msgstr ""
288+ "*cte* 值为 ``binary`` 实际上还不能正确工作。 由 ``set_content`` 所修改的 ``EmailMessage`` "
289+ "对象是正确的,但 :class:`~email.generator.BytesGenerator` 不会正确地将其序列化。"
280290
281291#: ../../library/email.contentmanager.rst:172
282292msgid ""
0 commit comments