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

Skip to content

Commit 6e5676e

Browse files
[po] auto sync
1 parent 707ece8 commit 6e5676e

9 files changed

Lines changed: 41 additions & 8 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.20%", "updated_at": "2023-12-16T04:55:50Z"}
1+
{"translation": "92.23%", "updated_at": "2023-12-16T07:55:50Z"}

howto/descriptor.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,10 @@ msgid ""
10411041
":attr:`~function.__name__`, :attr:`~function.__qualname__`, "
10421042
":attr:`~function.__doc__`, and :attr:`~function.__annotations__`."
10431043
msgstr ""
1044+
":func:`functools.update_wrapper` 调用增加了一个指向下层函数的 ``__wrapped__`` 属性。 "
1045+
"它还会向前传递必要的属性以使此包装器看起来像是被包装的函数: :attr:`~function.__name__`, "
1046+
":attr:`~function.__qualname__`, :attr:`~function.__doc__` 以及 "
1047+
":attr:`~function.__annotations__`。"
10441048

10451049
#: ../../howto/descriptor.rst:1401
10461050
msgid "Class methods"
@@ -1094,6 +1098,10 @@ msgid ""
10941098
":attr:`~function.__qualname__`, :attr:`~function.__doc__`, and "
10951099
":attr:`~function.__annotations__`."
10961100
msgstr ""
1101+
"``ClassMethod`` 中的 :func:`functools.update_wrapper` 调用增加了一个指向下层函数的 "
1102+
"``__wrapped__`` 属性。 它还会向前传递必要的属性以使此包装器看起来像是被包装的函数: "
1103+
":attr:`~function.__name__`, :attr:`~function.__qualname__`, "
1104+
":attr:`~function.__doc__` 以及 :attr:`~function.__annotations__`。"
10971105

10981106
#: ../../howto/descriptor.rst:1553
10991107
msgid "Member objects and __slots__"

library/hmac.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Translators:
77
# Pan Felix <[email protected]>, 2021
88
# st z <[email protected]>, 2021
9-
# Freesand Leo <[email protected]>, 2022
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-12-15 14:14+0000\n"
1717
"PO-Revision-Date: 2021-06-28 01:07+0000\n"
18-
"Last-Translator: Freesand Leo <[email protected]>, 2022\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"
@@ -60,7 +60,7 @@ msgstr ""
6060
msgid ""
6161
"The *digestmod* argument is now required. Pass it as a keyword argument to "
6262
"avoid awkwardness when you do not have an initial *msg*."
63-
msgstr ""
63+
msgstr "*digestmod* 参数现在是必须的。 请将其作为关键字参数传入以避免当你没有初始 *msg* 时将导致的麻烦。"
6464

6565
#: ../../library/hmac.rst:37
6666
msgid ""
@@ -165,7 +165,7 @@ msgstr "HMAC 的规范名称,总是为小写形式,例如 ``hmac-md5``。"
165165
msgid ""
166166
"Removed the undocumented attributes ``HMAC.digest_cons``, ``HMAC.inner``, "
167167
"and ``HMAC.outer``."
168-
msgstr ""
168+
msgstr "移除了未写入文档的属性 ``HMAC.digest_cons``, ``HMAC.inner`` 和 ``HMAC.outer``。"
169169

170170
#: ../../library/hmac.rst:120
171171
msgid "This module also provides the following helper function:"

library/http.server.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ msgid ""
121121
"stored in instance variables of the handler. Subclasses should not need to "
122122
"override or extend the :meth:`!__init__` method."
123123
msgstr ""
124+
"这个处理句柄将解析请求和标头,然后调用特定请求类型对应的方法。 方法名称将根据请求来构造。 例如,对于请求方法 ``SPAM``,将不带参数地调用 "
125+
":meth:`!do_SPAM` 方法。 所有相关信息会被保存在该处理句柄的实例变量中。 子类不重载或扩展 :meth:`!__init__` 方法。"
124126

125127
#: ../../library/http.server.rst:73
126128
msgid ":class:`BaseHTTPRequestHandler` has the following instance variables:"
@@ -283,12 +285,14 @@ msgid ""
283285
"enabled, multiple times) to handle incoming HTTP requests. You should never "
284286
"need to override it; instead, implement appropriate :meth:`!do_\\*` methods."
285287
msgstr ""
288+
"调用 :meth:`handle_one_request` 一次(或者如果启用了永久连接则为多次)来处理传入的 HTTP 请求。 "
289+
"你应该永远不需要重载它;而是要实现适当的 :meth:`!do_\\*` 方法。"
286290

287291
#: ../../library/http.server.rst:195
288292
msgid ""
289293
"This method will parse and dispatch the request to the appropriate "
290294
":meth:`!do_\\*` method. You should never need to override it."
291-
msgstr ""
295+
msgstr "此方法将解析并请请求分配给适当的 :meth:`!do_\\*` 方法。 你应该永远不需要重载它。"
292296

293297
#: ../../library/http.server.rst:200
294298
msgid ""

library/random.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ msgstr ""
371371

372372
#: ../../library/random.rst:223
373373
msgid "Removed the optional parameter *random*."
374-
msgstr ""
374+
msgstr "移除了可选的形参 *random*。"
375375

376376
#: ../../library/random.rst:229
377377
msgid ""
@@ -616,6 +616,8 @@ msgid ""
616616
"``None``, :class:`int`, :class:`float`, :class:`str`, :class:`bytes`, or "
617617
":class:`bytearray`."
618618
msgstr ""
619+
"之前 *seed* 可以是任何可哈希对象。 现在它被限制为: ``None``, :class:`int`, :class:`float`, "
620+
":class:`str`, :class:`bytes` 或 :class:`bytearray`。"
619621

620622
#: ../../library/random.rst:417
621623
msgid ""

library/resource.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ msgid ""
359359
"parameter. The *who* parameter should be specified using one of the "
360360
":const:`!RUSAGE_\\*` constants described below."
361361
msgstr ""
362+
"此函数返回一个描述当前进程或其子进程所消耗的资源的对象,它由 *who* 形参指定。 *who* 形参应当使用下面介绍的 "
363+
":const:`!RUSAGE_\\*` 常量之一来指定。"
362364

363365
#: ../../library/resource.rst:283
364366
msgid "A simple example::"
@@ -617,7 +619,7 @@ msgid ""
617619
"The following :const:`!RUSAGE_\\*` symbols are passed to the "
618620
":func:`getrusage` function to specify which processes information should be "
619621
"provided for."
620-
msgstr ""
622+
msgstr "下面的 :const:`!RUSAGE_\\*` 符号将被传给 :func:`getrusage` 函数以指定应该为哪些进程提供信息。"
621623

622624
#: ../../library/resource.rst:362
623625
msgid ""

library/socket.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,10 @@ msgid ""
631631
"by the :c:func:`gai_strerror` C function. The numeric *error* value will "
632632
"match one of the :const:`!EAI_\\*` constants defined in this module."
633633
msgstr ""
634+
":exc:`OSError` 的子类,该异常由 :func:`getaddrinfo` 和 :func:`getnameinfo` "
635+
"引发以表示与地址相关的错误。 附带的值是一个 ``(error, string)`` 对,代表库调用所返回的错误。 *string* 代表 "
636+
"*error* 的描述,如 :c:func:`gai_strerror` C 函数所返回的值。 数字值 *error* 将与本模块中定义的某个 "
637+
":const:`!EAI_\\*` 常量相匹配。"
634638

635639
#: ../../library/socket.rst:322
636640
msgid "A deprecated alias of :exc:`TimeoutError`."
@@ -2078,6 +2082,10 @@ msgid ""
20782082
"(see the optional built-in module :mod:`struct` for a way to decode C "
20792083
"structures encoded as byte strings)."
20802084
msgstr ""
2085+
"返回给定套接字选项的值 (参见 Unix 手册页 :manpage:`getsockopt(2)`)。 所需的符号常量 (:ref:`SO_\\* 等 "
2086+
"<socket-unix-constants>`) 在本模块中定义。 如果未指定 *buflen*,则会假定该选项为整数值并且将由此函数返回其整数值。 "
2087+
"如果指定了 *buflen*,则它定义了用于存放选项值的缓冲区的最大长度,且该缓冲区将作为字节对象返回。 "
2088+
"调用方需要执行对缓冲区内容的解码(请参阅可选的内置模块 :mod:`struct` 了解如何对编码为字节串的 C 结构体进行解码)。"
20812089

20822090
#: ../../library/socket.rst:1533
20832091
msgid ""

library/stdtypes.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6563,13 +6563,18 @@ msgid ""
65636563
"function and can be extracted from function objects through their "
65646564
":attr:`~function.__code__` attribute. See also the :mod:`code` module."
65656565
msgstr ""
6566+
"代码对象被具体实现用来表示“伪编译”的可执行 Python 代码例如一个函数体。 它们不同于函数对象,因为它们不包含对其全局执行环境的引用。 "
6567+
"代码对象由内置的 :func:`compile` 函数返回,并可通过函数对象的 :attr:`~function.__code__` 属性来提取。 "
6568+
"另请参阅 :mod:`code` 模块。"
65666569

65676570
#: ../../library/stdtypes.rst:5387
65686571
msgid ""
65696572
"Accessing :attr:`~function.__code__` raises an :ref:`auditing event "
65706573
"<auditing>` ``object.__getattr__`` with arguments ``obj`` and "
65716574
"``\"__code__\"``."
65726575
msgstr ""
6576+
"访问 :attr:`~function.__code__` 会引发一个 :ref:`审计事件 <auditing>` "
6577+
"``object.__getattr__``,并附带参数 ``obj`` 和 ``\"__code__\"``。"
65736578

65746579
#: ../../library/stdtypes.rst:5394
65756580
msgid ""
@@ -6662,6 +6667,8 @@ msgid ""
66626667
"objects <frame-objects>`, :ref:`traceback objects <traceback-objects>`, and "
66636668
"slice objects."
66646669
msgstr ""
6670+
"相关信息请参阅 :ref:`types`。 其中描述了 :ref:`栈帧对象 <frame-objects>`, :ref:`回溯对象 "
6671+
"<traceback-objects>` 以及切片对象等。"
66656672

66666673
#: ../../library/stdtypes.rst:5469
66676674
msgid "Special Attributes"

library/urllib.request.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,8 @@ msgid ""
10621062
":meth:`!<protocol>_request` or :meth:`!<protocol>_response` methods are "
10631063
"named :class:`!\\*Processor`; all others are named :class:`!\\*Handler`."
10641064
msgstr ""
1065+
"以下约定已被采纳:定义 :meth:`!<protocol>_request` 或 :meth:`!<protocol>_response` "
1066+
"方法的子类应当命名为 :class:`!\\*Processor`;所有其他子类应当命名为 :class:`!\\*Handler`。"
10651067

10661068
#: ../../library/urllib.request.rst:732
10671069
msgid ""

0 commit comments

Comments
 (0)