1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2024 , Python Software Foundation
2
+ # Copyright (C) 2001-2025 , Python Software Foundation
3
3
# This file is distributed under the same license as the Python package.
4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
@@ -13,7 +13,7 @@ msgid ""
13
13
msgstr ""
14
14
"Project-Id-Version : Python 3.13\n "
15
15
"Report-Msgid-Bugs-To : \n "
16
- "POT-Creation-Date : 2024-10-04 14:17 +0000\n "
16
+ "POT-Creation-Date : 2025-01-24 14:16 +0000\n "
17
17
"PO-Revision-Date : 2021-06-28 01:04+0000\n "
18
18
"Last-Translator : Freesand Leo <yuqinju@163.com>, 2024\n "
19
19
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -263,10 +263,19 @@ msgstr ""
263
263
#: ../../library/email.contentmanager.rst:159
264
264
msgid ""
265
265
"For ``str`` objects, if *cte* is not set use heuristics to determine the "
266
- "most compact encoding."
267
- msgstr "对于 ``str`` 对象,如果 *cte* 未设置则会使用启发方式来确定最紧凑的编码格式。"
266
+ "most compact encoding. Prior to encoding, :meth:`str.splitlines` is used to"
267
+ " normalize all line boundaries, ensuring that each line of the payload is "
268
+ "terminated by the current policy's :data:`~email.policy.Policy.linesep` "
269
+ "property (even if the original string did not end with one)."
270
+ msgstr ""
271
+
272
+ #: ../../library/email.contentmanager.rst:165
273
+ msgid ""
274
+ "For ``bytes`` objects, *cte* is taken to be base64 if not set, and the "
275
+ "aforementioned newline translation is not performed."
276
+ msgstr ""
268
277
269
- #: ../../library/email.contentmanager.rst:161
278
+ #: ../../library/email.contentmanager.rst:167
270
279
msgid ""
271
280
"For :class:`~email.message.EmailMessage`, per :rfc:`2046`, raise an error if"
272
281
" a *cte* of ``quoted-printable`` or ``base64`` is requested for *subtype* "
@@ -279,7 +288,7 @@ msgstr ""
279
288
"*cte* 为 *subtype* ``external-body`` 则会引发一个错误。 对于 ``message/rfc822``,如果 *cte*"
280
289
" 未指定则会使用 ``8bit``。 对于所有其他 *subtype* 值,都会使用 ``7bit``。"
281
290
282
- #: ../../library/email.contentmanager.rst:168
291
+ #: ../../library/email.contentmanager.rst:174
283
292
msgid ""
284
293
"A *cte* of ``binary`` does not actually work correctly yet. The "
285
294
"``EmailMessage`` object as modified by ``set_content`` is correct, but "
@@ -288,7 +297,7 @@ msgstr ""
288
297
"*cte* 值为 ``binary`` 实际上还不能正确工作。 由 ``set_content`` 所修改的 ``EmailMessage`` "
289
298
"对象是正确的,但 :class:`~email.generator.BytesGenerator` 不会正确地将其序列化。"
290
299
291
- #: ../../library/email.contentmanager.rst:173
300
+ #: ../../library/email.contentmanager.rst:179
292
301
msgid ""
293
302
"If *disposition* is set, use it as the value of the :mailheader:`Content-"
294
303
"Disposition` header. If not specified, and *filename* is specified, add the"
@@ -300,21 +309,21 @@ msgstr ""
300
309
"如果未设置,并且指定了 *filename*,则添加值为 ``attachment`` 的标头。 如果未设置 *disposition* 并且也未指定 "
301
310
"*filename*,则不添加标头。 *disposition* 的有效值仅有 ``attachment`` 和 ``inline``。"
302
311
303
- #: ../../library/email.contentmanager.rst:180
312
+ #: ../../library/email.contentmanager.rst:186
304
313
msgid ""
305
314
"If *filename* is specified, use it as the value of the ``filename`` "
306
315
"parameter of the :mailheader:`Content-Disposition` header."
307
316
msgstr ""
308
317
"如果设置了 *filename*,则将其用作 :mailheader:`Content-Disposition` 标头的 ``filename`` "
309
318
"参数的值。"
310
319
311
- #: ../../library/email.contentmanager.rst:183
320
+ #: ../../library/email.contentmanager.rst:189
312
321
msgid ""
313
322
"If *cid* is specified, add a :mailheader:`Content-ID` header with *cid* as "
314
323
"its value."
315
324
msgstr "如果设置了 *cid*,则添加一个 :mailheader:`Content-ID` 标头并将其值设为 *cid*。"
316
325
317
- #: ../../library/email.contentmanager.rst:186
326
+ #: ../../library/email.contentmanager.rst:192
318
327
msgid ""
319
328
"If *params* is specified, iterate its ``items`` method and use the resulting"
320
329
" ``(key, value)`` pairs to set additional parameters on the "
@@ -323,7 +332,7 @@ msgstr ""
323
332
"如果设置了 *params*,则迭代其 ``items`` 方法并使用输出的 ``(key, value)`` 结果对在 "
324
333
":mailheader:`Content-Type` 标头上设置附加参数。"
325
334
326
- #: ../../library/email.contentmanager.rst:190
335
+ #: ../../library/email.contentmanager.rst:196
327
336
msgid ""
328
337
"If *headers* is specified and is a list of strings of the form ``headername:"
329
338
" headervalue`` or a list of ``header`` objects (distinguished from strings "
@@ -332,11 +341,11 @@ msgstr ""
332
341
"如果设置了 *headers* 并且为 ``headername: headervalue`` 形式的字符串的列表或为 ``header`` "
333
342
"对象的列表(通过一个 ``name`` 属性与字符串相区分),则将标头添加到 *msg*。"
334
343
335
- #: ../../library/email.contentmanager.rst:197
344
+ #: ../../library/email.contentmanager.rst:203
336
345
msgid "Footnotes"
337
346
msgstr "备注"
338
347
339
- #: ../../library/email.contentmanager.rst:198
348
+ #: ../../library/email.contentmanager.rst:204
340
349
msgid ""
341
350
"Originally added in 3.4 as a :term:`provisional module <provisional "
342
351
"package>`"
0 commit comments