-
-
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
Translate library/timeit.po
#650
Conversation
@@ -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:" |
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.
你可以看看 preview,render 出來會是中文
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.
除了直接make出html來看之外,還有別的方法能知道 render 出來的文字嗎?
我一直以為像你貼的那張圖一樣,如果要render出中文就要寫得像 :ref:可呼叫介面 <python-interface>
這樣
所以我在看 :ref:timeit-command-line-interface
的時候才會覺得render出來會是英文
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.
TBH 看 build 出來的結果再決定是最直接的,因為也不好判斷 reference 到的那個 string 有沒有被翻譯(也有可能翻譯的當下 ref string 還沒翻但後來又被翻譯了)。想要做到看到 syntax 就知道他是否可能會跑出譯文的話,可能就要先讀懂 sphinx & cpython doc 裡面設定的規則與慣例,不過當然 efforts 就比較大。
@@ -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`\\ 來比較三個不" |
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.
在rst語法內看到 "\ " 是在顯示時忽略這個空格對吧? 我想確認一下:D
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.
@@ -190,6 +230,9 @@ msgid "" | |||
"call :meth:`.timeit`. The second argument specifies the *number* argument " | |||
"for :meth:`.timeit`." | |||
msgstr "" | |||
"這是一個方便的函式,它會重複呼叫 :meth:`.timeit` 並回傳結果列表。第一個引數指" |
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.
這裡的list 該翻譯成 列表 還是 串列 ?
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.
我是覺得都可以。覺得可以翻成「結果列表」(他其實就是個串列,只是列表與串列英文都是 list)或是「包含結果的串列」
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.
我是覺得list翻成列表也很順(只是術語表裡面寫串列),這邊應該是都可以啦
LGTM~ |
* feat: translate `library/timeit.po` * chore: update based on review comments
resolve #649
Preview