From 58f37ae685e574671c23ad460ec5f651de81ab31 Mon Sep 17 00:00:00 2001 From: KNChiu Date: Sat, 4 May 2024 09:15:14 +0800 Subject: [PATCH 1/4] Translate 'library/functions.po' few translate-2 --- library/functions.po | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/library/functions.po b/library/functions.po index 20c0583c73..7cde5177d0 100644 --- a/library/functions.po +++ b/library/functions.po @@ -10,7 +10,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-02-26 00:03+0000\n" -"PO-Revision-Date: 2024-05-02 18:41+0800\n" +"PO-Revision-Date: 2024-05-04 08:46+0800\n" "Last-Translator: KNChiu \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -726,6 +726,8 @@ msgid "" "Class methods can now wrap other :term:`descriptors ` such as :" "func:`property`." msgstr "" +"Class methods 現在可以封裝其他 :term:`descriptors ` 例如 :func:" +"`property`" #: ../../library/functions.rst:284 msgid "" @@ -733,12 +735,17 @@ msgid "" "``__name__``, ``__qualname__``, ``__doc__`` and ``__annotations__``) and " "have a new ``__wrapped__`` attribute." msgstr "" +"Class method 現在繼承了 method 屬性(``__module__``, ``__name__``, " +"``__qualname__``, ``__doc__`` and ``__annotations__``),並擁有一個新的 " +"``__wrapped__`` 屬性。" #: ../../library/functions.rst:289 msgid "" "Class methods can no longer wrap other :term:`descriptors ` such " "as :func:`property`." msgstr "" +"Class methods 不能再包裝其他的 :term:`descriptors ` 例如 :func:" +"`property`。" #: ../../library/functions.rst:296 msgid "" @@ -786,6 +793,12 @@ msgid "" "*flags* argument is it -- the flags (future features and compiler options) " "in the surrounding code are ignored." msgstr "" +"可選引數 *flags* 和 *dont_inherit* 控制取用哪個 :ref:`compiler options ` 以及允許哪個 :ref:`future features `。如果兩者都不存" +"在(或兩者都為零),則會調用與 :func:`compile` 相同旗標的程式碼來編譯。如果給" +"定 *flags* 引數而未給定 *dont_inherit*(或為零)則無論如何都會使用由 *flags* " +"引數所指定的編譯器選項和 future 敘述。如果 *dont_inherit* 是一個非零整數,則" +"使用 *flags* 引數 -- 周圍程式碼中的旗標(未來功能和編譯器選項)將被忽略。" #: ../../library/functions.rst:322 msgid "" @@ -885,6 +898,8 @@ msgid "" "``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable " "support for top-level ``await``, ``async for``, and ``async with``." msgstr "" +"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` 現在可以傳遞旗標以啟用對頂層 ``await``、" +"``async for`` 和 ``async with`` 的支援。" #: ../../library/functions.rst:377 msgid "" @@ -1128,7 +1143,7 @@ msgstr "" msgid "" "The return value is the result of the evaluated expression. Syntax errors " "are reported as exceptions. Example:" -msgstr "" +msgstr "回傳值是評估表達式的結果。語法錯誤將被報告為異常。例如:" #: ../../library/functions.rst:555 msgid "" @@ -1156,7 +1171,7 @@ msgstr "" msgid "" "If the given source is a string, then leading and trailing spaces and tabs " "are stripped." -msgstr "" +msgstr "如果來源是一個字串,那麼其前後的空格和標籤會被移除。" #: ../../library/functions.rst:568 msgid "" From e8003d83ae768f84844544d68cd5309727fb814f Mon Sep 17 00:00:00 2001 From: KNChiu Date: Mon, 6 May 2024 16:42:20 +0800 Subject: [PATCH 2/4] 'library/function.po small fixes. --- library/functions.po | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/library/functions.po b/library/functions.po index 7cde5177d0..50435d2c85 100644 --- a/library/functions.po +++ b/library/functions.po @@ -10,7 +10,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-02-26 00:03+0000\n" -"PO-Revision-Date: 2024-05-04 08:46+0800\n" +"PO-Revision-Date: 2024-05-06 16:41+0800\n" "Last-Translator: KNChiu \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -726,7 +726,7 @@ msgid "" "Class methods can now wrap other :term:`descriptors ` such as :" "func:`property`." msgstr "" -"Class methods 現在可以封裝其他 :term:`descriptors ` 例如 :func:" +"Class methods 現在可以包裝其他 :term:`描述器 ` ,例如 :func:" "`property`" #: ../../library/functions.rst:284 @@ -736,7 +736,7 @@ msgid "" "have a new ``__wrapped__`` attribute." msgstr "" "Class method 現在繼承了 method 屬性(``__module__``, ``__name__``, " -"``__qualname__``, ``__doc__`` and ``__annotations__``),並擁有一個新的 " +"``__qualname__``、``__doc__`` 和 ``__annotations__``),並擁有一個新的 " "``__wrapped__`` 屬性。" #: ../../library/functions.rst:289 @@ -744,7 +744,7 @@ msgid "" "Class methods can no longer wrap other :term:`descriptors ` such " "as :func:`property`." msgstr "" -"Class methods 不能再包裝其他的 :term:`descriptors ` 例如 :func:" +"Class methods 不能再包裝其他的 :term:`描述器 `,例如 :func:" "`property`。" #: ../../library/functions.rst:296 @@ -793,12 +793,12 @@ msgid "" "*flags* argument is it -- the flags (future features and compiler options) " "in the surrounding code are ignored." msgstr "" -"可選引數 *flags* 和 *dont_inherit* 控制取用哪個 :ref:`compiler options ` 以及允許哪個 :ref:`future features `。如果兩者都不存" -"在(或兩者都為零),則會調用與 :func:`compile` 相同旗標的程式碼來編譯。如果給" -"定 *flags* 引數而未給定 *dont_inherit*(或為零)則無論如何都會使用由 *flags* " -"引數所指定的編譯器選項和 future 敘述。如果 *dont_inherit* 是一個非零整數,則" -"使用 *flags* 引數 -- 周圍程式碼中的旗標(未來功能和編譯器選項)將被忽略。" +"可選引數 *flags* 和 *dont_inherit* 控制啟用哪個 :ref:`編譯器選項 ` 以及允許哪個 :ref:`未來功能 `。如果兩者都不存在(或" +"兩者都為零),則會呼叫與 :func:`compile` 相同旗標的程式碼來編譯。如果給定 " +"*flags* 引數而未給定 *dont_inherit*(或為零)則無論如何都會使用由 *flags* 引" +"數所指定的編譯器選項和 future 敘述。如果 *dont_inherit* 是一個非零整數,則使" +"用 *flags* 引數 -- 周圍程式碼中的旗標(未來功能和編譯器選項)將被忽略。" #: ../../library/functions.rst:322 msgid "" @@ -1143,7 +1143,7 @@ msgstr "" msgid "" "The return value is the result of the evaluated expression. Syntax errors " "are reported as exceptions. Example:" -msgstr "回傳值是評估表達式的結果。語法錯誤將被報告為異常。例如:" +msgstr "回傳值是計算運算式的結果。語法錯誤將被報告為例外。例如:" #: ../../library/functions.rst:555 msgid "" @@ -1171,7 +1171,7 @@ msgstr "" msgid "" "If the given source is a string, then leading and trailing spaces and tabs " "are stripped." -msgstr "如果來源是一個字串,那麼其前後的空格和標籤會被移除。" +msgstr "如果給定來源是一個字串,那麼其前後的空格和定位字元會被移除。" #: ../../library/functions.rst:568 msgid "" From 16d7440439227f99a9f6be87663b70871c966e80 Mon Sep 17 00:00:00 2001 From: KNChiu Date: Mon, 6 May 2024 17:02:14 +0800 Subject: [PATCH 3/4] 'library/function.po small fixes. --- library/functions.po | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/library/functions.po b/library/functions.po index 50435d2c85..3ffd9f9d84 100644 --- a/library/functions.po +++ b/library/functions.po @@ -10,7 +10,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-02-26 00:03+0000\n" -"PO-Revision-Date: 2024-05-06 16:41+0800\n" +"PO-Revision-Date: 2024-05-06 17:02+0800\n" "Last-Translator: KNChiu \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -726,7 +726,7 @@ msgid "" "Class methods can now wrap other :term:`descriptors ` such as :" "func:`property`." msgstr "" -"Class methods 現在可以包裝其他 :term:`描述器 ` ,例如 :func:" +"Class methods 現在可以包裝其他\\ :term:`描述器 ` ,例如 :func:" "`property`" #: ../../library/functions.rst:284 @@ -735,7 +735,7 @@ msgid "" "``__name__``, ``__qualname__``, ``__doc__`` and ``__annotations__``) and " "have a new ``__wrapped__`` attribute." msgstr "" -"Class method 現在繼承了 method 屬性(``__module__``, ``__name__``, " +"Class method 現在繼承了 method 屬性(``__module__``、``__name__``、" "``__qualname__``、``__doc__`` 和 ``__annotations__``),並擁有一個新的 " "``__wrapped__`` 屬性。" @@ -744,7 +744,7 @@ msgid "" "Class methods can no longer wrap other :term:`descriptors ` such " "as :func:`property`." msgstr "" -"Class methods 不能再包裝其他的 :term:`描述器 `,例如 :func:" +"Class methods 不能再包裝其他的\\ :term:`描述器 `,例如 :func:" "`property`。" #: ../../library/functions.rst:296 @@ -793,11 +793,11 @@ msgid "" "*flags* argument is it -- the flags (future features and compiler options) " "in the surrounding code are ignored." msgstr "" -"可選引數 *flags* 和 *dont_inherit* 控制啟用哪個 :ref:`編譯器選項 ` 以及允許哪個 :ref:`未來功能 `。如果兩者都不存在(或" -"兩者都為零),則會呼叫與 :func:`compile` 相同旗標的程式碼來編譯。如果給定 " -"*flags* 引數而未給定 *dont_inherit*(或為零)則無論如何都會使用由 *flags* 引" -"數所指定的編譯器選項和 future 敘述。如果 *dont_inherit* 是一個非零整數,則使" +"可選引數 *flags* 和 *dont_inherit* 控制啟用哪個\\ :ref:`編譯器選項 ` 以及允許哪個\\ :ref:`未來功能 `。如果兩者都不存在" +"(或兩者都為零),則會呼叫與\\ :func:`compile` 相同旗標的程式碼來編譯。如果給" +"定 *flags* 引數而未給定 *dont_inherit*(或為零)則無論如何都會使用由 *flags* " +"引數所指定的編譯器選項和未來陳述式。如果 *dont_inherit* 是一個非零整數,則使" "用 *flags* 引數 -- 周圍程式碼中的旗標(未來功能和編譯器選項)將被忽略。" #: ../../library/functions.rst:322 From dfb07e841e1726af043a635bd798c50214ac3716 Mon Sep 17 00:00:00 2001 From: KNChiu Date: Mon, 6 May 2024 17:07:12 +0800 Subject: [PATCH 4/4] 'library/function.po small fixes. --- library/functions.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/functions.po b/library/functions.po index 3ffd9f9d84..6a8b4731c2 100644 --- a/library/functions.po +++ b/library/functions.po @@ -10,7 +10,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-02-26 00:03+0000\n" -"PO-Revision-Date: 2024-05-06 17:02+0800\n" +"PO-Revision-Date: 2024-05-06 17:06+0800\n" "Last-Translator: KNChiu \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -794,8 +794,8 @@ msgid "" "in the surrounding code are ignored." msgstr "" "可選引數 *flags* 和 *dont_inherit* 控制啟用哪個\\ :ref:`編譯器選項 ` 以及允許哪個\\ :ref:`未來功能 `。如果兩者都不存在" -"(或兩者都為零),則會呼叫與\\ :func:`compile` 相同旗標的程式碼來編譯。如果給" +"compiler-flags>`\\ 以及允許哪個\\ :ref:`未來功能 `。如果兩者都不存在" +"(或兩者都為零),則會呼叫與 :func:`compile` 相同旗標的程式碼來編譯。如果給" "定 *flags* 引數而未給定 *dont_inherit*(或為零)則無論如何都會使用由 *flags* " "引數所指定的編譯器選項和未來陳述式。如果 *dont_inherit* 是一個非零整數,則使" "用 *flags* 引數 -- 周圍程式碼中的旗標(未來功能和編譯器選項)將被忽略。"