Skip to content

Commit

Permalink
Translate rst:595 to rst:702 (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-chin authored and mattwang44 committed Jan 26, 2024
1 parent a850336 commit de480a9
Showing 1 changed file with 41 additions and 16 deletions.
57 changes: 41 additions & 16 deletions library/string.po
Original file line number Diff line number Diff line change
Expand Up @@ -843,75 +843,100 @@ 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 "按位置取得引數:\n"
"\n"
"::"

#: ../../library/string.rst:620
msgid "Accessing arguments by name::"
msgstr ""
msgstr "按名稱取得引數:\n"
"\n"
"::"

#: ../../library/string.rst:628
msgid "Accessing arguments' attributes::"
msgstr ""
msgstr "取得引數的屬性:\n"
"\n"
"::"

#: ../../library/string.rst:643
msgid "Accessing arguments' items::"
msgstr ""
msgstr "取得引數的內容:\n"
"\n"
"::"

#: ../../library/string.rst:649
msgid "Replacing ``%s`` and ``%r``::"
msgstr ""
msgstr "替換 ``%s`` 和 ``%r``:\n"
"\n"
"::"

#: ../../library/string.rst:654
msgid "Aligning the text and specifying a width::"
msgstr ""
msgstr "對齊文字以及指定寬度:\n"
"\n"
"::"

#: ../../library/string.rst:665
msgid "Replacing ``%+f``, ``%-f``, and ``% f`` and specifying a sign::"
msgstr ""
msgstr "替換 ``%+f``,``%-f`` 和 ``% f`` 以及指定正負號:\n"
"\n"
"::"

#: ../../library/string.rst:674
msgid ""
"Replacing ``%x`` and ``%o`` and converting the value to different bases::"
msgstr ""
msgstr "替換 ``%x`` 或 ``%o`` 用來根據不同的進制轉換其值:\n"
"\n"
"::"

#: ../../library/string.rst:683
msgid "Using the comma as a thousands separator::"
msgstr ""
msgstr "使用逗號作為千位分隔符:\n"
"\n"
"::"

#: ../../library/string.rst:688
msgid "Expressing a percentage::"
msgstr ""
msgstr "表示為百分比:\n"
"\n"
"::"

#: ../../library/string.rst:695
msgid "Using type-specific formatting::"
msgstr ""
msgstr "作為特定類型格式:\n"
"\n"
"::"

#: ../../library/string.rst:702
msgid "Nesting arguments and more complex examples::"
msgstr ""
msgstr "巢狀引數及更多複雜範例:\n"
"\n"
"::"

#: ../../library/string.rst:736
msgid "Template strings"
Expand Down

0 comments on commit de480a9

Please sign in to comment.