Skip to content

Commit 9ae50c2

Browse files
authored
Adds more translations of library/io (#478)
* Adds more translations of library/io
1 parent 010898f commit 9ae50c2

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

library/io.po

+21-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# SOME DESCRIPTIVE TITLE.
21
# Copyright (C) 2001-2022, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
@@ -8,7 +7,7 @@ msgstr ""
87
"Project-Id-Version: Python 3.11\n"
98
"Report-Msgid-Bugs-To: \n"
109
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
11-
"PO-Revision-Date: 2018-05-23 16:04+0000\n"
10+
"PO-Revision-Date: 2023-07-17 17:38+0800\n"
1211
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1312
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1413
"tw)\n"
@@ -17,6 +16,7 @@ msgstr ""
1716
"Content-Type: text/plain; charset=UTF-8\n"
1817
"Content-Transfer-Encoding: 8bit\n"
1918
"Plural-Forms: nplurals=1; plural=0;\n"
19+
"X-Generator: Poedit 3.3.2\n"
2020

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

6666
#: ../../library/io.rst:51 ../../library/io.rst:855 ../../library/io.rst:1122
6767
msgid "Text I/O"
68-
msgstr ""
68+
msgstr "文字 I/O"
6969

7070
#: ../../library/io.rst:53
7171
msgid ""
@@ -94,7 +94,7 @@ msgstr ""
9494

9595
#: ../../library/io.rst:72 ../../library/io.rst:1110
9696
msgid "Binary I/O"
97-
msgstr ""
97+
msgstr "二進位 (Binary) I/O"
9898

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

125125
#: ../../library/io.rst:92
126126
msgid ""
127127
"Other library modules may provide additional ways to create text or binary "
128128
"streams. See :meth:`socket.socket.makefile` for example."
129129
msgstr ""
130+
"其它函式庫模組可能提供額外的方法來建立文字或二進位資料串流。例如 :meth:"
131+
"`socket.socket.makefile`。"
130132

131133
#: ../../library/io.rst:97
132134
msgid "Raw I/O"
133-
msgstr ""
135+
msgstr "原始 (Raw) I/O"
134136

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

148150
#: ../../library/io.rst:112
149151
msgid "Text Encoding"
150-
msgstr ""
152+
msgstr "文字編碼"
151153

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

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

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

174184
#: ../../library/io.rst:135
175185
msgid ":ref:`utf8-mode`"
@@ -179,19 +189,19 @@ msgstr ":ref:`utf8-mode`"
179189
msgid ""
180190
"Python UTF-8 Mode can be used to change the default encoding to UTF-8 from "
181191
"locale-specific encoding."
182-
msgstr ""
192+
msgstr "在 Python UTF-8 模式下,可以將預設編碼從特定地區編碼改為 UTF-8。"
183193

184194
#: ../../library/io.rst:137
185195
msgid ":pep:`686`"
186196
msgstr ":pep:`686`"
187197

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

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

196206
#: ../../library/io.rst:145
197207
msgid "See :pep:`597` for more details."

0 commit comments

Comments
 (0)