From 42e525ba14326a1b3197ddb77e47dc56e3183812 Mon Sep 17 00:00:00 2001 From: rockleona Date: Thu, 10 Aug 2023 00:36:29 +0800 Subject: [PATCH 1/4] Translate with two paragraph --- library/csv.po | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/library/csv.po b/library/csv.po index f6fc5c03584..4b367d2ecc9 100644 --- a/library/csv.po +++ b/library/csv.po @@ -56,6 +56,11 @@ msgid "" "Excel. Programmers can also describe the CSV formats understood by other " "applications or define their own special-purpose CSV formats." msgstr "" +":mod:`csv` 模組實施透過 class 去讀取、寫入 CSV 格式的表格資料。" +"它讓程式設計師可以說出:「以 Excel 為首選並寫入該種格式的資料」或是" +"「從 Excel 產生的檔案來讀取資料」,且無須知道這是 Excel 所使用的 " +"CSV 格式等精確的細節。程式設計師也可以描述其他應用程式所理解的 CSV 格式" +"或他們自行定義具有特殊意義的 CSV 格式。" #: ../../library/csv.rst:35 msgid "" @@ -73,7 +78,7 @@ msgstr ":pep:`305` - CSV 檔案 API" #: ../../library/csv.rst:42 msgid "The Python Enhancement Proposal which proposed this addition to Python." -msgstr "" +msgstr "Python Enhancement Proposal (PEP)所提出的 Python 附加功能。" #: ../../library/csv.rst:48 msgid "Module Contents" @@ -98,6 +103,18 @@ msgid "" "in the current dialect. For full details about the dialect and formatting " "parameters, see section :ref:`csv-fmt-params`." msgstr "" +"回傳一個 reader object 並在指定的 *csvfile* 中逐行疊代 (iterate)," +"*csvfile* 可以成為任何 object 並支援 :term:`iterator` 協定,每次呼叫 " +":meth:`!__next__` method(方法)時皆會回傳一個字串," +":term:`file objects ` 及 list objects 皆適用。" +"如果 *csvfile* 是個 file object,則需開啟時使用 ``newline=''``。" +" [1]_ *dialect* 為一個可選填的參數,可以用為特定的 CSV dialect(方言)" +" 定義一組參數。它可能為 :class:`Dialect` 的一個子類別 (subcless) 的實例" +"或是由 :func:`list_dialects` 函式回傳的多個字串中的其中之一。" +"另一個可選填的關鍵字引數 *fmtparams* 可以在這個 dialect 中 override(置換)" +"獨立的格式參數 (formatting parameter)。關於 dialect 及格式參數的完整說明," +"請見段落 :ref:`csv-fmt-params`。" + #: ../../library/csv.rst:71 msgid "" @@ -111,9 +128,7 @@ msgstr "" #: ../../library/csv.rst:216 msgid "A short usage example::" msgstr "" -"一個簡短的用法範例:\n" -"\n" -"::" +"一個簡短的用法範例: ::" #: ../../library/csv.rst:88 msgid "" From 882f18bfcb7fd232a15581c8195928a273fa30ff Mon Sep 17 00:00:00 2001 From: rockleona Date: Thu, 10 Aug 2023 22:01:56 +0800 Subject: [PATCH 2/4] Fix with Reviewer's comment and typo --- library/csv.po | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/csv.po b/library/csv.po index 4b367d2ecc9..9ddadaf50c5 100644 --- a/library/csv.po +++ b/library/csv.po @@ -56,9 +56,9 @@ msgid "" "Excel. Programmers can also describe the CSV formats understood by other " "applications or define their own special-purpose CSV formats." msgstr "" -":mod:`csv` 模組實施透過 class 去讀取、寫入 CSV 格式的表格資料。" +":mod:`csv` 模組實作透過 class 去讀取、寫入 CSV 格式的表格資料。" "它讓程式設計師可以說出:「以 Excel 為首選並寫入該種格式的資料」或是" -"「從 Excel 產生的檔案來讀取資料」,且無須知道這是 Excel 所使用的 " +"「從 Excel 產生的檔案來讀取資料」,且無需知道這是 Excel 所使用的 " "CSV 格式等精確的細節。程式設計師也可以描述其他應用程式所理解的 CSV 格式" "或他們自行定義具有特殊意義的 CSV 格式。" @@ -78,7 +78,7 @@ msgstr ":pep:`305` - CSV 檔案 API" #: ../../library/csv.rst:42 msgid "The Python Enhancement Proposal which proposed this addition to Python." -msgstr "Python Enhancement Proposal (PEP)所提出的 Python 附加功能。" +msgstr "Python Enhancement Proposal (PEP) 所提出的 Python 附加功能。" #: ../../library/csv.rst:48 msgid "Module Contents" @@ -109,11 +109,11 @@ msgstr "" ":term:`file objects ` 及 list objects 皆適用。" "如果 *csvfile* 是個 file object,則需開啟時使用 ``newline=''``。" " [1]_ *dialect* 為一個可選填的參數,可以用為特定的 CSV dialect(方言)" -" 定義一組參數。它可能為 :class:`Dialect` 的一個子類別 (subcless) 的實例" +" 定義一組參數。它可能為 :class:`Dialect` 的一個子類別 (subclass) 的實例" "或是由 :func:`list_dialects` 函式回傳的多個字串中的其中之一。" "另一個可選填的關鍵字引數 *fmtparams* 可以在這個 dialect 中 override(置換)" -"獨立的格式參數 (formatting parameter)。關於 dialect 及格式參數的完整說明," -"請見段落 :ref:`csv-fmt-params`。" +"獨立的格式化參數 (formatting parameter)。關於 dialect 及格式化參數的完整" +"說明,請見段落 :ref:`csv-fmt-params`。" #: ../../library/csv.rst:71 From 401ab9bfdf356630c6709da44f463d181eae9d23 Mon Sep 17 00:00:00 2001 From: rockleona Date: Thu, 10 Aug 2023 22:06:08 +0800 Subject: [PATCH 3/4] Add more translation for several terms --- library/csv.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/csv.po b/library/csv.po index 9ddadaf50c5..148d671b528 100644 --- a/library/csv.po +++ b/library/csv.po @@ -103,11 +103,11 @@ msgid "" "in the current dialect. For full details about the dialect and formatting " "parameters, see section :ref:`csv-fmt-params`." msgstr "" -"回傳一個 reader object 並在指定的 *csvfile* 中逐行疊代 (iterate)," -"*csvfile* 可以成為任何 object 並支援 :term:`iterator` 協定,每次呼叫 " +"回傳一個讀取物件 (reader object) 並在指定的 *csvfile* 中逐行疊代 (iterate)," +"*csvfile* 可以成為任何物件並支援 :term:`iterator` 協定,每次呼叫 " ":meth:`!__next__` method(方法)時皆會回傳一個字串," -":term:`file objects ` 及 list objects 皆適用。" -"如果 *csvfile* 是個 file object,則需開啟時使用 ``newline=''``。" +":term:`檔案物件 (file object) ` 及列表物件 (list object) " +"皆適用。如果 *csvfile* 是個檔案物件,則需開啟時使用 ``newline=''``。" " [1]_ *dialect* 為一個可選填的參數,可以用為特定的 CSV dialect(方言)" " 定義一組參數。它可能為 :class:`Dialect` 的一個子類別 (subclass) 的實例" "或是由 :func:`list_dialects` 函式回傳的多個字串中的其中之一。" From 3ae8708f8a5238f5549d54f495122b67d74d960b Mon Sep 17 00:00:00 2001 From: rockleona Date: Thu, 10 Aug 2023 22:26:38 +0800 Subject: [PATCH 4/4] Replace some words --- library/csv.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/csv.po b/library/csv.po index 148d671b528..8ae6c46395a 100644 --- a/library/csv.po +++ b/library/csv.po @@ -103,15 +103,15 @@ msgid "" "in the current dialect. For full details about the dialect and formatting " "parameters, see section :ref:`csv-fmt-params`." msgstr "" -"回傳一個讀取物件 (reader object) 並在指定的 *csvfile* 中逐行疊代 (iterate)," +"回傳一個讀取器物件 (reader object) 並在指定的 *csvfile* 中逐行疊代 (iterate)," "*csvfile* 可以成為任何物件並支援 :term:`iterator` 協定,每次呼叫 " ":meth:`!__next__` method(方法)時皆會回傳一個字串," -":term:`檔案物件 (file object) ` 及列表物件 (list object) " +":term:`檔案物件 (file object) ` 及串列物件 (list object) " "皆適用。如果 *csvfile* 是個檔案物件,則需開啟時使用 ``newline=''``。" " [1]_ *dialect* 為一個可選填的參數,可以用為特定的 CSV dialect(方言)" " 定義一組參數。它可能為 :class:`Dialect` 的一個子類別 (subclass) 的實例" "或是由 :func:`list_dialects` 函式回傳的多個字串中的其中之一。" -"另一個可選填的關鍵字引數 *fmtparams* 可以在這個 dialect 中 override(置換)" +"另一個可選填的關鍵字引數 *fmtparams* 可以在這個 dialect 中 override(覆寫)" "獨立的格式化參數 (formatting parameter)。關於 dialect 及格式化參數的完整" "說明,請見段落 :ref:`csv-fmt-params`。"