@@ -230,11 +230,16 @@ msgid ""
230230"example, ``is_multipart`` will return ``True`` when the :class:`Message` is "
231231"of type ``message/rfc822``.)"
232232msgstr ""
233+ "如果该消息的载荷是一个子 :class:`Message` 对象列表则返回 ``True``,否则返回 ``False``。 当 "
234+ ":meth:`is_multipart` 返回 ``False`` 时,载荷应当是一个字符串对象(有可能是一个 CTE 编码的二进制载荷)。 (请注意 "
235+ ":meth:`is_multipart` 返回 ``True`` 并不意味着 \" msg.get_content_maintype() == "
236+ "'multipart'\" 将返回 ``True``。 例如,``is_multipart`` 在 :class:`Message` 类型为 "
237+ "``message/rfc822`` 时也将返回 ``True``。)"
233238
234239#: ../../library/email.compat32-message.rst:165
235240msgid ""
236241"Set the message's envelope header to *unixfrom*, which should be a string."
237- msgstr ""
242+ msgstr "将消息的封包标头设为 *unixfrom*,这应当是一个字符串。 "
238243
239244#: ../../library/email.compat32-message.rst:170
240245msgid ""
@@ -250,6 +255,9 @@ msgid ""
250255"set the payload to a scalar object (e.g. a string), use :meth:`set_payload` "
251256"instead."
252257msgstr ""
258+ "将给定的 *payload* 添加到当前载荷中,当前载荷在该调用之前必须为 ``None`` 或是一个 :class:`Message` 对象列表。 "
259+ "在调用之后,此载荷将总是一个 :class:`Message` 对象列表。 如果你想将此载荷设为一个标量对象(如字符串),请改用 "
260+ ":meth:`set_payload`。"
253261
254262#: ../../library/email.compat32-message.rst:182
255263msgid ""
@@ -258,6 +266,9 @@ msgid ""
258266":meth:`~email.message.EmailMessage.set_content` and the related ``make`` and"
259267" ``add`` methods."
260268msgstr ""
269+ "这是一个过时的方法。 在 :class:`~email.emailmessage.EmailMessage` 类上它的功能已被 "
270+ ":meth:`~email.message.EmailMessage.set_content` 及相应的 ``make`` 和 ``add`` "
271+ "方法所替代。"
261272
262273#: ../../library/email.compat32-message.rst:190
263274msgid ""
@@ -266,6 +277,9 @@ msgid ""
266277":meth:`is_multipart` is ``False``. If the payload is a list and you mutate "
267278"the list object, you modify the message's payload in place."
268279msgstr ""
280+ "返回当前的载荷,它在 :meth:`is_multipart` 为 ``True`` 时将是一个 :class:`Message` 对象列表,在 "
281+ ":meth:`is_multipart` 为 ``False`` 时则是一个字符串。 "
282+ "如果该载荷是一个列表且你修改了这个列表对象,那么你就是原地修改了消息的载荷。"
269283
270284#: ../../library/email.compat32-message.rst:195
271285msgid ""
0 commit comments