@@ -112,7 +112,7 @@ msgstr "以下是 :class:`Header` 类描述:"
112112msgid ""
113113"Create a MIME-compliant header that can contain strings in different "
114114"character sets."
115- msgstr ""
115+ msgstr "创建符合 MIME 要求的标头,其中可包含不同字符集的字符串。 "
116116
117117#: ../../library/email.header.rst:65
118118msgid ""
@@ -121,6 +121,9 @@ msgid ""
121121":meth:`append` method calls. *s* may be an instance of :class:`bytes` or "
122122":class:`str`, but see the :meth:`append` documentation for semantics."
123123msgstr ""
124+ "可选的 *s* 是初始标头值。 如果为 ``None`` (默认值),则表示初始标头值未设置。 你可以在稍后使用 :meth:`append` "
125+ "方法调用向标头添加新值。 *s* 可以是 :class:`bytes` 或 :class:`str` 的实例,注意参阅 :meth:`append` "
126+ "文档了解相关语义。"
124127
125128#: ../../library/email.header.rst:70
126129msgid ""
@@ -131,6 +134,9 @@ msgid ""
131134"default), the ``us-ascii`` character set is used both as *s*'s initial "
132135"charset and as the default for subsequent :meth:`append` calls."
133136msgstr ""
137+ "可选的 *charset* 用于两种目的:它的含义与 :meth:`append` 方法的 *charset* 参数相同。 它还会为所有省略了 "
138+ "*charset* 参数的后续 :meth:`append` 调用设置默认字符集。 如果 *charset* 在构造器中未提供(默认设置),则会将 "
139+ "``us-ascii`` 字符集用作 *s* 的初始字符集以及后续 :meth:`append` 调用的默认字符集。"
134140
135141#: ../../library/email.header.rst:77
136142msgid ""
@@ -141,6 +147,10 @@ msgid ""
141147"default value for *header_name* is ``None``, meaning it is not taken into "
142148"account for the first line of a long, split header."
143149msgstr ""
150+ "通过 *maxlinelen* 可以显式指定最大行长度。 要将第一行拆分为更短的值 (以适应未被包括在to account for the field"
151+ " header which isn't included in *s* 中的字段标头,例如 "
152+ ":mailheader:`Subject`),则将字段名称作为 *header_name* 传入。 *maxlinelen* 默认值为 76,而 "
153+ "*header_name* 默认值为 ``None``,表示不考虑拆分超长标头的第一行。"
144154
145155#: ../../library/email.header.rst:84
146156msgid ""
@@ -149,11 +159,13 @@ msgid ""
149159"character will be prepended to continuation lines. *continuation_ws* "
150160"defaults to a single space character."
151161msgstr ""
162+ "可选的 *continuation_ws* 必须为符合 :rfc:`2822` 的折叠用空白符,通常是空格符或硬制表符。 "
163+ "这个字符将被加缀至连续行的开头。 *continuation_ws* 默认为一个空格符。"
152164
153165#: ../../library/email.header.rst:89
154166msgid ""
155167"Optional *errors* is passed straight through to the :meth:`append` method."
156- msgstr ""
168+ msgstr "可选的 *errors* 会被直接传递给 :meth:`append` 方法。 "
157169
158170#: ../../library/email.header.rst:94
159171msgid "Append the string *s* to the MIME header."
0 commit comments