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

Skip to content

Commit ff790f5

Browse files
[po] auto sync
1 parent 86f748c commit ff790f5

35 files changed

Lines changed: 241 additions & 91 deletions

c-api/arg.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# taotieren <[email protected]>, 2021
1515
# Naisen Xu <[email protected]>, 2021
1616
# Jing Li <[email protected]>, 2021
17-
# Freesand Leo <[email protected]>, 2021
17+
# Freesand Leo <[email protected]>, 2022
1818
#
1919
#, fuzzy
2020
msgid ""
@@ -23,7 +23,7 @@ msgstr ""
2323
"Report-Msgid-Bugs-To: \n"
2424
"POT-Creation-Date: 2022-06-16 06:28+0000\n"
2525
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
26-
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
26+
"Last-Translator: Freesand Leo <[email protected]>, 2022\n"
2727
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2828
"MIME-Version: 1.0\n"
2929
"Content-Type: text/plain; charset=UTF-8\n"
@@ -628,7 +628,7 @@ msgstr "将一个 Python 整型转化成一个 C :c:type:`unsigned long long`
628628

629629
#: ../../c-api/arg.rst:290 ../../c-api/arg.rst:617
630630
msgid "``n`` (:class:`int`) [:c:type:`Py_ssize_t`]"
631-
msgstr ""
631+
msgstr "``n`` (:class:`int`) [:c:type:`Py_ssize_t`]"
632632

633633
#: ../../c-api/arg.rst:290
634634
msgid "Convert a Python integer to a C :c:type:`Py_ssize_t`."

c-api/long.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ msgid ""
8080
"integers between ``-5`` and ``256``. When you create an int in that range "
8181
"you actually just get back a reference to the existing object."
8282
msgstr ""
83+
"当前的实现维护着一个整数对象数组,包含 ``-5`` 和 ``256`` 之间的所有整数对象。 若创建一个位于该区间的 int "
84+
"时,实际得到的将是对已有对象的引用。"
8385

8486
#: ../../c-api/long.rst:50
8587
msgid ""

c-api/mapping.po

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Translators:
77
# 汪心禾 <[email protected]>, 2021
8-
# Freesand Leo <[email protected]>, 2021
8+
# Freesand Leo <[email protected]>, 2022
99
#
1010
#, fuzzy
1111
msgid ""
@@ -14,7 +14,7 @@ msgstr ""
1414
"Report-Msgid-Bugs-To: \n"
1515
"POT-Creation-Date: 2022-06-16 06:28+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:49+0000\n"
17-
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
17+
"Last-Translator: Freesand Leo <[email protected]>, 2022\n"
1818
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1919
"MIME-Version: 1.0\n"
2020
"Content-Type: text/plain; charset=UTF-8\n"
@@ -42,6 +42,8 @@ msgid ""
4242
"determine what type of keys the class supports. This function always "
4343
"succeeds."
4444
msgstr ""
45+
"如果对象提供了映射协议或是支持切片则返回 ``1``,否则返回 ``0``。 请注意它将为具有 :meth:`__getitem__` 方法的 "
46+
"Python 类返回 ``1``,因为在通常情况下无法确定该类所支持的键类型。 此函数总是会成功执行。"
4547

4648
#: ../../c-api/mapping.rst:25
4749
msgid ""

c-api/method.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Translators:
77
# dhcn, 2021
88
# Shengjing Zhu <[email protected]>, 2021
9-
# Freesand Leo <[email protected]>, 2021
9+
# Freesand Leo <[email protected]>, 2022
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2022-06-16 06:28+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:49+0000\n"
18-
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
18+
"Last-Translator: Freesand Leo <[email protected]>, 2022\n"
1919
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -56,7 +56,7 @@ msgid ""
5656
"Return a new instance method object, with *func* being any callable object. "
5757
"*func* is the function that will be called when the instance method is "
5858
"called."
59-
msgstr ""
59+
msgstr "返回一个新的实例方法对象,*func* 应为任意可调用对象。 *func* 将在实例方法被调用时作为函数被调用。"
6060

6161
#: ../../c-api/method.rst:37
6262
msgid "Return the function object associated with the instance method *im*."

extending/extending.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ msgid ""
209209
" the exception type, exception instance, and a traceback object. It is "
210210
"important to know about them to understand how errors are passed around."
211211
msgstr ""
212+
"整个 Python 解释器系统有一个如下所述的重要惯例:当一个函数运行失败时,它应当设置一个异常条件并返回一个错误值(通常为 ``-1`` 或 "
213+
"``NULL`` 指针)。 异常信息保存在解释器线程状态的三个成员中。 如果没有异常则它们的值为 ``NULL``。 在其他情况下它们是 "
214+
":meth:`sys.exc_info` 所返回的 Python 元组的成员的 C 对应物。 它们分别是异常类型、异常实例和回溯对象。 "
215+
"理解它们对于理解错误是如何被传递的非常重要。"
212216

213217
#: ../../extending/extending.rst:137
214218
msgid ""

faq/design.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
# Translators:
77
# Shengjing Zhu <[email protected]>, 2021
88
# ww song <[email protected]>, 2021
9-
# Alpha Du <[email protected]>, 2021
109
# ppcfish <[email protected]>, 2021
1110
# WH-2099 <[email protected]>, 2021
1211
# Freesand Leo <[email protected]>, 2021
12+
# Alpha Du <[email protected]>, 2022
1313
#
1414
#, fuzzy
1515
msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818
"Report-Msgid-Bugs-To: \n"
1919
"POT-Creation-Date: 2022-06-16 06:28+0000\n"
2020
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
21-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
21+
"Last-Translator: Alpha Du <alphanow@gmail.com>, 2022\n"
2222
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2323
"MIME-Version: 1.0\n"
2424
"Content-Type: text/plain; charset=UTF-8\n"
@@ -489,6 +489,8 @@ msgid ""
489489
"is an up-and-coming compiler of Python into C++ code, aiming to support the "
490490
"full Python language."
491491
msgstr ""
492+
"`Cython <http://cython.org/>`_ 将一个修改后版本的 Python 与可选注释编译成 C 语言扩展。 `Nuitka "
493+
"<http://www.nuitka.net/>`_ 是一个新兴的将 Python 编译成 C++ 代码的编译器,目的是支持完整的Python语言。"
492494

493495
#: ../../faq/design.rst:331
494496
msgid "How does Python manage memory?"
@@ -1051,6 +1053,8 @@ msgid ""
10511053
"iterator run to completion, no closing is needed. When it is, wrap it as "
10521054
"\"contextlib.closing(generator)\" in the 'with' statement."
10531055
msgstr ""
1056+
"由于技术原因,直接作为上下文管理器使用的生成器将无法正常工作。最常见的情况是,当生成器被用作迭代器运行到完成时,不需要手动关闭。如果需要,在 "
1057+
"'with' 语句中把它包装成 \"contextlib.closing(generator)\" 。"
10541058

10551059
#: ../../faq/design.rst:717
10561060
msgid "Why are colons required for the if/while/def/class statements?"

faq/gui.po

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# ppcfish <[email protected]>, 2021
1111
# Siyuan Xu, 2021
1212
# Freesand Leo <[email protected]>, 2021
13+
# Alpha Du <[email protected]>, 2022
1314
#
1415
#, fuzzy
1516
msgid ""
@@ -18,7 +19,7 @@ msgstr ""
1819
"Report-Msgid-Bugs-To: \n"
1920
"POT-Creation-Date: 2022-06-16 06:28+0000\n"
2021
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
21-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
22+
"Last-Translator: Alpha Du <alphanow@gmail.com>, 2022\n"
2223
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2324
"MIME-Version: 1.0\n"
2425
"Content-Type: text/plain; charset=UTF-8\n"
@@ -52,6 +53,10 @@ msgid ""
5253
"<https://www.tcl.tk>`_. Tcl/Tk is fully portable to the macOS, Windows, and"
5354
" Unix platforms."
5455
msgstr ""
56+
"Python 的标准构建包括一个指向 Tcl/Tk 部件集的面向对象的接口,称为 :ref:`tkinter <Tkinter>` 。 "
57+
"这可能是最容易安装(因为它包含在大多数 Python 的 `二进制发行版 <https://www.python.org/downloads/>`_ "
58+
"中)和使用的。关于 Tk 的更多信息,包括指向源代码的信息,见 `Tcl/Tk 主页 <https://www.tcl.tk>`_ 。 Tcl/Tk "
59+
"可以完全移植到 macOS 、 Windows 和 Unix 平台。"
5560

5661
#: ../../faq/gui.rst:28
5762
msgid ""

glossary.po

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# Y. X., 2022
1212
# Freesand Leo <[email protected]>, 2022
1313
# WH-2099 <[email protected]>, 2022
14+
# Alpha Du <[email protected]>, 2022
1415
#
1516
#, fuzzy
1617
msgid ""
@@ -19,7 +20,7 @@ msgstr ""
1920
"Report-Msgid-Bugs-To: \n"
2021
"POT-Creation-Date: 2022-06-16 06:28+0000\n"
2122
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
22-
"Last-Translator: WH-2099 <wh2099@outlook.com>, 2022\n"
23+
"Last-Translator: Alpha Du <alphanow@gmail.com>, 2022\n"
2324
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2425
"MIME-Version: 1.0\n"
2526
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1068,6 +1069,8 @@ msgid ""
10681069
"For more details, see :ref:`generic alias types<types-genericalias>`, "
10691070
":pep:`483`, :pep:`484`, :pep:`585`, and the :mod:`typing` module."
10701071
msgstr ""
1072+
"更多细节,请参见 :ref:`通用别名类型 <types-genericalias>`, :pep:`483` , :pep:`484` , "
1073+
":pep:`585` , 和 :mod:`typing` 模块。"
10711074

10721075
#: ../../glossary.rst:530
10731076
msgid "GIL"
@@ -1347,7 +1350,7 @@ msgstr "更多信息可查看 :ref:`typeiter`。"
13471350
msgid ""
13481351
"CPython does not consistently apply the requirement that an iterator define "
13491352
":meth:`__iter__`."
1350-
msgstr ""
1353+
msgstr "CPython 没有统一应用迭代器定义 :meth:`__iter__` 的要求。"
13511354

13521355
#: ../../glossary.rst:676
13531356
msgid "key function"
@@ -2261,18 +2264,20 @@ msgid ""
22612264
"``U+0000``--``U+10FFFF``). To store or transfer a string, it needs to be "
22622265
"serialized as a sequence of bytes."
22632266
msgstr ""
2267+
"在Python中,一个字符串是一串 Unicode "
2268+
"代码点(范围为``U+0000``--``U+10FFFF``)。为了存储或传输一个字符串,它需要被序列化为一串字节。"
22642269

22652270
#: ../../glossary.rst:1143
22662271
msgid ""
22672272
"Serializing a string into a sequence of bytes is known as \"encoding\", and "
22682273
"recreating the string from the sequence of bytes is known as \"decoding\"."
2269-
msgstr ""
2274+
msgstr "将一个字符串序列化为一个字节序列被称为 \"编码\",而从字节序列中重新创建字符串被称为 \"解码\""
22702275

22712276
#: ../../glossary.rst:1146
22722277
msgid ""
22732278
"There are a variety of different text serialization :ref:`codecs <standard-"
22742279
"encodings>`, which are collectively referred to as \"text encodings\"."
2275-
msgstr ""
2280+
msgstr "有各种不同的文本序列化 :ref:`编码器 <standard-encodings>` ,它们被统称为 \"文本编码\""
22762281

22772282
#: ../../glossary.rst:1149
22782283
msgid "text file"

howto/curses.po

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# Translators:
77
# ww song <[email protected]>, 2021
88
# df2dc1c92e792f7ae8417c51df43db8f_594d92a <0f49be28017426edb1db1a2ab6e67088_717605>, 2021
9-
# Freesand Leo <[email protected]>, 2021
109
# ppcfish <[email protected]>, 2021
1110
# Siyuan Xu, 2021
11+
# Freesand Leo <[email protected]>, 2022
1212
#
1313
#, fuzzy
1414
msgid ""
@@ -17,7 +17,7 @@ msgstr ""
1717
"Report-Msgid-Bugs-To: \n"
1818
"POT-Creation-Date: 2022-06-16 06:28+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:53+0000\n"
20-
"Last-Translator: Siyuan Xu, 2021\n"
20+
"Last-Translator: Freesand Leo <[email protected]>, 2022\n"
2121
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version: 1.0\n"
2323
"Content-Type: text/plain; charset=UTF-8\n"
@@ -125,6 +125,8 @@ msgid ""
125125
"ported version called `UniCurses <https://pypi.org/project/UniCurses>`_ is "
126126
"available."
127127
msgstr ""
128+
"Python 的 Windows 版不包括 :mod:`curses` 模块。 一个可用的移植版本是 `UniCurses "
129+
"<https://pypi.org/project/UniCurses>`_。"
128130

129131
#: ../../howto/curses.rst:62
130132
msgid "The Python curses module"

howto/functional.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# Siyuan Xu, 2021
1515
# Freesand Leo <[email protected]>, 2021
1616
# chen_chao <[email protected]>, 2021
17+
# Alpha Du <[email protected]>, 2022
1718
#
1819
#, fuzzy
1920
msgid ""
@@ -22,7 +23,7 @@ msgstr ""
2223
"Report-Msgid-Bugs-To: \n"
2324
"POT-Creation-Date: 2022-06-16 06:28+0000\n"
2425
"PO-Revision-Date: 2021-06-28 00:53+0000\n"
25-
"Last-Translator: chen_chao <wenbushi@gmail.com>, 2021\n"
26+
"Last-Translator: Alpha Du <alphanow@gmail.com>, 2022\n"
2627
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2728
"MIME-Version: 1.0\n"
2829
"Content-Type: text/plain; charset=UTF-8\n"
@@ -163,6 +164,9 @@ msgid ""
163164
"their side effects of sending some text to the screen or pausing execution "
164165
"for a second."
165166
msgstr ""
167+
"有些语言对纯洁性要求非常严格,甚至没有诸如``a=3``或``c = a + "
168+
"b``之类的赋值语句,但很难避免所有的副作用,如打印到屏幕上或写到磁盘文件之类的副作用。另一个例子是调用 :func:`print` 或 "
169+
":func:`time.sleep` 函数,它们都没有返回一个有用的值。这两个函数被调用只是为了它们的副作用,即向屏幕发送一些文本或暂停执行一秒钟。"
166170

167171
#: ../../howto/functional.rst:73
168172
msgid ""
@@ -796,6 +800,8 @@ msgid ""
796800
"the generator; the exception is raised by the ``yield`` expression where the"
797801
" generator's execution is paused."
798802
msgstr ""
803+
":meth:`throw(value) <generator.throw>` 用于在生成器内部抛出异常;这个异常会在生成器暂停执行的时候由 "
804+
"``yield`` 表达式抛出。"
799805

800806
#: ../../howto/functional.rst:596
801807
msgid ""

0 commit comments

Comments
 (0)