Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 8 commits intopython:3.12fromrockleona:typing
Mar 5, 2024

Conversation

rockleona
Copy link
Collaborator

別點會暴雷

image

image

@mattwang44
Copy link
Collaborator

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

@weijay0804
Copy link
Contributor

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

Ok 沒問題👌

mattwang44 reacted with rocket emoji

@pythonpython deleted a commentJan 7, 2024
@pythonpython deleted a commentJan 7, 2024
@pythonpython deleted a commentJan 7, 2024
@pythonpython deleted a commentJan 7, 2024
@pythonpython deleted a commentJan 7, 2024
@pythonpython deleted a commentJan 7, 2024
@pythonpython deleted a commentJan 7, 2024
@pythonpython deleted a commentJan 7, 2024
@pythonpython deleted a commentJan 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 翻成「標注」,有什麼看法嗎?

rockleona and weijay0804 reacted with heart emoji
Copy link
CollaboratorAuthor

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:`型別變數"

rockleona and weijay0804 reacted with heart emoji

#: ../../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
CollaboratorAuthor

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?

rockleona reacted with eyes emoji
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

@weijay0804weijay0804 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 大大~

@mattwang44mattwang44 merged commit616aa4e intopython:3.12Mar 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mattwang44mattwang44mattwang44 approved these changes

@weijay0804weijay0804weijay0804 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@rockleona@mattwang44@weijay0804

[8]ページ先頭

©2009-2025 Movatter.jp