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 reference/import.po #986

Merged
merged 6 commits into from
Nov 11, 2024
Merged

Conversation

ken71301
Copy link
Collaborator

@ken71301 ken71301 commented Oct 8, 2024

  • 382 / 388 些微超譯
  • 399 populated 用填充總覺得怪,換了個寫法
  • 403 根據已棄用的 load_module 判斷其為接管載入模組之功能

@ken71301 ken71301 changed the title fix: to rst: 406 Translate reference/import.po Oct 8, 2024
@ken71301 ken71301 changed the title Translate reference/import.po Translate reference/import.po Oct 8, 2024
@josix
Copy link
Collaborator

josix commented Oct 12, 2024

Finished review translations before ../../reference/import.rst:406


#: ../../reference/import.rst:406
msgid ""
"The import system has taken over the boilerplate responsibilities of "
"loaders. These were previously performed by the :meth:`importlib.abc.Loader."
"load_module` method."
msgstr ""
"引入系統已接管載入器中載入模組的功能。之前是由 :meth:`importlib.abc.Loader."
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

這句話翻成
引入系統已接管載入器的模板責任。
聽起來有夠怪,但是後面也有 boilerplate 這個詞出現,不知道這邊有沒有更好的用法

Copy link
Collaborator

Choose a reason for hiding this comment

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

「引入系統已接管載入器的模板責任。」我覺得不會到很奇怪(只是可惜 template 和 boilerplate 都只能翻成「模板」)。

PEP 451 對於 loader 的說明來看,load_module() 過去 (Python 3.3) 的確訂定了 load module 時該做哪些事情,我覺得這就是原文稱他有 boilerplate responsibilities 的原因;而 PEP 451 就是針對 PEP 451 設計不良之處做修正、改為使用 ModuleSpec 後,在 3.5 開始 load_module() 就被標為 deprecated(至今都還是 pending removal、仍有 load module 功能)。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

那我翻成模板責任吧,會付個原文

@ken71301 ken71301 marked this pull request as ready for review November 4, 2024 14:18
@ken71301 ken71301 requested a review from josix November 4, 2024 14:18
- 382 / 388 些微超譯
- 399 populated 用填充總覺得怪,換了個寫法
- 403 根據已棄用的 load_module 判斷其為接管載入模組之功能
- 需確認 boilerplate 是否需翻譯
reference/import.po Outdated Show resolved Hide resolved

#: ../../reference/import.rst:406
msgid ""
"The import system has taken over the boilerplate responsibilities of "
"loaders. These were previously performed by the :meth:`importlib.abc.Loader."
"load_module` method."
msgstr ""
"引入系統已接管載入器中載入模組的功能。之前是由 :meth:`importlib.abc.Loader."
Copy link
Collaborator

Choose a reason for hiding this comment

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

「引入系統已接管載入器的模板責任。」我覺得不會到很奇怪(只是可惜 template 和 boilerplate 都只能翻成「模板」)。

PEP 451 對於 loader 的說明來看,load_module() 過去 (Python 3.3) 的確訂定了 load module 時該做哪些事情,我覺得這就是原文稱他有 boilerplate responsibilities 的原因;而 PEP 451 就是針對 PEP 451 設計不良之處做修正、改為使用 ModuleSpec 後,在 3.5 開始 load_module() 就被標為 deprecated(至今都還是 pending removal、仍有 load module 功能)。

reference/import.po Outdated Show resolved Hide resolved
reference/import.po Outdated Show resolved Hide resolved
Copy link
Collaborator

@mattwang44 mattwang44 left a comment

Choose a reason for hiding this comment

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

LGTM
再請 @josix 幫忙最後 review

Copy link
Collaborator

@josix josix left a comment

Choose a reason for hiding this comment

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

LGTM~

@josix josix merged commit 2efe0c8 into python:3.13 Nov 11, 2024
1 check passed
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.

3 participants