Skip to content

Commit

Permalink
fix(library/pkgutil): modify based on review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwang44 committed May 11, 2024
1 parent 5bb13b8 commit 12fc5db
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions library/pkgutil.po
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,20 @@ msgid ""
"pkg` file are added to the path, regardless of whether they exist on the "
"filesystem. (This is a feature.)"
msgstr ""
"它還會尋找從 ``*`` 與 *name* 引數相符之位置開始的 :file:`\\*.pkg` 檔案。此功"
"能類似於 :file:`\\*.pth` 檔案(更多資訊請參閱 :mod:`site` 模組),但它不處理"
" ``import`` 開頭的特殊情況。:file:`\\*.pkg` 檔案從表面上看是受信任的:除了"
"檢查重複項之外,在 :file:`\\*.pkg` 檔案中找到的所有條目都將新增到路徑中,無論"
"它們是否存在於檔案系統。(這是一個功能。)"
"它還會尋找與 *name* 引數相同的 ``*`` 作為開頭的 :file:`\\*.pkg` 檔案。此功能"
"類似於 :file:`\\*.pth` 檔案(更多資訊請參閱 :mod:`site` 模組),但他不特別處"
"理以 ``import`` 為開頭的行。:file:`\\*.pkg` 檔案從表面上看是受信任的:除了檢"
"查重複項之外,在 :file:`\\*.pkg` 檔案中找到的所有條目都將新增到路徑中,無論它"
"們是否存在於檔案系統。(這是一個功能。)"

#: ../../library/pkgutil.rst:41
msgid ""
"If the input path is not a list (as is the case for frozen packages) it is "
"returned unchanged. The input path is not modified; an extended copy is "
"returned. Items are only appended to the copy at the end."
msgstr ""
"如果輸入路徑不是串列(像是凍結套件 (frozen packag) 的情況),它將原封不動地被"
"回傳。輸入路徑不被修改;回傳擴充副本。僅將項目附加到副本的尾端。"
"如果輸入路徑不是串列(像是凍結套件 (frozen package) 的情況),它將原封不動地"
"被回傳。輸入路徑不會被修改;而是回傳擴充後的副本。僅將項目附加到副本的尾端。"

#: ../../library/pkgutil.rst:45
msgid ""
Expand Down Expand Up @@ -134,8 +134,8 @@ msgid ""
"The returned finder is cached in :data:`sys.path_importer_cache` if it was "
"newly created by a path hook."
msgstr ""
"如果回傳的尋檢器是由路徑勾點 (path hook) 所新建立的,則它會被快取在 :data:"
"`sys.path_importer_cache` 中。"
"如果回傳的尋檢器 (finder) 是由路徑勾點 (path hook) 所新建立的,則它會被快取"
"在 :data:`sys.path_importer_cache` 中。"

#: ../../library/pkgutil.rst:78
msgid ""
Expand All @@ -162,25 +162,25 @@ msgstr ""

#: ../../library/pkgutil.rst:109
msgid "Yield :term:`finder` objects for the given module name."
msgstr "產生 (yield) 給定模組名稱的 :term:`finder` 物件。"
msgstr "yield 給定模組名稱的 :term:`finder` 物件。"

#: ../../library/pkgutil.rst:111
msgid ""
"If fullname contains a ``'.'``, the finders will be for the package "
"containing fullname, otherwise they will be all registered top level finders "
"(i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`)."
msgstr ""
"如果 fullname 包含 ``'.'``,則尋檢器將針對包含 fullname 的套件,否則它們將全"
"部註冊頂層尋檢器(即 :data:`sys.meta_path` 和 :data:`sys.path_hooks` 上的尋檢"
")。"
"如果 fullname 包含 ``'.'``,則尋檢器將針對包含 fullname 的套件,否則它們全部"
"會是在頂層被註冊的尋檢器(即 :data:`sys.meta_path` 和 :data:`sys.path_hooks` "
"上的尋檢器)。"

#: ../../library/pkgutil.rst:115
msgid ""
"If the named module is in a package, that package is imported as a side "
"effect of invoking this function."
msgstr ""
"如果指定的模組位於套件中,則該套件將作為呼叫此函式的副作用 (side effect) "
"。"
"如果指定的模組位於套件中,則作為呼叫此函式的副作用 (side effect) ,該套件會被"
"引入。"

#: ../../library/pkgutil.rst:118
msgid "If no module name is specified, all top level finders are produced."
Expand All @@ -191,13 +191,13 @@ msgid ""
"Yields :class:`ModuleInfo` for all submodules on *path*, or, if *path* is "
"``None``, all top-level modules on :data:`sys.path`."
msgstr ""
"產生 *path* 上所有子模組的 :class:`ModuleInfo`,或者如果 *path* 為 ``None``,"
"則產生 :data:`sys.path` 上的所有頂層模組。"
"yield *path* 上所有子模組的 :class:`ModuleInfo`,或者如果 *path* 為 "
"``None``,則產生 :data:`sys.path` 上的所有頂層模組。"

#: ../../library/pkgutil.rst:130 ../../library/pkgutil.rst:151
msgid ""
"*path* should be either ``None`` or a list of paths to look for modules in."
msgstr "*path* 應該是 ``None`` 或用來尋找模組的路徑清單。"
msgstr "*path* 應該是 ``None`` 或用來尋找模組的路徑串列。"

#: ../../library/pkgutil.rst:132 ../../library/pkgutil.rst:153
msgid ""
Expand All @@ -220,7 +220,7 @@ msgid ""
"Yields :class:`ModuleInfo` for all modules recursively on *path*, or, if "
"*path* is ``None``, all accessible modules."
msgstr ""
"為 *path* 上的所有模組遞迴產生 :class:`ModuleInfo`,或如果 *path* 為 "
"為 *path* 上的所有模組遞迴 yield 出 :class:`ModuleInfo`,或如果 *path* 為 "
"``None`` 則產生所有可存取的模組。"

#: ../../library/pkgutil.rst:155
Expand Down Expand Up @@ -276,7 +276,7 @@ msgstr "該函式回傳一個二進位字串,它是指定資源的內容。"
msgid ""
"For packages located in the filesystem, which have already been imported, "
"this is the rough equivalent of::"
msgstr "對於位於檔案系統中且已過被引入的套件,這大致相當於: ::"
msgstr "對於位於檔案系統中且已被引入過的套件,這大致相當於: ::"

#: ../../library/pkgutil.rst:205
msgid ""
Expand Down Expand Up @@ -310,7 +310,7 @@ msgid ""
"where W is shorthand for a valid Python identifier and dot stands for a "
"literal period in these pseudo-regexes:"
msgstr ""
"*name* 預期要是以下格式之一的字串,其中 W 是有效 Python 識別器的簡寫,而點 "
"*name* 預期要是以下格式之一的字串,其中 W 是有效 Python 識別字的簡寫,而點 "
"(dot) 代表這些偽正規表示式 (pseudo-regex) 中的字面句點 (literal period):"

#: ../../library/pkgutil.rst:224
Expand Down

0 comments on commit 12fc5db

Please sign in to comment.