Skip to content
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

Adds more translations of library/io #478

Merged
merged 2 commits into from
Jul 18, 2023
Merged
Changes from 1 commit
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
32 changes: 21 additions & 11 deletions library/io.po
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2022, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
Expand All @@ -8,7 +7,7 @@ msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
"PO-Revision-Date: 2018-05-23 16:04+0000\n"
"PO-Revision-Date: 2023-07-16 19:43+0800\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
Expand All @@ -17,6 +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"

#: ../../library/io.rst:2
msgid ":mod:`io` --- Core tools for working with streams"
Expand Down Expand Up @@ -65,7 +65,7 @@ msgstr ""

#: ../../library/io.rst:51 ../../library/io.rst:855 ../../library/io.rst:1122
msgid "Text I/O"
msgstr ""
msgstr "文字 I/O"

#: ../../library/io.rst:53
msgid ""
Expand Down Expand Up @@ -94,7 +94,7 @@ msgstr ""

#: ../../library/io.rst:72 ../../library/io.rst:1110
msgid "Binary I/O"
msgstr ""
msgstr "二進位 (Binary) I/O"

#: ../../library/io.rst:74
msgid ""
Expand All @@ -120,17 +120,19 @@ msgstr ""
msgid ""
"The binary stream API is described in detail in the docs of :class:"
"`BufferedIOBase`."
msgstr ""
msgstr "二進資料流 API 的詳細說明在 :class:`BufferedIOBase` 文件當中。"

cschan1828 marked this conversation as resolved.
Show resolved Hide resolved
#: ../../library/io.rst:92
msgid ""
"Other library modules may provide additional ways to create text or binary "
"streams. See :meth:`socket.socket.makefile` for example."
msgstr ""
"其它函式庫模組可能提供額外的方法來建立文字或二進資料流。例如 :meth:`socket."
"socket.makefile`。"

#: ../../library/io.rst:97
msgid "Raw I/O"
msgstr ""
msgstr "原始 (Raw) I/O"

#: ../../library/io.rst:99
msgid ""
Expand All @@ -143,17 +145,19 @@ msgstr ""
#: ../../library/io.rst:106
msgid ""
"The raw stream API is described in detail in the docs of :class:`RawIOBase`."
msgstr ""
msgstr "原始流 API 在 :class:`RawIOBase` 文件中有詳細描述。"

#: ../../library/io.rst:112
msgid "Text Encoding"
msgstr ""
msgstr "文字編碼"

#: ../../library/io.rst:114
msgid ""
"The default encoding of :class:`TextIOWrapper` and :func:`open` is locale-"
"specific (:func:`locale.getencoding`)."
msgstr ""
":class:`TextIOWrapper` 和 :func:`open` 預設編碼是根據區域設定的 (locale-"
"specific) (:func:`locale.getencoding`)。"

#: ../../library/io.rst:117
msgid ""
Expand All @@ -162,6 +166,9 @@ msgid ""
"platforms use UTF-8 locale by default. This causes bugs because the locale "
"encoding is not UTF-8 for most Windows users. For example::"
msgstr ""
"然而,許多開發人員在開啟以 UTF-8 編碼的文字檔案(例如:JSON、TOML、MARKDOWN"
"等)時忘記指定編碼,因為多數 Unix 平台預設使用 UTF-8 區域設定。這會導致錯誤,"
cschan1828 marked this conversation as resolved.
Show resolved Hide resolved
"因為對於大多數 Windows 使用者來說,預設地區編碼並非 UTF-8。舉例來說:"

#: ../../library/io.rst:126
msgid ""
Expand All @@ -170,6 +177,9 @@ msgid ""
"``encoding=\"utf-8\"``. To use the current locale encoding, "
"``encoding=\"locale\"`` is supported since Python 3.10."
msgstr ""
"因此,強烈建議在開啟文字檔案時,明確指定編碼。若你想使用 UTF-8 編碼,請傳入 "
"``encoding=“utf-8”``。若想使用目前的地區編碼,Python 3.10 以後的版本支援使用 "
"``encoding=“locale”``。"

cschan1828 marked this conversation as resolved.
Show resolved Hide resolved
#: ../../library/io.rst:135
msgid ":ref:`utf8-mode`"
Expand All @@ -179,19 +189,19 @@ msgstr ":ref:`utf8-mode`"
msgid ""
"Python UTF-8 Mode can be used to change the default encoding to UTF-8 from "
"locale-specific encoding."
msgstr ""
msgstr "在 Python UTF-8 模式下,可以將預設編碼從特定地區編碼改為 UTF-8。"

#: ../../library/io.rst:137
msgid ":pep:`686`"
msgstr ":pep:`686`"

#: ../../library/io.rst:138
msgid "Python 3.15 will make :ref:`utf8-mode` default."
msgstr ""
msgstr "Python 3.15 將預設使用 :ref:`utf8-mode`。"

#: ../../library/io.rst:143
msgid "Opt-in EncodingWarning"
msgstr ""
msgstr "選擇性加入的編碼警告"

#: ../../library/io.rst:145
msgid "See :pep:`597` for more details."
Expand Down
Loading