Skip to content

Adds more translations of library/io #515

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 6 commits into from
Aug 1, 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
28 changes: 23 additions & 5 deletions library/io.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
"PO-Revision-Date: 2023-07-31 18:24+0800\n"
"PO-Revision-Date: 2023-08-01 12:20+0800\n"
"Last-Translator: Adrian Liaw <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
Expand Down Expand Up @@ -266,6 +266,11 @@ msgid ""
"`EncodingWarning` if they don't pass an ``encoding``. However, please "
"consider using UTF-8 by default (i.e. ``encoding=\"utf-8\"``) for new APIs."
msgstr ""
"如果你正在提供一個使用 :func:`open` 或 :class:`TextIOWrapper` 且傳遞 "
"``encoding=None`` 作為參數的 API,你可以使用 :func:`text_encoding`。如此一來"
"如果 API 的呼叫方沒有傳遞 ``encoding``,呼叫方就會發出一個 :exc:"
"`EncodingWarning`。然而,對於新的 API,請考慮預設使用 UTF-8(即 "
"``encoding=\"utf-8\"``)。"

#: ../../library/io.rst:162
msgid "High-level Module Interface"
Expand All @@ -277,6 +282,8 @@ msgid ""
"classes. :func:`open` uses the file's blksize (as obtained by :func:`os."
"stat`) if possible."
msgstr ""
"一個包含模組中緩衝 I/O 類別所使用的預設緩衝區大小的整數。若可能的話,:func:"
"`open` 會使用檔案的 blksize (透過 :func:`os.stat` 取得)。"

#: ../../library/io.rst:173
msgid "This is an alias for the builtin :func:`open` function."
Expand All @@ -296,6 +303,9 @@ msgid ""
"arguments ``path``, ``mode`` and ``flags``. The ``mode`` and ``flags`` "
"arguments may have been modified or inferred from the original call."
msgstr ""
"此函式會引發一個帶有引數 ``path``、``mode`` 以及 ``flags`` 的\\ :ref:`稽核事件 "
"(auditing event) <auditing>` ``open``。``mode`` 與 ``flags`` 引數可能已經被修"
"改或者從原始呼叫中被推斷出來。"

#: ../../library/io.rst:184
msgid ""
Expand Down Expand Up @@ -345,6 +355,8 @@ msgid ""
"In this example, an :class:`EncodingWarning` is emitted for the caller of "
"``read_text()``."
msgstr ""
"在此範例中,對於 ``read_text()`` 的呼叫方會引發一個 :class:"
"`EncodingWarning`。"

#: ../../library/io.rst:220
msgid "See :ref:`io-text-encoding` for more information."
Expand All @@ -355,18 +367,22 @@ msgid ""
":func:`text_encoding` returns \"utf-8\" when UTF-8 mode is enabled and "
"*encoding* is ``None``."
msgstr ""
"當 UTF-8 模式啟用且 *encoding* 為 ``None`` 時,:func:`text_encoding` 會回傳 "
"\"utf-8\"。"

#: ../../library/io.rst:231
msgid ""
"This is a compatibility alias for the builtin :exc:`BlockingIOError` "
"exception."
msgstr ""
msgstr "這是內建的 :exc:`BlockingIOError` 例外的相容性別名。"

#: ../../library/io.rst:237
msgid ""
"An exception inheriting :exc:`OSError` and :exc:`ValueError` that is raised "
"when an unsupported operation is called on a stream."
msgstr ""
"當在資料串流上呼叫不支援的操作時,會引發繼承自 :exc:`OSError` 與 :exc:"
"`ValueError` 的例外。"

#: ../../library/io.rst:244
msgid ":mod:`sys`"
Expand All @@ -377,10 +393,12 @@ msgid ""
"contains the standard IO streams: :data:`sys.stdin`, :data:`sys.stdout`, "
"and :data:`sys.stderr`."
msgstr ""
"包含標準的 IO 資料串流::data:`sys.stdin`、:data:`sys.stdout` 以及 :data:`sys."
"stderr`。"

#: ../../library/io.rst:249
msgid "Class hierarchy"
msgstr ""
msgstr "類別階層"

#: ../../library/io.rst:251
msgid ""
Expand Down Expand Up @@ -438,12 +456,12 @@ msgstr ""
msgid ""
"Argument names are not part of the specification, and only the arguments of :"
"func:`open` are intended to be used as keyword arguments."
msgstr ""
msgstr "引數名稱不是規範的一部份,只有 :func:`open` 的引數將作為關鍵字引數。"

#: ../../library/io.rst:289
msgid ""
"The following table summarizes the ABCs provided by the :mod:`io` module:"
msgstr ""
msgstr "以下表格總結了 :mod:`io` 模組提供的抽象基礎類別 (ABC):"

#: ../../library/io.rst:294
msgid "ABC"
Expand Down