@@ -437,13 +437,18 @@ msgid ""
437437"method should return the ``(name, value)`` tuple that is to be stored in the"
438438" ``Message`` to represent the header."
439439msgstr ""
440+ "当一个应用通过程序代码修改 ``Message`` (而不是由解析器创建 ``Message``) 时,email "
441+ "包会调用此方法并附带应用程序所提供的名称和值。 此方法应当返回 ``(name, value)`` 元组以保存至 ``Message`` "
442+ "中用来表示标头。"
440443
441444#: ../../library/email.policy.rst:321
442445msgid ""
443446"If an implementation wishes to retain compatibility with the existing email "
444447"package policies, the *name* and *value* should be strings or string "
445448"subclasses that do not change the content of the passed in arguments."
446449msgstr ""
450+ "如果一个实现希望保持与现有 email 包策略的兼容性,则 *name* 和 *value* "
451+ "应当为字符串或字符串的子类,它们不会修改在参数中传入的内容。"
447452
448453#: ../../library/email.policy.rst:331
449454msgid ""
@@ -455,12 +460,15 @@ msgid ""
455460"method is passed the specific name and value of the header destined to be "
456461"returned to the application."
457462msgstr ""
463+ "当标头被应用程序所请求时,email 包会调用此方法并附带当前保存在 ``Message`` 中的 *name* 和 "
464+ "*value*,并且无论此方法返回什么它都会被回传给应用程序作为被提取标头的值。 请注意可能会有多个相同名称的标头被保存在 ``Message`` "
465+ "中;此方法会将指定标头的名称和值返回给应用程序。"
458466
459467#: ../../library/email.policy.rst:339
460468msgid ""
461469"*value* may contain surrogateescaped binary data. There should be no "
462470"surrogateescaped binary data in the value returned by the method."
463- msgstr ""
471+ msgstr "*value* 可能包含经替代转义的二进制数据。 此方法所返回的值应当没有经替代转义的二进制数据。 "
464472
465473#: ../../library/email.policy.rst:347
466474msgid ""
0 commit comments