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

Update Translation librart/typing.po rst:457 ~ rst:762 #757

Merged
merged 8 commits into from
Mar 5, 2024

Conversation

rockleona
Copy link
Collaborator

別點會暴雷

image

image

@mattwang44
Copy link
Collaborator

@weijay0804 最近有空來幫忙 review 嗎?

@weijay0804
Copy link
Contributor

@weijay0804 最近有空來幫忙 review 嗎?

Ok 沒問題👌

library/typing.po Outdated Show resolved Hide resolved
library/typing.po Outdated Show resolved Hide resolved
library/typing.po Show resolved Hide resolved
library/typing.po Outdated Show resolved Hide resolved
library/typing.po Show resolved Hide resolved
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
@python python deleted a comment Jan 7, 2024
Co-authored-by: Jay <74105438+weijay0804@users.noreply.github.com>
@@ -632,86 +632,103 @@ msgid ""
"<Type>`) may accept values that are classes themselves -- specifically, it "
"will accept the *class object* of ``C``. For example::"
msgstr ""
"一個變數被註解為 ``C`` 可以接受一個型別為 ``C`` 的值。相對的,一個變數備註解"
Copy link
Collaborator

Choose a reason for hiding this comment

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

一個我自己很久以前未與他人討論過的翻譯習慣是:

  • annotate -> 註釋
  • comment -> 註解

也有看過其他人把 annotate 翻成「標注」,有什麼看法嗎?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

一個我自己很久以前未與他人討論過的翻譯習慣是:

  • annotate -> 註釋
  • comment -> 註解

我同意這邊的用法,
而且這邊是我的失誤,上次 PR 的時候我們有討論過用法了

所以往後都會維持這樣的翻譯

Copy link
Contributor

Choose a reason for hiding this comment

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

喔喔,這裡用「註釋」的確比較貼近語意


#: ../../library/typing.rst:485
msgid ""
"The only legal parameters for :class:`type` are classes, :data:`Any`, :ref:"
"`type variables <generics>`, and unions of any of these types. For example::"
msgstr ""
":class:`type` 僅有的合法參數是類別、:data:`Any`、\\ :ref:`型別變數 "
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit 中文標點符號旁可以不用加斜線

Suggested change
":class:`type` 僅有的合法參數是類別、:data:`Any`、\\ :ref:`型別變數 "
":class:`type` 僅有的合法參數是類別、:data:`Any`、:ref:`型別變數 "


#: ../../library/typing.rst:503
msgid "User-defined generic types"
msgstr ""
msgstr "使用者定義泛用型別"
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.

我發現其他檔案跟 術語表 都是使用「泛型型別」

會進行修正


#: ../../library/typing.rst:552
msgid ""
"A generic type can have any number of type variables. All varieties of :"
"class:`TypeVar` are permissible as parameters for a generic type::"
msgstr ""
"一個泛型型別可以有任意數量的型別變數。所有種類的 :class:`TypeVar` 都可以作為"
"泛型行別的參數: ::"
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo?

Copy link
Contributor

Choose a reason for hiding this comment

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

拍謝,眼幹沒檢查到😅


#: ../../library/typing.rst:651
msgid ""
"Classes generic over a :class:`ParamSpec` can also be created using explicit "
"inheritance from :class:`Generic`. In this case, ``**`` is not used::"
msgstr ""
"具有 :class:`ParamSpec` 的泛型類別可以透過顯示繼承 :class:`Generic` 進行建"
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
"具有 :class:`ParamSpec` 的泛型類別可以透過顯示繼承 :class:`Generic` 進行建"
"具有 :class:`ParamSpec` 的泛型類別可以透過顯性繼承 :class:`Generic` 進行建"

Copy link
Contributor

@weijay0804 weijay0804 left a comment

Choose a reason for hiding this comment

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

LGTM

感謝 Matt 大大~

@mattwang44 mattwang44 merged commit 616aa4e into python:3.12 Mar 5, 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.

None yet

3 participants