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 library/timeit.po #650

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Conversation

mattwang44
Copy link
Collaborator

resolve #649

Preview image

@@ -35,6 +36,11 @@ msgid ""
"execution times. See also Tim Peters' introduction to the \"Algorithms\" "
"chapter in the second edition of *Python Cookbook*, published by O'Reilly."
msgstr ""
"該模組提供了一種對少量 Python 程式碼進行計時的簡單方法。它有一個\\ :ref:"
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.

你可以看看 preview,render 出來會是中文

Copy link
Collaborator

Choose a reason for hiding this comment

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

除了直接make出html來看之外,還有別的方法能知道 render 出來的文字嗎?
我一直以為像你貼的那張圖一樣,如果要render出中文就要寫得像 :ref:可呼叫介面 <python-interface> 這樣
所以我在看 :ref:timeit-command-line-interface 的時候才會覺得render出來會是英文

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TBH 看 build 出來的結果再決定是最直接的,因為也不好判斷 reference 到的那個 string 有沒有被翻譯(也有可能翻譯的當下 ref string 還沒翻但後來又被翻譯了)。想要做到看到 syntax 就知道他是否可能會跑出譯文的話,可能就要先讀懂 sphinx & cpython doc 裡面設定的規則與慣例,不過當然 efforts 就比較大。

library/timeit.po Outdated Show resolved Hide resolved
@@ -45,29 +51,33 @@ msgid ""
"The following example shows how the :ref:`timeit-command-line-interface` can "
"be used to compare three different expressions:"
msgstr ""
"以下範例展示了如何使用\\ :ref:`timeit-command-line-interface`\\ 來比較三個不"
Copy link
Collaborator

Choose a reason for hiding this comment

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

在rst語法內看到 "\ " 是在顯示時忽略這個空格對吧? 我想確認一下:D

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

@mattwang44 mattwang44 Sep 14, 2023

Choose a reason for hiding this comment

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

對,讓它有空格的效果,但不要 render 出空格

image
(應該要把這張圖的內容整理到 wiki 但一直還沒做...)

@@ -190,6 +230,9 @@ msgid ""
"call :meth:`.timeit`. The second argument specifies the *number* argument "
"for :meth:`.timeit`."
msgstr ""
"這是一個方便的函式,它會重複呼叫 :meth:`.timeit` 並回傳結果列表。第一個引數指"
Copy link
Collaborator

Choose a reason for hiding this comment

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

這裡的list 該翻譯成 列表 還是 串列 ?

Copy link
Collaborator Author

@mattwang44 mattwang44 Sep 16, 2023

Choose a reason for hiding this comment

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

我是覺得都可以。覺得可以翻成「結果列表」(他其實就是個串列,只是列表與串列英文都是 list)或是「包含結果的串列」

Copy link
Collaborator

Choose a reason for hiding this comment

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

我是覺得list翻成列表也很順(只是術語表裡面寫串列),這邊應該是都可以啦

library/timeit.po Outdated Show resolved Hide resolved
@mattwang44 mattwang44 requested a review from ken71301 September 16, 2023 08:16
@ken71301
Copy link
Collaborator

LGTM~

@mattwang44 mattwang44 merged commit 6309010 into python:3.12 Sep 18, 2023
@mattwang44 mattwang44 deleted the library/timeit branch September 18, 2023 04:04
beccalzh pushed a commit to beccalzh/python-docs-zh-tw that referenced this pull request Sep 4, 2024
* feat: translate `library/timeit.po`

* chore: update based on review comments
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.

Translate library/timeit.po
2 participants