From 90c4f495eb29804ed7702aa7a2e517390a4d0f60 Mon Sep 17 00:00:00 2001 From: bananaiselite Date: Sun, 6 Aug 2023 17:50:03 +0800 Subject: [PATCH 1/7] Translate extending/building.po rst:7 and rst:9 --- extending/building.po | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extending/building.po b/extending/building.po index e638c4f94d..7622ec5e6c 100644 --- a/extending/building.po +++ b/extending/building.po @@ -20,13 +20,15 @@ msgstr "" #: ../../extending/building.rst:7 msgid "Building C and C++ Extensions" -msgstr "" +msgstr "建立 C 與 C++ 擴充功能" #: ../../extending/building.rst:9 msgid "" "A C extension for CPython is a shared library (e.g. a ``.so`` file on Linux, " "``.pyd`` on Windows), which exports an *initialization function*." msgstr "" +"對於 CPython 的 C 擴充功能是一個函式庫(例如在Linux上的``.so``檔案,在Windows" +"上的``.pyd``),會輸出一個*initialization function*。" #: ../../extending/building.rst:12 msgid "" From 59123a637b090fbf718e1dd7ed5c5865fc8d568d Mon Sep 17 00:00:00 2001 From: bananaiselite Date: Tue, 8 Aug 2023 16:39:08 +0800 Subject: [PATCH 2/7] modify language and correct the format. --- c-api/iterator.po | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c-api/iterator.po b/c-api/iterator.po index 805a6ed7bb..db7263bced 100644 --- a/c-api/iterator.po +++ b/c-api/iterator.po @@ -31,6 +31,10 @@ msgid "" "value, calling the callable for each item in the sequence, and ending the " "iteration when the sentinel value is returned." msgstr "" +"Python提供了兩種通用的疊代器 (Iterator) 物件,第一種是序列 (sequence),疊代器" +"能夠與支援:meth:`~object.__getitem__`方法的隨意序列一起使用,第二種是與可呼叫" +"物件 (callable) 和哨兵值 (sentinel value) 一起使用,疊代器會呼叫序列中的每個" +"可呼叫物件,當回傳哨兵值時,就結束疊代。" #: ../../c-api/iterator.rst:17 msgid "" From d85875db3b366366cc9da1e41139b1b9b1874a5d Mon Sep 17 00:00:00 2001 From: bananaiselite Date: Tue, 8 Aug 2023 17:01:52 +0800 Subject: [PATCH 3/7] rst:9 format modifying --- extending/building.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extending/building.po b/extending/building.po index 7622ec5e6c..5fae0680e1 100644 --- a/extending/building.po +++ b/extending/building.po @@ -27,8 +27,8 @@ msgid "" "A C extension for CPython is a shared library (e.g. a ``.so`` file on Linux, " "``.pyd`` on Windows), which exports an *initialization function*." msgstr "" -"對於 CPython 的 C 擴充功能是一個函式庫(例如在Linux上的``.so``檔案,在Windows" -"上的``.pyd``),會輸出一個*initialization function*。" +"C 擴充套件是用於 CPython 一個共享函式庫(例如在 Linux 上的 ``.so`` 檔案,在 " +"Windows 上的 ``.pyd``),會匯出一個\\ *初始化函式*。" #: ../../extending/building.rst:12 msgid "" From b18fcae6eb2b73651e4565e05be09d642a430678 Mon Sep 17 00:00:00 2001 From: bananaiselite Date: Thu, 10 Aug 2023 16:12:52 +0800 Subject: [PATCH 4/7] new commit --- c-api/iterator.po | 4 ---- extending/building.po | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/c-api/iterator.po b/c-api/iterator.po index db7263bced..805a6ed7bb 100644 --- a/c-api/iterator.po +++ b/c-api/iterator.po @@ -31,10 +31,6 @@ msgid "" "value, calling the callable for each item in the sequence, and ending the " "iteration when the sentinel value is returned." msgstr "" -"Python提供了兩種通用的疊代器 (Iterator) 物件,第一種是序列 (sequence),疊代器" -"能夠與支援:meth:`~object.__getitem__`方法的隨意序列一起使用,第二種是與可呼叫" -"物件 (callable) 和哨兵值 (sentinel value) 一起使用,疊代器會呼叫序列中的每個" -"可呼叫物件,當回傳哨兵值時,就結束疊代。" #: ../../c-api/iterator.rst:17 msgid "" diff --git a/extending/building.po b/extending/building.po index 7622ec5e6c..5fae0680e1 100644 --- a/extending/building.po +++ b/extending/building.po @@ -27,8 +27,8 @@ msgid "" "A C extension for CPython is a shared library (e.g. a ``.so`` file on Linux, " "``.pyd`` on Windows), which exports an *initialization function*." msgstr "" -"對於 CPython 的 C 擴充功能是一個函式庫(例如在Linux上的``.so``檔案,在Windows" -"上的``.pyd``),會輸出一個*initialization function*。" +"C 擴充套件是用於 CPython 一個共享函式庫(例如在 Linux 上的 ``.so`` 檔案,在 " +"Windows 上的 ``.pyd``),會匯出一個\\ *初始化函式*。" #: ../../extending/building.rst:12 msgid "" From c8fa7a669052c839eb4e36666831f280eb3800f5 Mon Sep 17 00:00:00 2001 From: bananaiselite <70698133+bananaiselite@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:17:55 +0800 Subject: [PATCH 5/7] Delete iterator.po --- c-api/iterator.po | 73 ----------------------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 c-api/iterator.po diff --git a/c-api/iterator.po b/c-api/iterator.po deleted file mode 100644 index 805a6ed7bb..0000000000 --- a/c-api/iterator.po +++ /dev/null @@ -1,73 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation -# This file is distributed under the same license as the Python package. -# -# Translators: -# Leon H., 2017 -msgid "" -msgstr "" -"Project-Id-Version: Python 3.12\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-07-24 00:03+0000\n" -"PO-Revision-Date: 2017-09-22 18:26+0000\n" -"Last-Translator: Leon H.\n" -"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" -"tw)\n" -"Language: zh_TW\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: ../../c-api/iterator.rst:6 -msgid "Iterator Objects" -msgstr "疊代器(Iterator)物件" - -#: ../../c-api/iterator.rst:8 -msgid "" -"Python provides two general-purpose iterator objects. The first, a sequence " -"iterator, works with an arbitrary sequence supporting the :meth:`~object." -"__getitem__` method. The second works with a callable object and a sentinel " -"value, calling the callable for each item in the sequence, and ending the " -"iteration when the sentinel value is returned." -msgstr "" - -#: ../../c-api/iterator.rst:17 -msgid "" -"Type object for iterator objects returned by :c:func:`PySeqIter_New` and the " -"one-argument form of the :func:`iter` built-in function for built-in " -"sequence types." -msgstr "" - -#: ../../c-api/iterator.rst:24 -msgid "" -"Return true if the type of *op* is :c:data:`PySeqIter_Type`. This function " -"always succeeds." -msgstr "" - -#: ../../c-api/iterator.rst:30 -msgid "" -"Return an iterator that works with a general sequence object, *seq*. The " -"iteration ends when the sequence raises :exc:`IndexError` for the " -"subscripting operation." -msgstr "" - -#: ../../c-api/iterator.rst:37 -msgid "" -"Type object for iterator objects returned by :c:func:`PyCallIter_New` and " -"the two-argument form of the :func:`iter` built-in function." -msgstr "" - -#: ../../c-api/iterator.rst:43 -msgid "" -"Return true if the type of *op* is :c:data:`PyCallIter_Type`. This function " -"always succeeds." -msgstr "" - -#: ../../c-api/iterator.rst:49 -msgid "" -"Return a new iterator. The first parameter, *callable*, can be any Python " -"callable object that can be called with no parameters; each call to it " -"should return the next item in the iteration. When *callable* returns a " -"value equal to *sentinel*, the iteration will be terminated." -msgstr "" From 0e1890a8adcef94ffa07fc14d1f2e0b580c40afc Mon Sep 17 00:00:00 2001 From: bananaiselite Date: Fri, 11 Aug 2023 14:59:13 +0800 Subject: [PATCH 6/7] new commit --- c-api/iterator.po | 73 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 c-api/iterator.po diff --git a/c-api/iterator.po b/c-api/iterator.po new file mode 100644 index 0000000000..805a6ed7bb --- /dev/null +++ b/c-api/iterator.po @@ -0,0 +1,73 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2022, Python Software Foundation +# This file is distributed under the same license as the Python package. +# +# Translators: +# Leon H., 2017 +msgid "" +msgstr "" +"Project-Id-Version: Python 3.12\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-07-24 00:03+0000\n" +"PO-Revision-Date: 2017-09-22 18:26+0000\n" +"Last-Translator: Leon H.\n" +"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" +"tw)\n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: ../../c-api/iterator.rst:6 +msgid "Iterator Objects" +msgstr "疊代器(Iterator)物件" + +#: ../../c-api/iterator.rst:8 +msgid "" +"Python provides two general-purpose iterator objects. The first, a sequence " +"iterator, works with an arbitrary sequence supporting the :meth:`~object." +"__getitem__` method. The second works with a callable object and a sentinel " +"value, calling the callable for each item in the sequence, and ending the " +"iteration when the sentinel value is returned." +msgstr "" + +#: ../../c-api/iterator.rst:17 +msgid "" +"Type object for iterator objects returned by :c:func:`PySeqIter_New` and the " +"one-argument form of the :func:`iter` built-in function for built-in " +"sequence types." +msgstr "" + +#: ../../c-api/iterator.rst:24 +msgid "" +"Return true if the type of *op* is :c:data:`PySeqIter_Type`. This function " +"always succeeds." +msgstr "" + +#: ../../c-api/iterator.rst:30 +msgid "" +"Return an iterator that works with a general sequence object, *seq*. The " +"iteration ends when the sequence raises :exc:`IndexError` for the " +"subscripting operation." +msgstr "" + +#: ../../c-api/iterator.rst:37 +msgid "" +"Type object for iterator objects returned by :c:func:`PyCallIter_New` and " +"the two-argument form of the :func:`iter` built-in function." +msgstr "" + +#: ../../c-api/iterator.rst:43 +msgid "" +"Return true if the type of *op* is :c:data:`PyCallIter_Type`. This function " +"always succeeds." +msgstr "" + +#: ../../c-api/iterator.rst:49 +msgid "" +"Return a new iterator. The first parameter, *callable*, can be any Python " +"callable object that can be called with no parameters; each call to it " +"should return the next item in the iteration. When *callable* returns a " +"value equal to *sentinel*, the iteration will be terminated." +msgstr "" From 2dcdda4cf4ead5355181a8c1e828118843385afa Mon Sep 17 00:00:00 2001 From: bananaiselite Date: Fri, 11 Aug 2023 22:08:32 +0800 Subject: [PATCH 7/7] new modification --- extending/building.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extending/building.po b/extending/building.po index 5fae0680e1..83ef47cbff 100644 --- a/extending/building.po +++ b/extending/building.po @@ -20,15 +20,15 @@ msgstr "" #: ../../extending/building.rst:7 msgid "Building C and C++ Extensions" -msgstr "建立 C 與 C++ 擴充功能" +msgstr "建立 C 與 C++ 擴充套件" #: ../../extending/building.rst:9 msgid "" "A C extension for CPython is a shared library (e.g. a ``.so`` file on Linux, " "``.pyd`` on Windows), which exports an *initialization function*." msgstr "" -"C 擴充套件是用於 CPython 一個共享函式庫(例如在 Linux 上的 ``.so`` 檔案,在 " -"Windows 上的 ``.pyd``),會匯出一個\\ *初始化函式*。" +"一個 CPython 的 C 擴充套件是一個共用函式庫(例如在 Linux 上的 ``.so`` 檔案," +"在 Windows 上的 ``.pyd``),會匯出一個\\ *初始化函式*。" #: ../../extending/building.rst:12 msgid ""