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

Skip to content

Commit f398c57

Browse files
[po] auto sync
1 parent 9aaec13 commit f398c57

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

library/email.policy.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,10 @@ msgid ""
683683
"Folding of a header object is done by calling its ``fold`` method with the "
684684
"current policy."
685685
msgstr ""
686+
"标头折叠是由 :attr:`refold_source` 策略设置来控制的。 当且仅当一个值没有 ``name`` 属性(具有 ``name`` "
687+
"属性就意味着它是某种标头对象)它才会被当作是“源值”。 如果一个原值需要按照策略来重新折叠,则会通过将 *name* 和去除了所有 CR 和 LF "
688+
"字符的 *value* 传递给 ``header_factory`` 来将其转换为标头对象。 标头对象的折叠是通过调用其 ``fold`` "
689+
"方法并附带当前策略来完成的。"
686690

687691
#: ../../library/email.policy.rst:492
688692
msgid ""
@@ -693,6 +697,9 @@ msgid ""
693697
"``refold_source`` setting, which causes the binary data to be CTE encoded "
694698
"using the ``unknown-8bit`` charset."
695699
msgstr ""
700+
"源值会使用 :meth:`~str.splitlines` 来拆分成多行。 如果该值不被重新折叠,则会使用策略中的 ``linesep`` "
701+
"重新合并这些行并将其返回。 例外的是包含非 ascii 二进制数据的行。 在此情况下无论 ``refold_source`` "
702+
"如何设置该值都会被重新折叠,这会导致二进制数据使用 ``unknown-8bit`` 字符集进行 CTE 编码。"
696703

697704
#: ../../library/email.policy.rst:502
698705
msgid ""

0 commit comments

Comments
 (0)