Skip to content

Commit c3950de

Browse files
committed
Adds more translations of library/io
1 parent eeac891 commit c3950de

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

library/io.po

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgstr ""
77
"Project-Id-Version: Python 3.11\n"
88
"Report-Msgid-Bugs-To: \n"
99
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
10-
"PO-Revision-Date: 2023-07-17 23:29+0800\n"
10+
"PO-Revision-Date: 2023-07-18 21:30+0800\n"
1111
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1313
"tw)\n"
@@ -56,6 +56,10 @@ msgid ""
5656
"stream will raise a :exc:`TypeError`. So will giving a :class:`bytes` "
5757
"object to the ``write()`` method of a text stream."
5858
msgstr ""
59+
"所有的資料串流都會謹慎處理你所提供的資料的型別。舉例來說,提供一個 :class:"
60+
"`str` 物件給二進位資料流的 ``write()`` 方法將會引發 :exc:`TypeError`。同樣"
61+
"地,若提供一個 :class:`bytes` 物件給文字資料流的 ``write()`` 方法,也會引發同"
62+
"樣的錯誤。"
5963

6064
#: ../../library/io.rst:45
6165
msgid ""
@@ -229,6 +233,9 @@ msgid ""
229233
"`PYTHONWARNDEFAULTENCODING` environment variable, which will emit an :exc:"
230234
"`EncodingWarning` when the default encoding is used."
231235
msgstr ""
236+
"要找出哪些地方使用到預設的地區編碼,你可以啟用 ``-X warn_default_encoding`` "
237+
"命令列選項,或者設定環境變數 :envvar:`PYTHONWARNDEFAULTENCODING`。當使用到預"
238+
"設編碼時,會引發 :exc:`EncodingWarning`。"
232239

233240
#: ../../library/io.rst:153
234241
msgid ""

0 commit comments

Comments
 (0)