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

Skip to content

Commit 90f3119

Browse files
[po] auto sync
1 parent 26cc555 commit 90f3119

11 files changed

Lines changed: 1061 additions & 859 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.79%", "updated_at": "2023-09-30T06:42:07Z"}
1+
{"translation": "89.72%", "updated_at": "2023-10-06T16:43:26Z"}

library/__main__.po

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
2+
# Copyright (C) 2001-2023, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Alpha Du <[email protected]>, 2022
8-
# Freesand Leo <[email protected]>, 2022
7+
# Rafael Fontenelle <[email protected]>, 2023
98
#
109
#, fuzzy
1110
msgid ""
1211
msgstr ""
13-
"Project-Id-Version: Python 3.10\n"
12+
"Project-Id-Version: Python 3.11\n"
1413
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2022-11-04 14:28+0000\n"
16-
"PO-Revision-Date: 2021-06-28 00:54+0000\n"
17-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2022\n"
18-
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
14+
"POT-Creation-Date: 2023-10-06 14:42+0000\n"
15+
"PO-Revision-Date: 2023-05-24 02:17+0000\n"
16+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
17+
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1918
"MIME-Version: 1.0\n"
2019
"Content-Type: text/plain; charset=UTF-8\n"
2120
"Content-Transfer-Encoding: 8bit\n"
@@ -165,12 +164,12 @@ msgstr ""
165164

166165
#: ../../library/__main__.rst:127
167166
msgid ""
168-
"Putting as few statements as possible in the block below ``if __name___ == "
167+
"Putting as few statements as possible in the block below ``if __name__ == "
169168
"'__main__'`` can improve code clarity and correctness. Most often, a "
170169
"function named ``main`` encapsulates the program's primary behavior::"
171170
msgstr ""
172-
"将尽可能少的语句放在下面的 ``if __name___ == '__main__'`` 块中可以提高代码的清晰度和正确性。最常见的,一个名为 "
173-
"``main`` 的函数封装了程序的主要行为::"
171+
"将尽可能少的语句放在位于 ``if __name__ == '__main__'`` 之下的代码块中可以提高代码的清晰度和准确度。 通常,将由一个名为 "
172+
"``main`` 的函数来封装程序的主要行为::"
174173

175174
#: ../../library/__main__.rst:151
176175
msgid ""
@@ -295,13 +294,11 @@ msgstr ""
295294

296295
#: ../../library/__main__.rst:241
297296
msgid ""
298-
"The contents of ``__main__.py`` typically isn't fenced with ``if __name__ =="
299-
" '__main__'`` blocks. Instead, those files are kept short, functions to "
300-
"execute from other modules. Those other modules can then be easily unit-"
301-
"tested and are properly reusable."
297+
"The content of ``__main__.py`` typically isn't fenced with an ``if __name__ "
298+
"== '__main__'`` block. Instead, those files are kept short and import "
299+
"functions to execute from other modules. Those other modules can then be "
300+
"easily unit-tested and are properly reusable."
302301
msgstr ""
303-
"``__main__.py`` 的内容通常不是用 ``if __name__ == '__main__'`` 区块围起来的。 "
304-
"相反,这些文件保持简短,功能从其他模块执行。 那些其他模块可以很容易地进行单元测试,并且可以适当地重复使用。"
305302

306303
#: ../../library/__main__.rst:246
307304
msgid ""
@@ -325,10 +322,10 @@ msgstr ""
325322
msgid ""
326323
"See :mod:`venv` for an example of a package with a minimal ``__main__.py`` "
327324
"in the standard library. It doesn't contain a ``if __name__ == '__main__'`` "
328-
"block. You can invoke it with ``python3 -m venv [directory]``."
325+
"block. You can invoke it with ``python -m venv [directory]``."
329326
msgstr ""
330-
"参见 :mod:`venv` 以了解标准库中最小 ``__main__.py`` 的软件包示例。它不包含一个 ``if __name__ == "
331-
"'__main__'`` 块。你可以用 ``python3 -m venv [directory]`` 调用它。"
327+
"请参阅 :mod:`venv` 以获取标准库中具有最小化 ``__main__.py`` 的软件包示例。 它不包含 ``if __name__ == "
328+
"'__main__'`` 代码块。 你可以用 ``python -m venv [directory]`` 来发起调用。"
332329

333330
#: ../../library/__main__.rst:264
334331
msgid ""
@@ -394,20 +391,20 @@ msgstr ""
394391

395392
#: ../../library/__main__.rst:339
396393
msgid ""
397-
"Python inserts an empty ``__main__`` module in :attr:`sys.modules` at "
394+
"Python inserts an empty ``__main__`` module in :data:`sys.modules` at "
398395
"interpreter startup, and populates it by running top-level code. In our "
399396
"example this is the ``start`` module which runs line by line and imports "
400397
"``namely``. In turn, ``namely`` imports ``__main__`` (which is really "
401398
"``start``). That's an import cycle! Fortunately, since the partially "
402-
"populated ``__main__`` module is present in :attr:`sys.modules`, Python "
399+
"populated ``__main__`` module is present in :data:`sys.modules`, Python "
403400
"passes that to ``namely``. See :ref:`Special considerations for __main__ "
404401
"<import-dunder-main>` in the import system's reference for details on how "
405402
"this works."
406403
msgstr ""
407-
"Python 解释器启动时会在 :attr:`sys.modules` 中插入一个空的 ``__main__`` 模块,并通过运行顶层代码来填充它。 "
408-
"在我们的例子中这就是 ``start`` 模块,它逐行运行并导入 ``namely``。 反过来,``namely`` 会导入 ``__main__``"
409-
" (这其实是 ``start``)。 这就是一个导入循环! 幸运的是,由于部分填充的 ``__main__`` 模块存在于 "
410-
":attr:`sys.modules` 中,Python 会将其传递给 ``namely``。 请参阅导入系统参考资料中 :ref:`有关 "
404+
"Python 解释器启动时会在 :data:`sys.modules` 中插入一个空的 ``__main__`` 模块,并通过运行最高层级代码来填充它。"
405+
" 在我们的例子中这就是 ``start`` 模块,它逐行运行并导入 ``namely``。 相应地,``namely`` 会导入 "
406+
"``__main__`` (它实际上就是 ``start``)。 这就是一个导入循环! 幸运的是,由于部分填充的 ``__main__`` 模块存在于 "
407+
":data:`sys.modules` 中,Python 会将其传递给 ``namely``。 请参阅导入系统的参考文档中 :ref:`有关 "
411408
"__main__ 的特别考量 <import-dunder-main>` 来了解其中的详情。"
412409

413410
#: ../../library/__main__.rst:348

0 commit comments

Comments
 (0)