From 8f6f40c5f18e600eb12234ea07e3b201ac0d02f7 Mon Sep 17 00:00:00 2001 From: a0987857017 Date: Sat, 25 Nov 2023 15:41:28 +0800 Subject: [PATCH 1/3] Translate rst:595 to rst:702 --- library/string.po | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/library/string.po b/library/string.po index 89796f864a..a2cb5c497f 100644 --- a/library/string.po +++ b/library/string.po @@ -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 "按位置取得引數" #: ../../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`` 以及指定正負號: ::" #: ../../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" From 057df41ed6860a5cd5337cd8373c24d3d4e75370 Mon Sep 17 00:00:00 2001 From: a0987857017 Date: Sat, 25 Nov 2023 16:10:16 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AD=AF=E6=96=87?= =?UTF-8?q?=E5=8F=8A=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/string.po | 52 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 14 deletions(-) diff --git a/library/string.po b/library/string.po index a2cb5c497f..1bfe933f0a 100644 --- a/library/string.po +++ b/library/string.po @@ -849,14 +849,14 @@ msgstr "格式範例" msgid "" "This section contains examples of the :meth:`str.format` syntax and " "comparison with the old ``%``-formatting." -msgstr "本節包含 :meth:`str.format` 語法以及與舊式 ``%`` 格式化的比較。" +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 @@ -867,52 +867,76 @@ 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 "替換 ``%s`` 和 ``%r``: ::" +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 "替換 ``%+f`` , ``%-f`` 和 ``% f`` 以及指定正負號: ::" +msgstr "替換 ``%+f``,``%-f`` 和 ``% f`` 以及指定正負號:\n" +"\n" +"::" #: ../../library/string.rst:674 msgid "" "Replacing ``%x`` and ``%o`` and converting the value to different bases::" -msgstr "替換 ``%x`` 或 ``%o`` 用來根據不同的進制轉換其值: ::" +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" From 738eb8a2129785fa175d97bd48932b444569f887 Mon Sep 17 00:00:00 2001 From: a0987857017 Date: Sat, 25 Nov 2023 16:55:13 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AD=AF=E6=96=87?= =?UTF-8?q?=E7=82=BA=E6=9B=B4=E8=B2=BC=E7=9A=84=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/string.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/string.po b/library/string.po index 1bfe933f0a..685d699d03 100644 --- a/library/string.po +++ b/library/string.po @@ -885,7 +885,7 @@ msgstr "取得引數的屬性:\n" #: ../../library/string.rst:643 msgid "Accessing arguments' items::" -msgstr "取得引數的值:\n" +msgstr "取得引數的內容:\n" "\n" "::"