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

Skip to content

Commit 3fb69f0

Browse files
[po] auto sync
1 parent 592a167 commit 3fb69f0

3 files changed

Lines changed: 26 additions & 11 deletions

File tree

c-api/init.po

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ msgid ""
436436
"On Windows, changes the console mode from ``O_TEXT`` to ``O_BINARY``, which "
437437
"will also affect non-Python uses of the console using the C Runtime."
438438
msgstr ""
439+
"在 Windows 上,将控制台模式从 ``O_TEXT`` 改为 ``O_BINARY``,这还将影响使用 C 运行时的非 Python "
440+
"的控制台使用。"
439441

440442
#: ../../c-api/init.rst:262
441443
msgid ""
@@ -716,7 +718,7 @@ msgstr ""
716718

717719
#: ../../c-api/init.rst:523
718720
msgid "``'Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam'``"
719-
msgstr ""
721+
msgstr "``'Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam'``"
720722

721723
#: ../../c-api/init.rst:527
722724
msgid ""
@@ -1027,7 +1029,7 @@ msgstr ""
10271029
#: ../../c-api/init.rst:847
10281030
msgid ""
10291031
"In Python 3.6 and older, this function created the GIL if it didn't exist."
1030-
msgstr ""
1032+
msgstr "在 Python 3.6 及更老的版本中,此函数会在 GIL 不存在时创建它。"
10311033

10321034
#: ../../c-api/init.rst:849
10331035
msgid "The function now does nothing."
@@ -1352,7 +1354,7 @@ msgstr ""
13521354

13531355
#: ../../c-api/init.rst:1147
13541356
msgid "The function now takes a *tstate* parameter."
1355-
msgstr ""
1357+
msgstr "此函数现在可接受一个 *tstate* 形参。"
13561358

13571359
#: ../../c-api/init.rst:1152
13581360
msgid "Get the frame evaluation function."
@@ -1886,7 +1888,7 @@ msgstr ""
18861888

18871889
#: ../../c-api/init.rst:1614
18881890
msgid "Thread Local Storage Support"
1889-
msgstr ""
1891+
msgstr "线程本地存储支持"
18901892

18911893
#: ../../c-api/init.rst:1618
18921894
msgid ""

extending/newtypes_tutorial.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# Jerry Chen <[email protected]>, 2018
88
# 刘士 <[email protected]>, 2018
99
# Harry Liu. <[email protected]>, 2019
10-
# Freesand Leo <[email protected]>, 2020
1110
# meowmeowcat <[email protected]>, 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: 2021-01-01 05:02+0000\n"
1919
"PO-Revision-Date: 2018-04-08 04:04+0000\n"
20-
"Last-Translator: meowmeowcat <meowmeowcat1211@gmail.com>, 2021\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"
@@ -216,7 +216,7 @@ msgstr ""
216216

217217
#: ../../extending/newtypes_tutorial.rst:153
218218
msgid "We set the class flags to :const:`Py_TPFLAGS_DEFAULT`. ::"
219-
msgstr ""
219+
msgstr "我们将类旗标设为 :const:`Py_TPFLAGS_DEFAULT`。 ::"
220220

221221
#: ../../extending/newtypes_tutorial.rst:157
222222
msgid ""

library/pkgutil.po

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ msgstr ""
191191
msgid ""
192192
"If the named module is in a package, that package is imported as a side "
193193
"effect of invoking this function."
194-
msgstr ""
194+
msgstr "如果指定的模块位于一个包内,则该包会作为发起调用此函数的附带影响被导入。"
195195

196196
#: ../../library/pkgutil.rst:138
197197
msgid "If no module name is specified, all top level finders are produced."
198-
msgstr ""
198+
msgstr "如果未指定模块名称,则会产生所有的最高层级查找器。"
199199

200200
#: ../../library/pkgutil.rst:147
201201
msgid ""
@@ -206,12 +206,12 @@ msgstr ""
206206
#: ../../library/pkgutil.rst:150 ../../library/pkgutil.rst:171
207207
msgid ""
208208
"*path* should be either ``None`` or a list of paths to look for modules in."
209-
msgstr ""
209+
msgstr "*path* 应当为 ``None`` 或一个作为查找模块目标的路径的列表。"
210210

211211
#: ../../library/pkgutil.rst:152 ../../library/pkgutil.rst:173
212212
msgid ""
213213
"*prefix* is a string to output on the front of every module name on output."
214-
msgstr ""
214+
msgstr "*prefix* 是要在输出时输出到每个模块名称之前的字符串。"
215215

216216
#: ../../library/pkgutil.rst:156 ../../library/pkgutil.rst:195
217217
msgid ""
@@ -220,19 +220,26 @@ msgid ""
220220
"for :class:`importlib.machinery.FileFinder` and "
221221
":class:`zipimport.zipimporter`."
222222
msgstr ""
223+
"只适用于定义了 ``iter_modules()`` 方法的 :term:`finder`。 该接口是非标准的,因此本模块还提供了针对 "
224+
":class:`importlib.machinery.FileFinder` 和 :class:`zipimport.zipimporter` "
225+
"的实现。"
223226

224227
#: ../../library/pkgutil.rst:168
225228
msgid ""
226229
"Yields :class:`ModuleInfo` for all modules recursively on *path*, or, if "
227230
"*path* is ``None``, all accessible modules."
228231
msgstr ""
232+
"在 *path* 上递归地为所有模块产生 :class:`ModuleInfo`,或者如果 *path* 为 "
233+
"``None``,则为所有可访问的模块产生。"
229234

230235
#: ../../library/pkgutil.rst:175
231236
msgid ""
232237
"Note that this function must import all *packages* (*not* all modules!) on "
233238
"the given *path*, in order to access the ``__path__`` attribute to find "
234239
"submodules."
235240
msgstr ""
241+
"请注意此函数必须导入给定 *path* 上所有的 *packages* (*而不是* 所有的模块!),以便能访问 ``__path__`` "
242+
"属性来查找子模块。"
236243

237244
#: ../../library/pkgutil.rst:179
238245
msgid ""
@@ -242,6 +249,8 @@ msgid ""
242249
":exc:`ImportError`\\s are caught and ignored, while all other exceptions are"
243250
" propagated, terminating the search."
244251
msgstr ""
252+
"*onerror* 是在当试图导入包如果发生任何异常则将附带一个参数(被导入的包的名称)被调用的函数。 如果没有提供 *onerror* 函数,则 "
253+
":exc:`ImportError` 会被捕获并被忽略,而其他异常则会被传播,导致模块搜索的终结。"
245254

246255
#: ../../library/pkgutil.rst:185
247256
msgid "Examples::"
@@ -260,6 +269,10 @@ msgid ""
260269
"``/`` as the path separator. The parent directory name ``..`` is not "
261270
"allowed, and nor is a rooted name (starting with a ``/``)."
262271
msgstr ""
272+
"这是一个针对 :term:`loader` :meth:`get_data "
273+
"<importlib.abc.ResourceLoader.get_data>` API 的包装器。 *package* 参数应为一个标准模块格式 "
274+
"(``foo.bar``) 的包名称。 *resource* 参数应为相对路径文件名的形式,使用 ``/`` 作为路径分隔符。 父目录名 "
275+
"``..``,以及根目录名 (以 ``/`` 打头) 均不允许使用。"
263276

264277
#: ../../library/pkgutil.rst:216
265278
msgid ""

0 commit comments

Comments
 (0)