Skip to content

Commit 9f87af6

Browse files
mattwang44mindihx
andauthored
Apply suggestions from code review
Co-authored-by: mindihx <[email protected]>
1 parent 12fc5db commit 9f87af6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

library/pkgutil.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ msgid ""
104104
"ModuleSpec`."
105105
msgstr ""
106106
"這是一個 :func:`importlib.util.find_spec` 的向後相容包裝器,它將大多數的失敗"
107-
"轉換為 :exc:`ImportError` 並且僅回傳載入器而不是完整的 :class:`importlib."
107+
"轉換為 :exc:`ImportError` 並且僅回傳載入器 (loader) 而不是完整的 :class:`importlib."
108108
"machinery.ModuleSpec`。"
109109

110110
#: ../../library/pkgutil.rst:60 ../../library/pkgutil.rst:81
@@ -179,7 +179,7 @@ msgid ""
179179
"If the named module is in a package, that package is imported as a side "
180180
"effect of invoking this function."
181181
msgstr ""
182-
"如果指定的模組位於套件中,則作為呼叫此函式的副作用 (side effect) ,該套件會被"
182+
"如果指定的模組位於套件中,則作為呼叫此函式的副作用 (side effect),該套件會被"
183183
"引入。"
184184

185185
#: ../../library/pkgutil.rst:118
@@ -192,7 +192,7 @@ msgid ""
192192
"``None``, all top-level modules on :data:`sys.path`."
193193
msgstr ""
194194
"yield *path* 上所有子模組的 :class:`ModuleInfo`,或者如果 *path* 為 "
195-
"``None``,則產生 :data:`sys.path` 上的所有頂層模組。"
195+
"``None``,則 yield :data:`sys.path` 上的所有頂層模組。"
196196

197197
#: ../../library/pkgutil.rst:130 ../../library/pkgutil.rst:151
198198
msgid ""
@@ -221,7 +221,7 @@ msgid ""
221221
"*path* is ``None``, all accessible modules."
222222
msgstr ""
223223
"為 *path* 上的所有模組遞迴 yield 出 :class:`ModuleInfo`,或如果 *path* 為 "
224-
"``None`` 則產生所有可存取的模組。"
224+
"``None`` 則 yield 所有可存取的模組。"
225225

226226
#: ../../library/pkgutil.rst:155
227227
msgid ""
@@ -262,7 +262,7 @@ msgid ""
262262
"rooted name (starting with a ``/``)."
263263
msgstr ""
264264
"這是 :term:`loader` :meth:`get_data <importlib.abc.ResourceLoader.get_data>` "
265-
"API 的包裝器。*package* 引數應該是採用標準模組格式 (``foo.bar``) 的套件名稱。"
265+
"API 的包裝器。*package* 引數應該是採用標準模組格式的套件名稱 (``foo.bar``)。"
266266
"*resource* 引數應為相對檔案名稱的形式,並使用 ``/`` 作為路徑分隔符號。不允許"
267267
"使用父目錄名稱 ``..``,也不允許使用根目錄名稱(以 ``/`` 開頭)。"
268268

@@ -301,8 +301,8 @@ msgid ""
301301
"issue:`12915`) - and equivalent functionality is also in widely used third-"
302302
"party packages such as setuptools, Django and Pyramid."
303303
msgstr ""
304-
"標準函式庫中的許多地方都使用了此功能(請參閱 :issue:`12915`),且相同功能也被"
305-
"用於擁有廣大使用者的第三方套件,如 setuptools、Django 和 Pyramid。"
304+
"標準函式庫中的許多地方都使用了此功能(請參閱 :issue:`12915`),且相同功能也存在"
305+
"被廣泛使用的第三方套件,如 setuptools、Django 和 Pyramid。"
306306

307307
#: ../../library/pkgutil.rst:220
308308
msgid ""

0 commit comments

Comments
 (0)