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 howto/sorting.po #906

Open
wants to merge 1 commit into
base: 3.13
Choose a base branch
from

Conversation

rockleona
Copy link
Collaborator

@rockleona rockleona commented May 15, 2024

screenshot

image

@rockleona rockleona changed the title feat(howto/sorting): update translation Update Translation howto/sorting.po May 15, 2024
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.

最後面 comment out 的翻譯可以都刪掉


#: ../../howto/sorting.rst:104
msgid "Operator Module Functions and Partial Function Evaluation"
msgstr ""
msgstr "Operator 模組函式以及部份函式 (partial function) 評估"
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • partial function 好像都不是這樣翻譯的,有什麼相關文章支持這種翻譯嗎?我過去是習慣直接寫原文不翻譯,維基百科頁面也沒有相對應的中文翻譯
  • evaluation 之前應該是說翻成「計算」、「給值」或「求值」(ref: evaluate 的翻譯 #748)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

parial function 我目前看到有人翻譯:

所以我才會寫上這樣的翻譯,看你覺得如何?

Copy link
Collaborator

@mattwang44 mattwang44 May 16, 2024

Choose a reason for hiding this comment

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

我覺得先翻成「部份函式」ok 但不是因為這些材料XD(而單純是因為直翻就是這樣)

  • 後者(教育部樂詞網)不是指 functional programming 的 partial function
    image
  • 前者雖然是良葛格QQ 但我還是覺得這並不是個有力的材料

Copy link
Collaborator

@mattwang44 mattwang44 May 16, 2024

Choose a reason for hiding this comment

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

btw 我以前有一處翻成「偏函式」(ref) 應該是更加錯誤的翻譯,這個詞好像是比較常指為在數學上的 partial function (ref)...但也有待查證

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

我覺得先翻成「部份函式」ok 但不是因為這些材料XD(而單純是因為直翻就是這樣)

  • 後者(教育部樂詞網)不是指 functional programming 的 partial function
    image
  • 前者雖然是良葛格QQ 但我還是覺得這並不是個有力的材料

確實是這樣沒錯,都是不同領域的詞彙,
但坦白說,我不確定其他語言會不會有這樣的功能跟邏輯,我有空再查查看QQ

Copy link
Collaborator

Choose a reason for hiding this comment

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

partial function 應該都蠻普遍的只是不一定有包成 lib or function,有包的像是 scala, Haskell 等文件都沒被中文化QQ,沒包的像是 C++ & javascript 都是用 bind() 實作就沒提到 partial function 相關字眼

Copy link
Collaborator

Choose a reason for hiding this comment

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

也可以開個 discussion 後就先放著

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

這邊好像還是沒有合適的內容,明早來開一下 discussion

howto/sorting.po Outdated
@@ -159,6 +162,9 @@ msgid ""
"<https://en.wikipedia.org/wiki/Arity>`_ of a multi-argument function making "
"it suitable for use as a key-function."
msgstr ""
"模組 :mod:`functools` 提供了另一個製作鍵函式的好用工具。:func:`~functools."
"partial` 函式可以減少多引數函式的\\ `引數數目 <https://en.wikipedia.org/wiki/"
"Arity>`_,並使它被當作鍵函式使用時來的更合適。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

最後一句語意好像怪怪的?

howto/sorting.po Outdated
@@ -387,6 +393,10 @@ msgid ""
"six comparison methods be implemented. The :func:`~functools.total_ordering` "
"decorator is provided to make that task easier."
msgstr ""
"然而,請注意,當 :meth:`~object.__lt__` 沒有被實做時,``<`` 可以回退 (fall "
"back) 使用 :meth:`~object.__gt__`\\ (有關技術上的細節資訊請看 :func:`object."
"__lt__` )。為了避免意外發生,:pep:`8` 建議所有六種的比較函式需要被實做。裝飾"
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
"__lt__` )。為了避免意外發生,:pep:`8` 建議所有六種的比較函式需要被實做。裝飾"
"__lt__` )。為了避免意外發生,:pep:`8` 建議所有六種的比較函式都需要被實作。裝飾"

howto/sorting.po Outdated
"然而,請注意,當 :meth:`~object.__lt__` 沒有被實做時,``<`` 可以回退 (fall "
"back) 使用 :meth:`~object.__gt__`\\ (有關技術上的細節資訊請看 :func:`object."
"__lt__` )。為了避免意外發生,:pep:`8` 建議所有六種的比較函式需要被實做。裝飾"
"子 :func:`~functools.total_ordering` 被提供用來讓任務更為簡單。"
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
" :func:`~functools.total_ordering` 被提供用來讓任務更為簡單。"
" :func:`~functools.total_ordering` 被提供用來讓任務更為簡單。"

@@ -159,6 +162,9 @@ msgid ""
"<https://en.wikipedia.org/wiki/Arity>`_ of a multi-argument function making "
"it suitable for use as a key-function."
msgstr ""
"模組 :mod:`functools` 提供了另一個製作鍵函式的好用工具。:func:`~functools."
Copy link
Collaborator

Choose a reason for hiding this comment

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

(亂入
這邊的 key-function的 key 要不要不要翻出來
因為原文他比較像是在解釋 sorted() 內的 key argument,轉成中文配程式碼的話我覺得有機會會卡

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

這邊是指 key-function 不要翻出來 嗎?XD
怕誤會意思

@mattwang44
Copy link
Collaborator

因應下週 python 正式 release 3.13,main branch 已經切換成 3.13 文件,要再麻煩你 rebase 並切換 target branch 🙏🏽

@rockleona
Copy link
Collaborator Author

因應下週 python 正式 release 3.13,main branch 已經切換成 3.13 文件,要再麻煩你 rebase 並切換 target branch 🙏🏽

Rebased, 然後之前 comment out 的內容都被移除了

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