-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
base: 3.12
Are you sure you want to change the base?
Conversation
9bc3925
to
fec0140
Compare
There was a problem hiding this 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
@@ -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` 檔案從表面上看是受信任的:除了" |
There was a problem hiding this comment.
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`` 為開頭的行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
沒錯先前翻譯不夠精準
先改成你說的版本,暫時想不到更好的
library/pkgutil.po
Outdated
"能類似於 :file:`\\*.pth` 檔案(更多資訊請參閱 :mod:`site` 模組),但它不處理" | ||
"以 ``import`` 開頭的特殊情況。:file:`\\*.pkg` 檔案從表面上看是受信任的:除了" | ||
"檢查重複項之外,在 :file:`\\*.pkg` 檔案中找到的所有條目都將新增到路徑中,無論" | ||
"它們是否存在於檔案系統。(這是一個功能。)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這邊的 feature 我不太確定跟術語表內的 feature 是不是同個東西
老實說我比較想翻成 特徵
There was a problem hiding this comment.
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.po
Outdated
|
||
#: ../../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` 上的尋檢" |
There was a problem hiding this comment.
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
比較像是
否則它們會是全部註冊的頂層尋檢器
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
或
否則它們全部會是被註冊的頂層尋檢器
不太確定這個 all 的語意實際上在哪裡
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我覺得應該是指那些 finder object 針對的套件
改成「否則它們全部會是在頂層被註冊的尋檢器」
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先存檔,剩下應該明天會看
這篇好難... pkgutil 完全不熟,英文我都有點看不懂在說什麼了XDD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed
fec0140
to
eca88d2
Compare
eca88d2
to
12fc5db
Compare
rebased |
"至套件的 :attr:`__path__` 中。如果想要將單一邏輯套件的不同部分以多個目錄的形" | ||
"式來發布時,這會非常有用。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這邊的意思是說把一個套件放到多個目錄裡面對嗎?
類似這樣?
"至套件的 :attr:`__path__` 中。如果想要將單一邏輯套件的不同部分以多個目錄的形" | |
"式來發布時,這會非常有用。" | |
"至套件的 :attr:`__path__` 中。如果想要將單一邏輯套件的不同部分,分配到多個目錄" | |
"時,這會非常有用。" |
"它還會尋找與 *name* 引數相同的 ``*`` 作為開頭的 :file:`\\*.pkg` 檔案。此功能" | ||
"類似於 :file:`\\*.pth` 檔案(更多資訊請參閱 :mod:`site` 模組),但他不特別處" | ||
"理以 ``import`` 為開頭的行。:file:`\\*.pkg` 檔案從表面上看是受信任的:除了檢" | ||
"查重複項之外,在 :file:`\\*.pkg` 檔案中找到的所有條目都將新增到路徑中,無論它" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
條目 -> 項目?
不過好像都差不多(?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我是習慣這樣,但好像也沒討論過XD
- entry -> 條目
- item -> 項目
There was a problem hiding this comment.
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` 檔案。此功能" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這樣會好懂一點嗎(?)
"它還會尋找與 *name* 引數相同的 ``*`` 作為開頭的 :file:`\\*.pkg` 檔案。此功能" | |
"它還會尋找 :file:`\\*.pkg` 檔案,其中 * 與 *name* 引數相符。此功能" |
@@ -278,6 +330,10 @@ msgid "" | |||
"inferred by inspection, repeated attempts to import must be done with this " | |||
"form." | |||
msgstr "" | |||
"第一種形式僅是為了要向後相容。它假設點名稱 (dotted name) 的某些部分是一個套" | |||
"件,其餘部分是該套件內某處的物件,其可能嵌入在其他物件內。由於無法透過檢查 " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前是不是有討論過 nested 要怎麼翻? 不過看起來好像有點怪(?)
"件,其餘部分是該套件內某處的物件,其可能嵌入在其他物件內。由於無法透過檢查 " | |
"件,其餘部分是該套件內某處的物件,其可能巢狀存在其他物件內。由於無法透過檢查 " |
Co-authored-by: mindihx <[email protected]>
resolve #835
Preview