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

Skip to content

Commit 2d987bd

Browse files
[po] auto sync
1 parent c437c40 commit 2d987bd

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

library/pkgutil.po

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,38 +132,40 @@ msgid ""
132132
":exc:`ImportError` and only returns the loader rather than the full "
133133
":class:`ModuleSpec`."
134134
msgstr ""
135+
"这是针对 :func:`importlib.util.find_spec` 的向下兼容包装器,它将大多数失败转换为 :exc:`ImportError`"
136+
" 并且只返回加载器而不是完整的 :class:`ModuleSpec`。"
135137

136138
#: ../../library/pkgutil.rst:87 ../../library/pkgutil.rst:104
137139
#: ../../library/pkgutil.rst:119 ../../library/pkgutil.rst:140
138140
#: ../../library/pkgutil.rst:161 ../../library/pkgutil.rst:200
139141
msgid ""
140142
"Updated to be based directly on :mod:`importlib` rather than relying on the "
141143
"package internal :pep:`302` import emulation."
142-
msgstr ""
144+
msgstr "更新为直接基于 :mod:`importlib` 而不是依赖于包内部的 :pep:`302` 导入模拟。"
143145

144146
#: ../../library/pkgutil.rst:91 ../../library/pkgutil.rst:123
145147
msgid "Updated to be based on :pep:`451`"
146-
msgstr ""
148+
msgstr "更新为基于 :pep:`451`"
147149

148150
#: ../../library/pkgutil.rst:96
149151
msgid "Retrieve a :term:`finder` for the given *path_item*."
150-
msgstr ""
152+
msgstr "为给定的 *path_item* 获取一个 :term:`finder`。"
151153

152154
#: ../../library/pkgutil.rst:98
153155
msgid ""
154156
"The returned finder is cached in :data:`sys.path_importer_cache` if it was "
155157
"newly created by a path hook."
156-
msgstr ""
158+
msgstr "返回的查找器如果是由一个路径钩子新建的则会被缓存至 :data:`sys.path_importer_cache`。"
157159

158160
#: ../../library/pkgutil.rst:101
159161
msgid ""
160162
"The cache (or part of it) can be cleared manually if a rescan of "
161163
":data:`sys.path_hooks` is necessary."
162-
msgstr ""
164+
msgstr "如果需要重新扫描 :data:`sys.path_hooks` 则缓存(或其一部分)可以被手动清空。"
163165

164166
#: ../../library/pkgutil.rst:111
165167
msgid "Get a :term:`loader` object for *module_or_name*."
166-
msgstr ""
168+
msgstr "为 *module_or_name* 获取一个 :term:`loader`。"
167169

168170
#: ../../library/pkgutil.rst:113
169171
msgid ""
@@ -173,17 +175,21 @@ msgid ""
173175
"not already imported, its containing package (if any) is imported, in order "
174176
"to establish the package ``__path__``."
175177
msgstr ""
178+
"如果模块或包可通过正常导入机制来访问,则会返回该机制相关部分的包装器。 如果模块无法找到或导入则返回 ``None``。 "
179+
"如果指定的模块尚未被导入,则包含它的包(如果存在)会被导入,以便建立包 ``__path__``。"
176180

177181
#: ../../library/pkgutil.rst:129
178182
msgid "Yield :term:`finder` objects for the given module name."
179-
msgstr ""
183+
msgstr "为给定的模块名称产生 :term:`finder` 对象。"
180184

181185
#: ../../library/pkgutil.rst:131
182186
msgid ""
183187
"If fullname contains a ``'.'``, the finders will be for the package "
184188
"containing fullname, otherwise they will be all registered top level finders"
185189
" (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`)."
186190
msgstr ""
191+
"如果完整名称包含一个 ``'.'``,查找器将针对包含该完整名称的包,否则它们将被注册为最高层级查找器(即同时用于 "
192+
":data:`sys.meta_path` 和 :data:`sys.path_hooks`)。"
187193

188194
#: ../../library/pkgutil.rst:135
189195
msgid ""

tutorial/controlflow.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ msgid ""
247247
"attributes) from the value into variables."
248248
msgstr ""
249249
":keyword:`match` 语句接受一个表达式并把它的值与以一个或多个 case 语句块形式给出的一系列模式进行比较。 此语句看上去类似于 "
250-
"C、Java、JavaScript 等其他编程语言中的 switch 语句,但它还能够从值中提取子部分(序列元素或对象属性)并赋值给变量。"
250+
"C、Java、JavaScript(以及许多其他编程语言)中的 switch 语句,但它还能够从值中提取子部分(序列元素或对象属性)并赋值给变量。"
251251

252252
#: ../../tutorial/controlflow.rst:259
253253
msgid ""

0 commit comments

Comments
 (0)