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

Skip to content

Commit 6888ea4

Browse files
[po] auto sync
1 parent 548fb8e commit 6888ea4

9 files changed

Lines changed: 37 additions & 13 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.28%", "updated_at": "2023-12-08T14:55:58Z"}
1+
{"translation": "92.31%", "updated_at": "2023-12-09T06:55:44Z"}

c-api/frame.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ msgstr "参考返回一个 :term:`strong reference`,或者如果 *frame* 没
9292

9393
#: ../../c-api/frame.rst:53
9494
msgid "Get the *frame*'s :attr:`~frame.f_builtins` attribute."
95-
msgstr ""
95+
msgstr "获取 *frame* 的 :attr:`~frame.f_builtins` 属性。"
9696

9797
#: ../../c-api/frame.rst:55 ../../c-api/frame.rst:86
9898
msgid "Return a :term:`strong reference`. The result cannot be ``NULL``."
@@ -124,11 +124,11 @@ msgstr "返回一个 :term:`strong reference`,或者 ``NULL``。"
124124

125125
#: ../../c-api/frame.rst:84
126126
msgid "Get the *frame*'s :attr:`~frame.f_globals` attribute."
127-
msgstr ""
127+
msgstr "获取 *frame* 的 :attr:`~frame.f_globals` 属性。"
128128

129129
#: ../../c-api/frame.rst:93
130130
msgid "Get the *frame*'s :attr:`~frame.f_lasti` attribute."
131-
msgstr ""
131+
msgstr "获取 *frame* 的 :attr:`~frame.f_lasti` 属性。"
132132

133133
#: ../../c-api/frame.rst:95
134134
msgid "Returns -1 if ``frame.f_lasti`` is ``None``."
@@ -163,7 +163,7 @@ msgstr "和 :c:func:`PyFrame_GetVar` 相似,但该变量名是一个使用 UTF
163163

164164
#: ../../c-api/frame.rst:123
165165
msgid "Get the *frame*'s :attr:`~frame.f_locals` attribute (:class:`dict`)."
166-
msgstr ""
166+
msgstr "获取 *frame* 的 :attr:`~frame.f_locals` 属性 (:class:`dict`)。"
167167

168168
#: ../../c-api/frame.rst:132
169169
msgid "Return the line number that *frame* is currently executing."

c-api/unicode.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ msgstr "以下API是C宏和静态内联函数,用于快速检查和访问Unico
121121
msgid ""
122122
"Return true if the object *obj* is a Unicode object or an instance of a "
123123
"Unicode subtype. This function always succeeds."
124-
msgstr ""
124+
msgstr "如果对象 *obj* 是 Unicode 对象或 Unicode 子类型的实例则返回真值。 此函数总是会成功执行。"
125125

126126
#: ../../c-api/unicode.rst:84
127127
msgid ""

glossary.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,10 @@ msgid ""
350350
"<sys.stdin>`, :data:`sys.stdout.buffer <sys.stdout>`, and instances of "
351351
":class:`io.BytesIO` and :class:`gzip.GzipFile`."
352352
msgstr ""
353+
":term:`file object` 能够读写 :term:`字节类对象 <bytes-like object>`。 二进制文件的例子包括以二进制模式"
354+
" (``'rb'``, ``'wb'`` 或 ``'rb+'``) 打开的文件、:data:`sys.stdin.buffer "
355+
"<sys.stdin>`、:data:`sys.stdout.buffer <sys.stdout>` 以及 :class:`io.BytesIO` 和"
356+
" :class:`gzip.GzipFile` 的实例。"
353357

354358
#: ../../glossary.rst:167
355359
msgid ""
@@ -645,6 +649,10 @@ msgid ""
645649
"basis for many features including functions, methods, properties, class "
646650
"methods, static methods, and reference to super classes."
647651
msgstr ""
652+
"任何定义了 :meth:`~object.__get__`, :meth:`~object.__set__` 或 "
653+
":meth:`~object.__delete__` 方法的对象。 当一个类属性为描述器时,它的特殊绑定行为就会在属性查找时被触发。 通常情况下,使用 "
654+
"*a.b* 来获取、设置或删除一个属性时会在 *a* 类的字典中查找名称为 *b* 的对象,但如果 *b* 是一个描述器,则会调用对应的描述器方法。 "
655+
"理解描述器的概念是更深层次理解 Python 的关键,因为这是许多重要特性的基础,包括函数、方法、特征属性、类方法、静态方法以及对超类的引用等等。"
648656

649657
#: ../../glossary.rst:327
650658
msgid ""
@@ -663,6 +671,8 @@ msgid ""
663671
"can be any object with :meth:`~object.__hash__` and :meth:`~object.__eq__` "
664672
"methods. Called a hash in Perl."
665673
msgstr ""
674+
"一个关联数组,其中的任意键都映射到相应的值。 键可以是任何具有 :meth:`~object.__hash__` 和 "
675+
":meth:`~object.__eq__` 方法的对象。 在 Perl 中称为 hash。"
666676

667677
#: ../../glossary.rst:335
668678
msgid "dictionary comprehension"

library/contextlib.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ msgid ""
177177
" :meth:`~object.__aexit__` methods. It must be applied to an "
178178
":term:`asynchronous generator` function."
179179
msgstr ""
180+
"该函数是一个 :term:`decorator`,它可被用来定义一个使用 :keyword:`async with` "
181+
"语句的异步上下文管理器的工厂函数,而不需要创建一个类或单独的 :meth:`~object.__aenter__` 和 "
182+
":meth:`~object.__aexit__` 方法。 它必须应用在 :term:`asynchronous generator` 函数上。"
180183

181184
#: ../../library/contextlib.rst:113
182185
msgid "A simple example::"

library/dis.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ msgid ""
408408
":attr:`~codeobject.co_firstlineno` and :attr:`~codeobject.co_lnotab` "
409409
"attributes of the code object."
410410
msgstr ""
411+
"使用 :pep:`626` ``co_lines`` 方法而不是代码对象的 :attr:`~codeobject.co_firstlineno` 和 "
412+
":attr:`~codeobject.co_lnotab` 属性。"
411413

412414
#: ../../library/dis.rst:334
413415
msgid ""
@@ -800,6 +802,7 @@ msgid ""
800802
" pops an additional value from the stack which is used to set "
801803
":attr:`~frame.f_lasti` of the current frame."
802804
msgstr ""
805+
"重新引发当前位于栈顶的异常。 如果 oparg 为非零值,则从栈顶额外弹出一个值用来设置当前帧的 :attr:`~frame.f_lasti`。"
803806

804807
#: ../../library/dis.rst:785
805808
msgid ""

library/inspect.po

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,8 @@ msgid ""
576576
"metaclass when the argument is a class and those attributes have been listed"
577577
" in the metaclass' custom :meth:`~object.__dir__`."
578578
msgstr ""
579+
"当参数是一个类且这些属性在元类的自定义方法 :meth:`~object.__dir__` 中列出时 :func:`getmembers` "
580+
"将只返回在元类中定义的类属性。"
579581

580582
#: ../../library/inspect.rst:281
581583
msgid ""
@@ -724,13 +726,13 @@ msgstr "如果该对象可以在 :keyword:`await` 表达式中使用时返回 ``
724726
msgid ""
725727
"Can also be used to distinguish generator-based coroutines from regular "
726728
"generators:"
727-
msgstr ""
729+
msgstr "也可被用于区分基于生成器的协程和常规的生成器:"
728730

729731
#: ../../library/inspect.rst:415
730732
msgid ""
731733
"Return ``True`` if the object is an :term:`asynchronous generator` function,"
732734
" for example:"
733-
msgstr ""
735+
msgstr "如果对象是一个 :term:`asynchronous generator` 函数则返回 ``True``,例如:"
734736

735737
#: ../../library/inspect.rst:428
736738
msgid ""

library/stdtypes.po

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
# Siyuan Xu, 2023
3232
# Jiuh-star <[email protected]>, 2023
3333
# sgqy <[email protected]>, 2023
34-
# Freesand Leo <[email protected]>, 2023
3534
# R S, 2023
35+
# Freesand Leo <[email protected]>, 2023
3636
#
3737
#, fuzzy
3838
msgid ""
@@ -41,7 +41,7 @@ msgstr ""
4141
"Report-Msgid-Bugs-To: \n"
4242
"POT-Creation-Date: 2023-12-08 14:14+0000\n"
4343
"PO-Revision-Date: 2021-06-28 01:13+0000\n"
44-
"Last-Translator: R S, 2023\n"
44+
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
4545
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
4646
"MIME-Version: 1.0\n"
4747
"Content-Type: text/plain; charset=UTF-8\n"
@@ -103,6 +103,8 @@ msgid ""
103103
":meth:`~object.__len__` method that returns zero, when called with the "
104104
"object. [1]_ Here are most of the built-in objects considered false:"
105105
msgstr ""
106+
"在默认情况下,一个对象会被视为具有真值,除非其所属的类定义了在对象上调用时返回 ``False`` 的 :meth:`~object.__bool__`"
107+
" 方法或者返回零的 :meth:`~object.__len__` 方法。 [1]_ 以下基本完整地列出了具有假值的内置对象:"
106108

107109
#: ../../library/stdtypes.rst:56
108110
msgid "constants defined to be false: ``None`` and ``False``"

reference/datamodel.po

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
# sunsol s <[email protected]>, 2023
2525
# Jiuh-star <[email protected]>, 2023
2626
# WH-2099 <[email protected]>, 2023
27-
# Freesand Leo <[email protected]>, 2023
2827
# LeeWendao <[email protected]>, 2023
28+
# Freesand Leo <[email protected]>, 2023
2929
#
3030
#, fuzzy
3131
msgid ""
@@ -34,7 +34,7 @@ msgstr ""
3434
"Report-Msgid-Bugs-To: \n"
3535
"POT-Creation-Date: 2023-12-08 14:14+0000\n"
3636
"PO-Revision-Date: 2021-06-28 01:19+0000\n"
37-
"Last-Translator: LeeWendao <LeeWendao@outlook.com>, 2023\n"
37+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2023\n"
3838
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
3939
"MIME-Version: 1.0\n"
4040
"Content-Type: text/plain; charset=UTF-8\n"
@@ -151,6 +151,10 @@ msgid ""
151151
":keyword:`finally`' statement and the ':keyword:`with`' statement provide "
152152
"convenient ways to do this."
153153
msgstr ""
154+
"有些对象包含对“外部”资源如打开的文件或窗口的引用。 "
155+
"当对象被作为垃圾回收时这些资源也应该会被释放,但由于垃圾回收并不确保发生,这些对象还提供了明确地释放外部资源的操作,通常为一个 "
156+
":meth:`!close` 方法。 强烈推荐在程序中显式关闭此类对象。 ':keyword:`try`...\\ "
157+
":keyword:`finally`' 语句和 ':keyword:`with`' 语句提供了进行此种操作的更便捷方式。"
154158

155159
#: ../../reference/datamodel.rst:97
156160
msgid ""
@@ -896,7 +900,7 @@ msgstr "实例方法用于结合类、类实例和任何可调用对象 (通常
896900

897901
#: ../../reference/datamodel.rst:659
898902
msgid "Special read-only attributes:"
899-
msgstr ""
903+
msgstr "特殊的只读属性:"
900904

901905
#: ../../reference/datamodel.rst:664
902906
msgid ""

0 commit comments

Comments
 (0)