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

Skip to content

Commit 0cbac4e

Browse files
[po] auto sync
1 parent 4dbb61d commit 0cbac4e

53 files changed

Lines changed: 1279 additions & 1091 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.79%", "updated_at": "2024-02-10T02:55:35Z"}
1+
{"translation": "93.95%", "updated_at": "2024-02-16T02:04:57Z"}

howto/logging-cookbook.po

Lines changed: 151 additions & 151 deletions
Large diffs are not rendered by default.

library/__main__.po

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#
66
# Translators:
77
# Alpha Du <[email protected]>, 2022
8-
# Freesand Leo <[email protected]>, 2023
98
# 乐成 王, 2024
9+
# Freesand Leo <[email protected]>, 2024
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2024-02-09 14:13+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:54+0000\n"
18-
"Last-Translator: 乐成 王, 2024\n"
18+
"Last-Translator: Freesand Leo <[email protected]>, 2024\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"
@@ -25,23 +25,23 @@ msgstr ""
2525

2626
#: ../../library/__main__.rst:2
2727
msgid ":mod:`__main__` --- Top-level code environment"
28-
msgstr ":mod:`__main__`——顶层代码环境"
28+
msgstr ":mod:`__main__` ——顶层代码环境"
2929

3030
#: ../../library/__main__.rst:10
3131
msgid ""
3232
"In Python, the special name ``__main__`` is used for two important "
3333
"constructs:"
34-
msgstr "Python 中,特殊名 ``__main__`` 用于两个重要的构造:"
34+
msgstr "Python 的特殊名 ``__main__`` 用于两个重要的构造:"
3535

3636
#: ../../library/__main__.rst:12
3737
msgid ""
3838
"the name of the top-level environment of the program, which can be checked "
3939
"using the ``__name__ == '__main__'`` expression; and"
40-
msgstr "程序的顶层环境的名称,可用 ``__name__ == '__main__'`` 表达式来检查;以及"
40+
msgstr "程序的顶层环境的名称,可用表达式 ``__name__ == '__main__'`` 来检查;以及"
4141

4242
#: ../../library/__main__.rst:14
4343
msgid "the ``__main__.py`` file in Python packages."
44-
msgstr "Python 包中的 ``__main__.py`` 文件。"
44+
msgstr "Python 包中的文件 ``__main__.py``。"
4545

4646
#: ../../library/__main__.rst:16
4747
msgid ""
@@ -50,8 +50,8 @@ msgid ""
5050
"detail below. If you're new to Python modules, see the tutorial section "
5151
":ref:`tut-modules` for an introduction."
5252
msgstr ""
53-
"这两个机制都和 Python 模块有关——用户与它们如何交互,及它们之间如何交互下文详述。教程的 :ref:`tut-modules` "
54-
"一节为初学者介绍了 Python 模块。"
53+
"这两个机制都与 Python 模块相关——用户与它们如何交互,及它们之间如何交互——下文详述。而教程的 :ref:`tut-modules` "
54+
"一节则为初学者介绍了 Python 模块。"
5555

5656
#: ../../library/__main__.rst:25
5757
msgid "``__name__ == '__main__'``"
@@ -63,24 +63,23 @@ msgid ""
6363
"module's name. Usually, this is the name of the Python file itself without "
6464
"the ``.py`` extension::"
6565
msgstr ""
66-
"当一个 Python 模块或包被导入时,``__name__`` 会被设为模块的名称。 通常,这将是 Python 文件本身的名称去掉 ``.py`` "
67-
"后缀::"
66+
"当一个 Python 模块或包被导入时,``__name__`` 被设为模块的名称——通常为 Python 文件本身的名称去掉 ``.py`` 后缀:"
6867

6968
#: ../../library/__main__.rst:35
7069
msgid ""
7170
"If the file is part of a package, ``__name__`` will also include the parent "
7271
"package's path::"
73-
msgstr "如果文件是包的组成部分,则 ``__name__`` 还将包括父包的路径::"
72+
msgstr "如果文件是包的一部分,则 ``__name__`` 还将包括父包的路径"
7473

7574
#: ../../library/__main__.rst:42
7675
msgid ""
7776
"However, if the module is executed in the top-level code environment, its "
7877
"``__name__`` is set to the string ``'__main__'``."
79-
msgstr "不过,如果模块是在最高层级代码环境中执行的,则它的 ``__name__`` 会被设为字符串 ``'__main__'``。"
78+
msgstr "而若模块是在顶层代码环境中执行的,则其 ``__name__`` 被设为字符串 ``'__main__'``。"
8079

8180
#: ../../library/__main__.rst:46
8281
msgid "What is the \"top-level code environment\"?"
83-
msgstr "什么是“最高层级代码环境”?"
82+
msgstr "什么是“顶层代码环境”?"
8483

8584
#: ../../library/__main__.rst:48
8685
msgid ""
@@ -90,61 +89,59 @@ msgid ""
9089
"program needs. Sometimes \"top-level code\" is called an *entry point* to "
9190
"the application."
9291
msgstr ""
93-
"``__main__`` 是最高层级代码运行所在环境的名称。 “最高层级代码”即用户指定最先启动运行的 Python 模块。 "
94-
"它被称为“最高层级”是因为它将导入程序所需的所有其他模块。 有时“最高层级代码”也被称为应用的 *入口点*。"
92+
"``__main__`` 是顶层代码运行环境的名称。“顶层代码”是指由用户指定的最先开始运行的那一个 Python "
93+
"模块。之所以它是“顶层”,是因为它将导入程序所需的所有其它模块。有时“顶层代码”被称为应用程序的 *入口点*。"
9594

9695
#: ../../library/__main__.rst:53
9796
msgid "The top-level code environment can be:"
98-
msgstr "最高层级代码环境可以是:"
97+
msgstr "顶层代码环境可以是:"
9998

10099
#: ../../library/__main__.rst:55
101100
msgid "the scope of an interactive prompt::"
102-
msgstr "一个交互提示符的作用域::"
101+
msgstr "交互提示符的作用域:"
103102

104103
#: ../../library/__main__.rst:60
105104
msgid "the Python module passed to the Python interpreter as a file argument:"
106-
msgstr "作为文件参数传给 Python 解释器的 Python 模块:"
105+
msgstr "作为文件参数传给 Python 解释器的 Python 模块"
107106

108107
#: ../../library/__main__.rst:67
109108
msgid ""
110109
"the Python module or package passed to the Python interpreter with the "
111110
":option:`-m` argument:"
112-
msgstr "作为 :option:`-m` 参数传给 Python 解释器的 Python 模块或包:"
111+
msgstr " :option:`-m` 一起传给 Python 解释器的 Python 模块或包"
113112

114113
#: ../../library/__main__.rst:75
115114
msgid "Python code read by the Python interpreter from standard input:"
116-
msgstr "Python 解释器从标准输入中读取的 Python 代码:"
115+
msgstr "Python 解释器从标准输入中读取的 Python 代码"
117116

118117
#: ../../library/__main__.rst:86
119118
msgid ""
120119
"Python code passed to the Python interpreter with the :option:`-c` argument:"
121-
msgstr "作为 :option:`-c` 参数传递给 Python 解释器的 Python 代码:"
120+
msgstr " :option:`-c` 一起传给 Python 解释器的 Python 代码"
122121

123122
#: ../../library/__main__.rst:97
124123
msgid ""
125124
"In each of these situations, the top-level module's ``__name__`` is set to "
126125
"``'__main__'``."
127-
msgstr "在以上每个情形中,顶级模块的 ``__name__`` 被设置为 ``'__main__'`` 。"
126+
msgstr "上述每种情况中的顶层模块的 ``__name__`` 被设为 ``'__main__'``。"
128127

129128
#: ../../library/__main__.rst:100
130129
msgid ""
131130
"As a result, a module can discover whether or not it is running in the top-"
132131
"level environment by checking its own ``__name__``, which allows a common "
133132
"idiom for conditionally executing code when the module is not initialized "
134133
"from an import statement::"
135-
msgstr ""
136-
"因此,一个模块可以通过检查自己的 ``__name__`` "
137-
",来发现它是否在顶层环境中运行。这是允许在模块没有从导入语句中初始化的情况下,有条件地执行代码的一个常见的语句::"
134+
msgstr "作为结果,模块通过检查自己的 ``__name__`` 可发现自己是否运行于顶层环境,使一些代码仅当模块不是被导入语句初始化的时候才执行:"
138135

139136
#: ../../library/__main__.rst:111
140137
msgid ""
141138
"For a more detailed look at how ``__name__`` is set in all situations, see "
142139
"the tutorial section :ref:`tut-modules`."
143-
msgstr "关于在所有情况下 ``__name__`` 是如何设置的细节,请看教程部分 :ref:`tut-modules` 。"
140+
msgstr "关于在所有情况下 ``__name__`` 是被如何设置的,详见教程的 :ref:`tut-modules` 一节。"
144141

145142
#: ../../library/__main__.rst:116 ../../library/__main__.rst:239
146143
msgid "Idiomatic Usage"
147-
msgstr "常见用法"
144+
msgstr "惯用法"
148145

149146
#: ../../library/__main__.rst:118
150147
msgid ""

library/asyncio-eventloop.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ msgid ""
2020
msgstr ""
2121
"Project-Id-Version: Python 3.12\n"
2222
"Report-Msgid-Bugs-To: \n"
23-
"POT-Creation-Date: 2024-01-05 14:14+0000\n"
23+
"POT-Creation-Date: 2024-02-09 14:13+0000\n"
2424
"PO-Revision-Date: 2021-06-28 00:54+0000\n"
2525
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2626
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -2043,7 +2043,7 @@ msgstr "*stdin* 可以是以下对象之一:"
20432043
#: ../../library/asyncio-eventloop.rst:1471
20442044
#: ../../library/asyncio-eventloop.rst:1481
20452045
msgid "a file-like object"
2046-
msgstr "一个文件类对象"
2046+
msgstr "一个文件型对象"
20472047

20482048
#: ../../library/asyncio-eventloop.rst:1461
20492049
msgid ""
@@ -2113,7 +2113,7 @@ msgid ""
21132113
":meth:`~loop.connect_write_pipe` or :meth:`~loop.connect_read_pipe` for use "
21142114
"with the event loop."
21152115
msgstr ""
2116-
"如果作为 *stdin*, *stdout* 或 *stderr* 传入的文件类对象是代表一个管道,则该管道的另一端应当用 "
2116+
"如果作为 *stdin*, *stdout* 或 *stderr* 传入的文件型对象是代表一个管道,则该管道的另一端应当用 "
21172117
":meth:`~loop.connect_write_pipe` 或 :meth:`~loop.connect_read_pipe` "
21182118
"来注册以配合事件循环使用。"
21192119

library/chunk.po

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2023, Python Software Foundation
2+
# Copyright (C) 2001-2024, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
@@ -9,16 +9,16 @@
99
# Alpha Du <[email protected]>, 2021
1010
# walkinrain <[email protected]>, 2021
1111
# ppcfish <[email protected]>, 2021
12-
# Freesand Leo <[email protected]>, 2023
12+
# Freesand Leo <[email protected]>, 2024
1313
#
1414
#, fuzzy
1515
msgid ""
1616
msgstr ""
1717
"Project-Id-Version: Python 3.12\n"
1818
"Report-Msgid-Bugs-To: \n"
19-
"POT-Creation-Date: 2023-07-28 14:13+0000\n"
19+
"POT-Creation-Date: 2024-02-09 14:13+0000\n"
2020
"PO-Revision-Date: 2021-06-28 00:56+0000\n"
21-
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
21+
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2222
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2323
"MIME-Version: 1.0\n"
2424
"Content-Type: text/plain; charset=UTF-8\n"
@@ -72,7 +72,6 @@ msgid "0"
7272
msgstr "0"
7373

7474
#: ../../library/chunk.rst:36 ../../library/chunk.rst:38
75-
#: ../../library/chunk.rst:38
7675
msgid "4"
7776
msgstr "4"
7877

@@ -146,7 +145,7 @@ msgid ""
146145
"*inclheader* is true, the size given in the chunk header includes the size "
147146
"of the header. The default value is false."
148147
msgstr ""
149-
"代表一个分块的类。 *file* 参数预期为一个文件类对象。 特别地也允许该类的实例。 唯一必需的方法是 "
148+
"代表一个分块的类。 *file* 参数预期为一个文件型对象。 特别地也允许该类的实例。 唯一必需的方法是 "
150149
":meth:`~io.IOBase.read`。 如果存在 :meth:`~io.IOBase.seek` 和 "
151150
":meth:`~io.IOBase.tell` 方法并且没有引发异常,它们也会被使用。 如果存在这些方法并且引发了异常,则它们不应改变目标对象。 "
152151
"如果可选参数 *align* 为真值,则分块应当以 2 字节边界对齐。 如果 *align* 为假值,则不使用对齐。 此参数默认为真值。 如果可选参数 "

library/codecs.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.12\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2024-01-12 14:14+0000\n"
18+
"POT-Creation-Date: 2024-02-09 14:13+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:56+0000\n"
2020
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -529,7 +529,7 @@ msgid ""
529529
"In addition, the following error handler is specific to the given codecs:"
530530
msgstr "此外,以下错误处理方案被专门用于指定的编解码器:"
531531

532-
#: ../../library/codecs.rst:393 ../../library/codecs.rst:13
532+
#: ../../library/codecs.rst:13 ../../library/codecs.rst:393
533533
msgid "Codecs"
534534
msgstr "编解码器"
535535

@@ -1029,7 +1029,7 @@ msgstr ""
10291029
msgid ""
10301030
"The *stream* argument must be a file-like object open for writing text or "
10311031
"binary data, as appropriate for the specific codec."
1032-
msgstr "*stream* 参数必须为一个基于特定编解码器打开用于写入文本或二进制数据的文件类对象。"
1032+
msgstr "*stream* 参数必须为一个基于特定编解码器打开用于写入文本或二进制数据的文件型对象。"
10331033

10341034
#: ../../library/codecs.rst:734
10351035
msgid ""
@@ -1109,7 +1109,7 @@ msgstr ""
11091109
msgid ""
11101110
"The *stream* argument must be a file-like object open for reading text or "
11111111
"binary data, as appropriate for the specific codec."
1112-
msgstr "*stream* 参数必须为一个基于特定编解码器打开用于读取文本或二进制数据的文件类对象。"
1112+
msgstr "*stream* 参数必须为一个基于特定编解码器打开用于读取文本或二进制数据的文件型对象。"
11131113

11141114
#: ../../library/codecs.rst:789
11151115
msgid ""
@@ -1245,7 +1245,7 @@ msgid ""
12451245
"resp. Error handling is done in the same way as defined for the stream "
12461246
"readers and writers."
12471247
msgstr ""
1248-
"创建一个 :class:`StreamReaderWriter` 实例。 *stream* 必须为一个文件类对象。 *Reader* 和 "
1248+
"创建一个 :class:`StreamReaderWriter` 实例。 *stream* 必须为一个文件型对象。 *Reader* 和 "
12491249
"*Writer* 必须为分别提供了 :class:`StreamReader` 和 :class:`StreamWriter` 接口的工厂函数或类。 "
12501250
"错误处理通过与流式读取器和写入器所定义的相同方式来完成。"
12511251

@@ -1287,7 +1287,7 @@ msgstr "你可以使用这些对象来进行透明转码,例如从 Latin-1 转
12871287

12881288
#: ../../library/codecs.rst:908
12891289
msgid "The *stream* argument must be a file-like object."
1290-
msgstr "*stream* 参数必须为一个文件类对象。"
1290+
msgstr "*stream* 参数必须为一个文件型对象。"
12911291

12921292
#: ../../library/codecs.rst:910
12931293
msgid ""

0 commit comments

Comments
 (0)