-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Conversation
@weijay0804 最近有空來幫忙 review 嗎? |
Ok 沒問題👌 |
Co-authored-by: Jay <[email protected]>
library/typing.po
Outdated
@@ -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`` 的值。相對的,一個變數備註解" |
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.
一個我自己很久以前未與他人討論過的翻譯習慣是:
- annotate -> 註釋
- comment -> 註解
也有看過其他人把 annotate 翻成「標注」,有什麼看法嗎?
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.
一個我自己很久以前未與他人討論過的翻譯習慣是:
- annotate -> 註釋
- comment -> 註解
我同意這邊的用法,
而且這邊是我的失誤,上次 PR 的時候我們有討論過用法了
所以往後都會維持這樣的翻譯
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/typing.po
Outdated
|
||
#: ../../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:`型別變數 " |
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.
nit 中文標點符號旁可以不用加斜線
":class:`type` 僅有的合法參數是類別、:data:`Any`、\\ :ref:`型別變數 " | |
":class:`type` 僅有的合法參數是類別、:data:`Any`、:ref:`型別變數 " |
library/typing.po
Outdated
|
||
#: ../../library/typing.rst:503 | ||
msgid "User-defined generic types" | ||
msgstr "" | ||
msgstr "使用者定義泛用型別" |
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.
我發現其他檔案跟 術語表 都是使用「泛型型別」
會進行修正
library/typing.po
Outdated
|
||
#: ../../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` 都可以作為" | ||
"泛型行別的參數: ::" |
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.
typo?
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/typing.po
Outdated
|
||
#: ../../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` 進行建" |
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.
"具有 :class:`ParamSpec` 的泛型類別可以透過顯示繼承 :class:`Generic` 進行建" | |
"具有 :class:`ParamSpec` 的泛型類別可以透過顯性繼承 :class:`Generic` 進行建" |
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.
LGTM
感謝 Matt 大大~
別點會暴雷