@@ -608,6 +608,9 @@ msgid ""
608608" A :exc:`~email.errors.HeaderParseError` is raised if the message object "
609609"has no :mailheader:`Content-Type` header."
610610msgstr ""
611+ "将 :mailheader:`Content-Type` 头字段的 ``boundary`` 参数设置为 *boundary* 。 "
612+ ":meth:`set_boundary` 方法永远都会在必要的时候为 *boundary* 添加引号。如果信息对象中没有 :mailheader"
613+ ":`Content-Type` 头字段,抛出 :exc:`~email.errors.HeaderParseError` 异常。"
611614
612615#: ../../library/email.message.rst:424
613616msgid ""
@@ -616,20 +619,27 @@ msgid ""
616619" via :meth:`add_header`, because :meth:`set_boundary` preserves the order of"
617620" the :mailheader:`Content-Type` header in the list of headers."
618621msgstr ""
622+ "请注意使用这个方法与直接删除旧的 :mailheader:`Content-Type` 头字段然后使用 :meth:`add_header` "
623+ "方法添加一个带有新边界值参数的 :mailheader:`Content-Type` 头字段有细微差距。 :meth:`set_boundary` "
624+ "方法会保留 :mailheader:`Content-Type` 头字段在原信息头当中的位置。"
619625
620626#: ../../library/email.message.rst:433
621627msgid ""
622628"Return the ``charset`` parameter of the :mailheader:`Content-Type` header, "
623629"coerced to lower case. If there is no :mailheader:`Content-Type` header, or"
624630" if that header has no ``charset`` parameter, *failobj* is returned."
625631msgstr ""
632+ "返回 :mailheader:`Content-Type` 头字段中的 ``charset`` "
633+ "参数,强制小写。如果字段当中没有此参数,或者这个字段压根不存在,返回 *failobj* 。"
626634
627635#: ../../library/email.message.rst:440
628636msgid ""
629637"Return a list containing the character set names in the message. If the "
630638"message is a :mimetype:`multipart`, then the list will contain one element "
631639"for each subpart in the payload, otherwise, it will be a list of length 1."
632640msgstr ""
641+ "返回一个包含了信息内所有字符集名字的列表。如果信息是 :mimetype:`multipart` "
642+ "类型的,那么列表当中的每一项都对应其负载的子部分的字符集名字。否则,该列表是一个长度为1的列表。"
633643
634644#: ../../library/email.message.rst:444
635645msgid ""
@@ -639,18 +649,25 @@ msgid ""
639649"``charset`` parameter, or is not of the :mimetype:`text` main MIME type, "
640650"then that item in the returned list will be *failobj*."
641651msgstr ""
652+ "列表当中的每一项都是一个字符串,其值为对应子部分的 :mailheader:`Content-Type` 头字段的 ``charset`` "
653+ "参数值。如果该子部分没有此头字段,或者没有此参数,或者其主要 MIME 类型并非 :mimetype:`text` ,那么列表中的那一项即为 "
654+ "*failobj* 。"
642655
643656#: ../../library/email.message.rst:453
644657msgid ""
645658"Return ``True`` if there is a :mailheader:`Content-Disposition` header and "
646659"its (case insensitive) value is ``attachment``, ``False`` otherwise."
647660msgstr ""
661+ "如果信息头当中存在一个名为 :mailheader:`Content-Disposition` 的字段,且该字段的值为 ``attachment`` "
662+ "(大小写无关),返回 ``True`` 。否则,返回 ``False`` 。"
648663
649664#: ../../library/email.message.rst:456
650665msgid ""
651666"is_attachment is now a method instead of a property, for consistency with "
652667":meth:`~email.message.Message.is_multipart`."
653668msgstr ""
669+ "为了与 :meth:`~email.message.Message.is_multipart` 方法一致,is_attachment "
670+ "现在是一个方法,不再是属性了。"
654671
655672#: ../../library/email.message.rst:463
656673msgid ""
0 commit comments