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

Skip to content

Commit e9b7feb

Browse files
[po] auto sync
1 parent 2233b05 commit e9b7feb

3 files changed

Lines changed: 24 additions & 11 deletions

File tree

c-api/import.po

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ msgid ""
4343
"module, or ``NULL`` with an exception set on failure. A failing import of a"
4444
" module doesn't leave the module in :data:`sys.modules`."
4545
msgstr ""
46+
"这是下面 :c:func:`PyImport_ImportModuleEx` 的简化版接口,将 *globals* 和 *locals* 参数设为 "
47+
"``NULL`` 并将 *level* 设为 0。 当 *name* 参数包含一个点号(即指定了一个包的子模块)时,*fromlist* "
48+
"参数会被设为列表 ``['*']`` 这样返回值将为所指定的模块而不像在其他情况下那样为包含模块的最高层级包。 (不幸的是,这在 *name* "
49+
"实际上是指定一个子包而非子模块时将有一个额外的副作用:在包的 ``__all__`` 变量中指定的子模块会被加载。) "
50+
"返回一个对所导入模块的新引用,或是在导入失败时返回 ``NULL`` 并设置一个异常。 模块导入失败同模块不会留 在 "
51+
":data:`sys.modules` 中。"
4652

4753
#: ../../c-api/import.rst:28 ../../c-api/import.rst:89
4854
msgid "This function always uses absolute imports."
@@ -60,12 +66,14 @@ msgid ""
6066
"module locks for most purposes, so this function's special behaviour isn't "
6167
"needed anymore."
6268
msgstr ""
69+
"在导入锁被另一线程掌控时此函数会立即失败。 但是从 Python 3.3 "
70+
"起,锁方案在大多数情况下都已切换为针对每个模块加锁,所以此函数的特殊行为已无必要。"
6371

6472
#: ../../c-api/import.rst:46
6573
msgid ""
6674
"Import a module. This is best described by referring to the built-in Python"
6775
" function :func:`__import__`."
68-
msgstr ""
76+
msgstr "导入一个模块。 请参阅内置 Python 函数 :func:`__import__` 获取完善的相关描述。"
6977

7078
#: ../../c-api/import.rst:49 ../../c-api/import.rst:65
7179
msgid ""
@@ -75,12 +83,14 @@ msgid ""
7583
"requested is normally the top-level package, unless a non-empty *fromlist* "
7684
"was given."
7785
msgstr ""
86+
"返回值是一个对所导入模块或最高层级包的新引用,或是在导入失败时则为 ``NULL`` 并设置一个异常。 与 :func:`__import__` "
87+
"类似,当请求一个包的子模块时返回值通常为该最高层级包,除非给出了一个非空的 *fromlist*。"
7888

7989
#: ../../c-api/import.rst:55
8090
msgid ""
8191
"Failing imports remove incomplete module objects, like with "
8292
":c:func:`PyImport_ImportModule`."
83-
msgstr ""
93+
msgstr "导入失败将移动不完整的模块对象,就像 :c:func:`PyImport_ImportModule` 那样。"
8494

8595
#: ../../c-api/import.rst:61
8696
msgid ""

distutils/sourcedist.po

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#
66
# Translators:
77
# cdarlint <[email protected]>, 2017
8-
# Freesand Leo <[email protected]>, 2018
98
# 叶浚安 <[email protected]>, 2019
109
# Kelly Hwong <[email protected]>, 2019
1110
# ppcfish <[email protected]>, 2019
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: 2021-01-01 05:02+0000\n"
1919
"PO-Revision-Date: 2017-02-16 17:41+0000\n"
20-
"Last-Translator: ppcfish <ppcfish@gmail.com>, 2019\n"
20+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 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"
@@ -27,7 +27,7 @@ msgstr ""
2727

2828
#: ../../distutils/sourcedist.rst:5
2929
msgid "Creating a Source Distribution"
30-
msgstr ""
30+
msgstr "创建源代码分发包"
3131

3232
#: ../../distutils/_setuptools_disclaimer.rst:3
3333
msgid ""
@@ -172,6 +172,8 @@ msgid ""
172172
"``tar``), under Unix you can specify the ``owner`` and ``group`` names that "
173173
"will be set for each member of the archive."
174174
msgstr ""
175+
"当使用任意 ``tar`` 格式 (``gztar``, ``bztar``, ``xztar``, ``ztar`` 或 ``tar``) 时,在 "
176+
"Unix 中你可以指定将为每个归档成员设置的 ``owner`` 和 ``group`` 名称。"
175177

176178
#: ../../distutils/sourcedist.rst:69
177179
msgid ""

library/pkgutil.po

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Translators:
77
# Shengjing Zhu <[email protected]>, 2018
88
# laazy <[email protected]>, 2020
9+
# Freesand Leo <[email protected]>, 2022
910
#
1011
#, fuzzy
1112
msgid ""
@@ -14,7 +15,7 @@ msgstr ""
1415
"Report-Msgid-Bugs-To: \n"
1516
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
1617
"PO-Revision-Date: 2017-02-16 23:22+0000\n"
17-
"Last-Translator: laazy <[email protected]>, 2020\n"
18+
"Last-Translator: Freesand Leo <[email protected]>, 2022\n"
1819
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1920
"MIME-Version: 1.0\n"
2021
"Content-Type: text/plain; charset=UTF-8\n"
@@ -44,7 +45,7 @@ msgstr "一个包含模块信息的简短摘要的命名元组。"
4445
msgid ""
4546
"Extend the search path for the modules which comprise a package. Intended "
4647
"use is to place the following code in a package's :file:`__init__.py`::"
47-
msgstr ""
48+
msgstr "扩展组成包的模块的搜索路径。 预期用途是将以下代码放到包的 :file:`__init__.py` 中::"
4849

4950
#: ../../library/pkgutil.rst:28
5051
msgid ""
@@ -318,18 +319,18 @@ msgstr ""
318319
msgid ""
319320
"The function will return an object (which might be a module), or raise one "
320321
"of the following exceptions:"
321-
msgstr ""
322+
msgstr "此函数将返回一个对象(可能为模块),或是引发下列异常之一:"
322323

323324
#: ../../library/pkgutil.rst:263
324325
msgid ":exc:`ValueError` -- if *name* isn't in a recognised format."
325-
msgstr ""
326+
msgstr ":exc:`ValueError` -- 如果 *name* 不为可识别的格式。"
326327

327328
#: ../../library/pkgutil.rst:265
328329
msgid ":exc:`ImportError` -- if an import failed when it shouldn't have."
329-
msgstr ""
330+
msgstr ":exc:`ImportError` -- 如果导入本应成功但却失败。"
330331

331332
#: ../../library/pkgutil.rst:267
332333
msgid ""
333334
":exc:`AttributeError` -- If a failure occurred when traversing the object "
334335
"hierarchy within the imported package to get to the desired object."
335-
msgstr ""
336+
msgstr ":exc:`AttributeError` -- 当在遍历所导入包的对象层级结构以获取想要的对象时遭遇失败。"

0 commit comments

Comments
 (0)