Skip to content

Add more translations of library/io #707

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 2 commits into from
Nov 22, 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
13 changes: 11 additions & 2 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-08-30 00:04+0000\n"
"PO-Revision-Date: 2023-08-01 12:20+0800\n"
"PO-Revision-Date: 2023-11-22 00:45+0800\n"
"Last-Translator: Adrian Liaw <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
Expand All @@ -16,7 +16,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.3.2\n"
"X-Generator: Poedit 3.4.1\n"

#: ../../library/io.rst:2
msgid ":mod:`io` --- Core tools for working with streams"
Expand Down Expand Up @@ -328,6 +328,10 @@ msgid ""
"same as ``open(path, 'rb')``. Overriding the behavior is intended for "
"additional validation or preprocessing of the file."
msgstr ""
"這個函式的行為可能會被之前對 :c:func:`PyFile_SetOpenCodeHook` 的呼叫覆寫。然"
"而,假設 *path* 是個 :class:`str` 且為絕對路徑,則 ``open_code(path)`` 總是"
"與 ``open(path, 'rb')`` 有相同行為。覆寫這個行為是為了對檔案進行額外驗證或預"
"處理。"

#: ../../library/io.rst:200
msgid ""
Expand All @@ -343,13 +347,18 @@ msgid ""
"returns ``\"locale\"`` or ``\"utf-8\"`` depending on :ref:`UTF-8 Mode <utf8-"
"mode>`."
msgstr ""
"若 *encoding* 不為 ``None``,此函式將回傳 *encoding*。否則,將根據 :ref:"
"`UTF-8 Mode <utf8-mode>` 回傳 ``\"locale\"`` 或 ``\"utf-8\"``。"

#: ../../library/io.rst:207
msgid ""
"This function emits an :class:`EncodingWarning` if :data:`sys.flags."
"warn_default_encoding <sys.flags>` is true and *encoding* is ``None``. "
"*stacklevel* specifies where the warning is emitted. For example::"
msgstr ""
"若 :data:`sys.flags.warn_default_encoding <sys.flags>` 為真,且 *encoding* "
"為 ``None``,此函式會發出一個 :class:`EncodingWarning`。*stacklevel* 指定警告"
"在哪層發出。範例: ::"

#: ../../library/io.rst:217
msgid ""
Expand Down