-
-
Notifications
You must be signed in to change notification settings - Fork 215
Translate rst:595 to rst:702 #713
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -843,75 +843,76 @@ msgstr "" | |||||
|
||||||
#: ../../library/string.rst:595 | ||||||
msgid "Format examples" | ||||||
msgstr "" | ||||||
msgstr "格式範例" | ||||||
|
||||||
#: ../../library/string.rst:597 | ||||||
msgid "" | ||||||
"This section contains examples of the :meth:`str.format` syntax and " | ||||||
"comparison with the old ``%``-formatting." | ||||||
msgstr "" | ||||||
msgstr "本節包含 :meth:`str.format` 語法以及與舊式 ``%`` 格式化的比較。" | ||||||
|
||||||
#: ../../library/string.rst:600 | ||||||
msgid "" | ||||||
"In most of the cases the syntax is similar to the old ``%``-formatting, with " | ||||||
"the addition of the ``{}`` and with ``:`` used instead of ``%``. For " | ||||||
"example, ``'%03.2f'`` can be translated to ``'{:03.2f}'``." | ||||||
msgstr "" | ||||||
msgstr "此語法在大多情況下與舊式的 ``%`` 格式化類似,只是增加了 ``{}`` 和 ``:`` 來取代 ``%``。" | ||||||
"例如, ``'%03.2f'`` 可以改寫為 ``'{:03.2f}'`` 。" | ||||||
|
||||||
#: ../../library/string.rst:604 | ||||||
msgid "" | ||||||
"The new format syntax also supports new and different options, shown in the " | ||||||
"following examples." | ||||||
msgstr "" | ||||||
msgstr "新的語法還支援新的選項,將在以下的範例中說明。" | ||||||
|
||||||
#: ../../library/string.rst:607 | ||||||
msgid "Accessing arguments by position::" | ||||||
msgstr "" | ||||||
msgstr "按位置取得引數" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. IDE裡面直接改會長這樣 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 補充一下,有另一個比較簡潔的寫法 |
||||||
|
||||||
#: ../../library/string.rst:620 | ||||||
msgid "Accessing arguments by name::" | ||||||
msgstr "" | ||||||
msgstr "按名稱取得引數" | ||||||
|
||||||
#: ../../library/string.rst:628 | ||||||
msgid "Accessing arguments' attributes::" | ||||||
msgstr "" | ||||||
msgstr "取得引數的屬性" | ||||||
|
||||||
#: ../../library/string.rst:643 | ||||||
msgid "Accessing arguments' items::" | ||||||
msgstr "" | ||||||
msgstr "取得引數的值: ::" | ||||||
|
||||||
#: ../../library/string.rst:649 | ||||||
msgid "Replacing ``%s`` and ``%r``::" | ||||||
msgstr "" | ||||||
msgstr "替換 ``%s`` 和 ``%r``: ::" | ||||||
|
||||||
#: ../../library/string.rst:654 | ||||||
msgid "Aligning the text and specifying a width::" | ||||||
msgstr "" | ||||||
msgstr "對齊文字以及指定寬度: ::" | ||||||
|
||||||
#: ../../library/string.rst:665 | ||||||
msgid "Replacing ``%+f``, ``%-f``, and ``% f`` and specifying a sign::" | ||||||
msgstr "" | ||||||
msgstr "替換 ``%+f`` , ``%-f`` 和 ``% f`` 以及指定正負號: ::" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 標點符號與英文間無需空格
Suggested change
|
||||||
|
||||||
#: ../../library/string.rst:674 | ||||||
msgid "" | ||||||
"Replacing ``%x`` and ``%o`` and converting the value to different bases::" | ||||||
msgstr "" | ||||||
msgstr "替換 ``%x`` 或 ``%o`` 用來根據不同的進制轉換其值: ::" | ||||||
|
||||||
#: ../../library/string.rst:683 | ||||||
msgid "Using the comma as a thousands separator::" | ||||||
msgstr "" | ||||||
msgstr "使用逗號作為千位分隔符: ::" | ||||||
|
||||||
#: ../../library/string.rst:688 | ||||||
msgid "Expressing a percentage::" | ||||||
msgstr "" | ||||||
msgstr "表示為百分比: ::" | ||||||
|
||||||
#: ../../library/string.rst:695 | ||||||
msgid "Using type-specific formatting::" | ||||||
msgstr "" | ||||||
msgstr "作為特定類型格式: ::" | ||||||
|
||||||
#: ../../library/string.rst:702 | ||||||
msgid "Nesting arguments and more complex examples::" | ||||||
msgstr "" | ||||||
msgstr "巢狀引數及更多複雜範例: ::" | ||||||
|
||||||
#: ../../library/string.rst:736 | ||||||
msgid "Template strings" | ||||||
|
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.
這裏的formatting會不會翻成 格式 比較好?
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.
下面的formatting亦同