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

Skip to content

Commit 971d1e6

Browse files
[po] auto sync
1 parent 35c6e1e commit 971d1e6

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

library/email.compat32-message.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,9 @@ msgid ""
725725
" A :exc:`~email.errors.HeaderParseError` is raised if the message object "
726726
"has no :mailheader:`Content-Type` header."
727727
msgstr ""
728+
"将 :mailheader:`Content-Type` 头字段的 ``boundary`` 参数设置为 *boundary* 。 "
729+
":meth:`set_boundary` 方法永远都会在必要的时候为 *boundary* 添加引号。如果信息对象中没有 :mailheader"
730+
":`Content-Type` 头字段,抛出 :exc:`~email.errors.HeaderParseError` 异常。"
728731

729732
#: ../../library/email.compat32-message.rst:611
730733
msgid ""
@@ -742,6 +745,8 @@ msgid ""
742745
"coerced to lower case. If there is no :mailheader:`Content-Type` header, or"
743746
" if that header has no ``charset`` parameter, *failobj* is returned."
744747
msgstr ""
748+
"返回 :mailheader:`Content-Type` 头字段中的 ``charset`` "
749+
"参数,强制小写。如果字段当中没有此参数,或者这个字段压根不存在,返回 *failobj* 。"
745750

746751
#: ../../library/email.compat32-message.rst:625
747752
msgid ""
@@ -756,6 +761,8 @@ msgid ""
756761
"message is a :mimetype:`multipart`, then the list will contain one element "
757762
"for each subpart in the payload, otherwise, it will be a list of length 1."
758763
msgstr ""
764+
"返回一个包含了信息内所有字符集名字的列表。如果信息是 :mimetype:`multipart` "
765+
"类型的,那么列表当中的每一项都对应其负载的子部分的字符集名字。否则,该列表是一个长度为1的列表。"
759766

760767
#: ../../library/email.compat32-message.rst:635
761768
msgid ""

library/email.message.po

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,9 @@ msgid ""
608608
" A :exc:`~email.errors.HeaderParseError` is raised if the message object "
609609
"has no :mailheader:`Content-Type` header."
610610
msgstr ""
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
613616
msgid ""
@@ -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."
618621
msgstr ""
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
621627
msgid ""
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."
625631
msgstr ""
632+
"返回 :mailheader:`Content-Type` 头字段中的 ``charset`` "
633+
"参数,强制小写。如果字段当中没有此参数,或者这个字段压根不存在,返回 *failobj* 。"
626634

627635
#: ../../library/email.message.rst:440
628636
msgid ""
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."
632640
msgstr ""
641+
"返回一个包含了信息内所有字符集名字的列表。如果信息是 :mimetype:`multipart` "
642+
"类型的,那么列表当中的每一项都对应其负载的子部分的字符集名字。否则,该列表是一个长度为1的列表。"
633643

634644
#: ../../library/email.message.rst:444
635645
msgid ""
@@ -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*."
641651
msgstr ""
652+
"列表当中的每一项都是一个字符串,其值为对应子部分的 :mailheader:`Content-Type` 头字段的 ``charset`` "
653+
"参数值。如果该子部分没有此头字段,或者没有此参数,或者其主要 MIME 类型并非 :mimetype:`text` ,那么列表中的那一项即为 "
654+
"*failobj* 。"
642655

643656
#: ../../library/email.message.rst:453
644657
msgid ""
645658
"Return ``True`` if there is a :mailheader:`Content-Disposition` header and "
646659
"its (case insensitive) value is ``attachment``, ``False`` otherwise."
647660
msgstr ""
661+
"如果信息头当中存在一个名为 :mailheader:`Content-Disposition` 的字段,且该字段的值为 ``attachment`` "
662+
"(大小写无关),返回 ``True`` 。否则,返回 ``False`` 。"
648663

649664
#: ../../library/email.message.rst:456
650665
msgid ""
651666
"is_attachment is now a method instead of a property, for consistency with "
652667
":meth:`~email.message.Message.is_multipart`."
653668
msgstr ""
669+
"为了与 :meth:`~email.message.Message.is_multipart` 方法一致,is_attachment "
670+
"现在是一个方法,不再是属性了。"
654671

655672
#: ../../library/email.message.rst:463
656673
msgid ""

0 commit comments

Comments
 (0)