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

Skip to content

Commit 68e2acf

Browse files
[po] auto sync
1 parent 9c9df29 commit 68e2acf

12 files changed

Lines changed: 56 additions & 9 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.45%", "updated_at": "2023-08-07T15:57:16Z"}
1+
{"translation": "89.48%", "updated_at": "2023-08-08T07:56:27Z"}

library/email.encoders.po

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Translators:
77
# Yiyi Python <[email protected]>, 2021
88
# eric R <[email protected]>, 2021
9-
# Freesand Leo <[email protected]>, 2021
9+
# Freesand Leo <[email protected]>, 2023
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2023-08-04 14:13+0000\n"
1717
"PO-Revision-Date: 2021-06-28 01:04+0000\n"
18-
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
18+
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -77,6 +77,11 @@ msgid ""
7777
"the payload to this newly encoded value. They should also set the "
7878
":mailheader:`Content-Transfer-Encoding` header as appropriate."
7979
msgstr ""
80+
":mod:`email` 包在其 :mod:`~email.encoders` 模块中提供了一些方便的编码器。 这些编码器实际上由 "
81+
":class:`~email.mime.audio.MIMEAudio` 和 :class:`~email.mime.image.MIMEImage` "
82+
"类构造器使用以提供默认编码格式。 所有编码器函数都只接受一个参数,即要编码的消息对象。 "
83+
"它们通常会提取有效截荷,对其进行编码,并将载荷重置为新近编码的值。 它们还应当相应地设置 :mailheader:`Content-Transfer-"
84+
"Encoding` 标头。"
8085

8186
#: ../../library/email.encoders.rst:35
8287
msgid ""

library/email.message.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ msgid ""
341341
"depend on it as we may choose to make such assignments do an automatic "
342342
"deletion of the existing header in the future."
343343
msgstr ""
344+
"如果 :mod:`policy <email.policy>` "
345+
"将特定标头定义为唯一的(就像标准策略所做的一样),则当这样的标头已存在时试图为其赋值此方法会引发 :exc:`ValueError`。 "
346+
"采取此种行为是出于保持一致性的考量,但不能依赖它因为在未来我们可能会选择让这样的赋值操作自动删除现有的标头。"
344347

345348
#: ../../library/email.message.rst:226
346349
msgid ""
@@ -560,6 +563,9 @@ msgid ""
560563
":attr:`~email.headerregistry.ParameterizedMIMEHeader.params` attribute of "
561564
"the header value (for example, ``msg['Content-Type'].params['charset']``)."
562565
msgstr ""
566+
"请注意标头现有的形参值可以通过标头值的 "
567+
":attr:`~email.headerregistry.ParameterizedMIMEHeader.params` 属性来访问 (例如 "
568+
"``msg['Content-Type'].params['charset']``)。"
563569

564570
#: ../../library/email.message.rst:384
565571
msgid "``replace`` keyword was added."

library/gzip.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ msgid ""
148148
":meth:`~io.IOBase.truncate` method. At least one of *fileobj* and "
149149
"*filename* must be given a non-trivial value."
150150
msgstr ""
151+
":class:`GzipFile` 类的构造器,它模拟了 :term:`file object` 的大部分方法,但 "
152+
":meth:`~io.IOBase.truncate` 方法除外。 *fileobj* 和 *filename* 中至少有一个必须为非空值。"
151153

152154
#: ../../library/gzip.rst:77
153155
msgid ""
@@ -232,6 +234,8 @@ msgid ""
232234
"including iteration and the :keyword:`with` statement. Only the "
233235
":meth:`~io.IOBase.truncate` method isn't implemented."
234236
msgstr ""
237+
":class:`GzipFile` 支持 :class:`io.BufferedIOBase` 接口,包括迭代和 :keyword:`with` 语句。"
238+
" 只有 :meth:`~io.IOBase.truncate` 方法未被实现。"
235239

236240
#: ../../library/gzip.rst:118
237241
msgid ":class:`GzipFile` also provides the following method and attribute:"

library/hashlib.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ msgid ""
320320
"far. This is a bytes object of size *length* which may contain bytes in the "
321321
"whole range from 0 to 255."
322322
msgstr ""
323+
"返回当前已传给 :meth:`~hash.update` 方法的数据摘要。 这是一个大小为 *length* 的字节串对象,其中可包含 0 至 255 "
324+
"完整范围内的字节值。"
323325

324326
#: ../../library/hashlib.rst:254
325327
msgid ""
@@ -705,6 +707,9 @@ msgid ""
705707
"object by calling :meth:`~hash.digest` (or :meth:`~hash.hexdigest` for hex-"
706708
"encoded string)."
707709
msgstr ""
710+
"要计算某个数据的哈希值,你应该首先通过调用适当的构造器函数 (:func:`blake2b` 或 :func:`blake2s`) "
711+
"来构造一个哈希对象,然后通过在该对象上调用 :meth:`~hash.update` 来更新目标数据,最后再通过调用 "
712+
":meth:`~hash.digest` (或针对十六进制编码字符串的 :meth:`~hash.hexdigest`) 来获取该对象的摘要。"
708713

709714
#: ../../library/hashlib.rst:521
710715
msgid ""

library/json.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ msgid ""
584584
"serializable object for ``o`` if possible, otherwise it should call the "
585585
"superclass implementation (to raise :exc:`TypeError`)."
586586
msgstr ""
587+
"要将其扩展至识别其他对象,需要子类化并实现 :meth:`~JSONEncoder.default`,如果可能还要实现另一个返回 ``o`` "
588+
"的可序列化对象的方法,否则它应当调用超类实现 (来引发 :exc:`TypeError`)。"
587589

588590
#: ../../library/json.rst:429
589591
msgid ""
@@ -637,7 +639,7 @@ msgstr "在子类中实现这种方法使其返回 *o* 的可序列化对象,
637639
msgid ""
638640
"For example, to support arbitrary iterators, you could implement "
639641
":meth:`~JSONEncoder.default` like this::"
640-
msgstr ""
642+
msgstr "例如,要支持任意的迭代器,你可以这样实现 :meth:`~JSONEncoder.default`::"
641643

642644
#: ../../library/json.rst:501
643645
msgid ""

library/stat.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ msgstr ""
110110
msgid ""
111111
"Return the portion of the file's mode that describes the file type (used by "
112112
"the :func:`!S_IS\\*` functions above)."
113-
msgstr ""
113+
msgstr "返回文件模式中描述文件类型的部分(供上面的 :func:`!S_IS\\*` 函数使用)。"
114114

115115
#: ../../library/stat.rst:94
116116
msgid ""
@@ -121,6 +121,8 @@ msgid ""
121121
"information about a file that isn't handled by :mod:`os.path`, like the "
122122
"tests for block and character devices."
123123
msgstr ""
124+
"通常,你将使用 :func:`!os.path.is\\*` 函数来检测文件的类型;这里提供的函数在你要对同一文件执行多项检测并且希望避免每项检测的 "
125+
":c:func:`stat` 系统调用的开销时会很有用。 这些函数也适用于检测有关未被 :mod:`os.path` 处理的信息,如检测块和字符设备等。"
124126

125127
#: ../../library/stat.rst:101
126128
msgid "Example::"

library/textwrap.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ msgid ""
8585
"Otherwise, enough words are dropped from the end so that the remaining words"
8686
" plus the :attr:`.placeholder` fit within :attr:`.width`::"
8787
msgstr ""
88+
"首先将折叠 *text* 中的空格(所有空格被替换为单个空格)。 如果结果能够放入 *width*,它将被返回。 "
89+
"在其他情况下,将在末尾丢弃足够数量的单词以使剩余的单词加 :attr:`.placeholder` 能够放入 :attr:`.width`::"
8890

8991
#: ../../library/textwrap.rst:72
9092
msgid ""
@@ -210,6 +212,8 @@ msgid ""
210212
"(default: ``True``) If true, then all tab characters in *text* will be "
211213
"expanded to spaces using the :meth:`~str.expandtabs` method of *text*."
212214
msgstr ""
215+
"(默认值: ``True``) 如果为真值,则 *text* 中的所有制表符将使用 *text* 的 :meth:`~str.expandtabs` "
216+
"方法扩展为空格符。"
213217

214218
#: ../../library/textwrap.rst:181
215219
msgid ""

library/urllib.error.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ msgid ""
108108
"function detects that the amount of the downloaded data is less than the "
109109
"expected amount (given by the *Content-Length* header)."
110110
msgstr ""
111+
"此异常会在 :func:`~urllib.request.urlretrieve` 函数检测到已下载的数据量少于预期量(由 *Content-"
112+
"Length* 标头给出)时被引发。"
111113

112114
#: ../../library/urllib.error.rst:79
113115
msgid "The downloaded (and supposedly truncated) data."
114-
msgstr ""
116+
msgstr "已下载(并可能被截断)的数据。"

library/winreg.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ msgid ""
401401
"<https://msdn.microsoft.com/en-us/library/ms724889%28v=VS.85%29.aspx>`__ for"
402402
" more details."
403403
msgstr ""
404+
"如果调用 :func:`LoadKey` 的进程没有 :c:data:`!SE_RESTORE_PRIVILEGE` 特权则调用将失败。 "
405+
"请注意特权与权限是不同的 -- 更多细节请参阅 `RegLoadKey 文档 <https://msdn.microsoft.com/en-"
406+
"us/library/ms724889%28v=VS.85%29.aspx>`__。"
404407

405408
#: ../../library/winreg.rst:296
406409
msgid ""
@@ -563,6 +566,10 @@ msgid ""
563566
" Rights and Permissions documentation <https://msdn.microsoft.com/en-"
564567
"us/library/ms724878%28v=VS.85%29.aspx>`__ for more details."
565568
msgstr ""
569+
"如果 *key* 是代表远程计算机上的注册表键,那么 *file_name* 所描述的路径就是相对于远程计算机的。 本方法的调用方必须拥有 "
570+
"**SeBackupPrivilege** 安全特权。 请注意特权与权限是不同的 -- 更多细节请参阅 `Conflicts Between User "
571+
"Rights and Permissions 文档 <https://msdn.microsoft.com/en-"
572+
"us/library/ms724878%28v=VS.85%29.aspx>`__。"
566573

567574
#: ../../library/winreg.rst:423
568575
msgid "This function passes ``NULL`` for *security_attributes* to the API."

0 commit comments

Comments
 (0)