Skip to content

Update Translation of CSV Module #188 #570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions library/csv.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand All @@ -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"
Expand All @@ -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* 可以成為任何物件並支援 :term:`iterator` 協定,每次呼叫 "
":meth:`!__next__` method(方法)時皆會回傳一個字串,"
":term:`檔案物件 (file object) <file object>` 及串列物件 (list object) "
"皆適用。如果 *csvfile* 是個檔案物件,則需開啟時使用 ``newline=''``。"
" [1]_ *dialect* 為一個可選填的參數,可以用為特定的 CSV dialect(方言)"
" 定義一組參數。它可能為 :class:`Dialect` 的一個子類別 (subclass) 的實例"
"或是由 :func:`list_dialects` 函式回傳的多個字串中的其中之一。"
"另一個可選填的關鍵字引數 *fmtparams* 可以在這個 dialect 中 override(覆寫)"
"獨立的格式化參數 (formatting parameter)。關於 dialect 及格式化參數的完整"
"說明,請見段落 :ref:`csv-fmt-params`。"


#: ../../library/csv.rst:71
msgid ""
Expand All @@ -111,9 +128,7 @@ msgstr ""
#: ../../library/csv.rst:216
msgid "A short usage example::"
msgstr ""
"一個簡短的用法範例:\n"
"\n"
"::"
"一個簡短的用法範例: ::"

#: ../../library/csv.rst:88
msgid ""
Expand Down