Skip to content

Translate library/pkgutil.po #836

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

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Conversation

mattwang44
Copy link
Collaborator

@mattwang44 mattwang44 commented Mar 8, 2024

resolve #835

Preview image

@mattwang44 mattwang44 requested a review from mindihx March 8, 2024 13:22
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~

@@ -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

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

@mattwang44
Copy link
Collaborator Author

rebased

"它還會尋找與 *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(??)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

entry 跟 item 感覺大部分情況都是可以混用的?

「條目」從辭典上的意義來看屬於「項目的一種」。的確有時候互換是通暢的,但我覺得大部分時候還是可以選得出比較合適的一個, e.g.

  • python dict 的 key 可以被稱為 entry 但 k-v pair 是 item (dict.items())
  • wikipedia 的文章習慣稱為「條目」(ref),但用「項目」也聽得懂

條目是不是意思上跟項目又不太一樣,有種一條一條的條文之類的感覺

我倒是覺得這邊想表現的就是這個意思(某紀錄中的一則),要換成「項目」不至於聽不懂但「條目」應該相對貼切

@mattwang44 mattwang44 requested a review from mindihx June 10, 2024 17:18
mindihx
mindihx previously approved these changes Jun 17, 2024
@mattwang44 mattwang44 merged commit e0ffdb0 into python:3.12 Jun 17, 2024
1 check passed
@mattwang44 mattwang44 deleted the library/pkgutil branch June 17, 2024 05:41
@mattwang44 mattwang44 mentioned this pull request Jul 8, 2024
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