Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate library/pkgutil.po #836

Open
wants to merge 3 commits into
base: 3.12
Choose a base branch
from

Conversation

mattwang44
Copy link
Collaborator

@mattwang44 mattwang44 commented Mar 8, 2024

resolve #835

Preview image

Copy link
Collaborator

@ken71301 ken71301 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed~

library/pkgutil.po Outdated Show resolved Hide resolved
@@ -60,13 +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` 檔案從表面上看是受信任的:除了"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in Lines 的敘述是這樣:
starting with import (followed by space or tab) are executed.
沒有別說是特殊情況
所以這裡要不要翻成類似這樣的(語意還沒有很通順)

但他不特別處理以 ``import`` 為開頭的行

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

沒錯先前翻譯不夠精準
先改成你說的版本,暫時想不到更好的

"能類似於 :file:`\\*.pth` 檔案(更多資訊請參閱 :mod:`site` 模組),但它不處理"
"以 ``import`` 開頭的特殊情況。:file:`\\*.pkg` 檔案從表面上看是受信任的:除了"
"檢查重複項之外,在 :file:`\\*.pkg` 檔案中找到的所有條目都將新增到路徑中,無論"
"它們是否存在於檔案系統。(這是一個功能。)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這邊的 feature 我不太確定跟術語表內的 feature 是不是同個東西
老實說我比較想翻成 特徵

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我覺得語意上接近。會特別註記應該是因為「看起來像 bug 但其實是 feature」,感覺還是比較接近功能?
e.g. feature release -> 功能發布?


#: ../../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` 上的尋檢"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise they will be all registered top level finders
比較像是
否則它們會是全部註冊的頂層尋檢器?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


否則它們全部會是被註冊的頂層尋檢器
不太確定這個 all 的語意實際上在哪裡

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我覺得應該是指那些 finder object 針對的套件
改成「否則它們全部會是在頂層被註冊的尋檢器」

Copy link
Collaborator

@mindihx mindihx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先存檔,剩下應該明天會看
這篇好難... pkgutil 完全不熟,英文我都有點看不懂在說什麼了XDD

library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
Copy link
Collaborator

@mindihx mindihx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
@mattwang44
Copy link
Collaborator Author

rebased

Comment on lines +55 to +56
"至套件的 :attr:`__path__` 中。如果想要將單一邏輯套件的不同部分以多個目錄的形"
"式來發布時,這會非常有用。"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這邊的意思是說把一個套件放到多個目錄裡面對嗎?
類似這樣?

Suggested change
"至套件的 :attr:`__path__` 中。如果想要將單一邏輯套件的不同部分以多個目錄的形"
"式來發布時,這會非常有用。"
"至套件的 :attr:`__path__` 中。如果想要將單一邏輯套件的不同部分,分配到多個目錄"
",這會非常有用。"

"它還會尋找與 *name* 引數相同的 ``*`` 作為開頭的 :file:`\\*.pkg` 檔案。此功能"
"類似於 :file:`\\*.pth` 檔案(更多資訊請參閱 :mod:`site` 模組),但他不特別處"
"理以 ``import`` 為開頭的行。:file:`\\*.pkg` 檔案從表面上看是受信任的:除了檢"
"查重複項之外,在 :file:`\\*.pkg` 檔案中找到的所有條目都將新增到路徑中,無論它"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

條目 -> 項目?
不過好像都差不多(?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我是習慣這樣,但好像也沒討論過XD

  • entry -> 條目
  • item -> 項目

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

entry 跟 item 感覺大部分情況都是可以混用的? 所以我都叫項目
條目是不是意思上跟項目又不太一樣,有種一條一條的條文之類的感覺(??)
項目比較 general(??)

@@ -60,13 +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` 檔案。此功能"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這樣會好懂一點嗎(?)

Suggested change
"它還會尋找與 *name* 引數相同的 ``*`` 作為開頭的 :file:`\\*.pkg` 檔案。此功能"
"它還會尋找 :file:`\\*.pkg` 檔案,其中 * 與 *name* 引數相符。此功能"

library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
library/pkgutil.po Outdated Show resolved Hide resolved
@@ -278,6 +330,10 @@ msgid ""
"inferred by inspection, repeated attempts to import must be done with this "
"form."
msgstr ""
"第一種形式僅是為了要向後相容。它假設點名稱 (dotted name) 的某些部分是一個套"
"件,其餘部分是該套件內某處的物件,其可能嵌入在其他物件內。由於無法透過檢查 "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前是不是有討論過 nested 要怎麼翻? 不過看起來好像有點怪(?)

Suggested change
"件,其餘部分是該套件內某處的物件,其可能嵌入在其他物件內。由於無法透過檢查 "
"件,其餘部分是該套件內某處的物件,其可能巢狀存在其他物件內。由於無法透過檢查 "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translate library/pkgutil.po
3 participants