Skip to content

Commit eeac891

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

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

library/io.po

Lines changed: 23 additions & 6 deletions
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 17:38+0800\n"
10+
"PO-Revision-Date: 2023-07-17 23:29+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"
@@ -20,7 +20,7 @@ msgstr ""
2020

2121
#: ../../library/io.rst:2
2222
msgid ":mod:`io` --- Core tools for working with streams"
23-
msgstr ""
23+
msgstr ":mod:`io` — 處理資料流的核心工具"
2424

2525
#: ../../library/io.rst:15
2626
msgid "**Source code:** :source:`Lib/io.py`"
@@ -62,6 +62,8 @@ msgid ""
6262
"Operations that used to raise :exc:`IOError` now raise :exc:`OSError`, "
6363
"since :exc:`IOError` is now an alias of :exc:`OSError`."
6464
msgstr ""
65+
"原本會引發 :exec:`IOError` 的操作,現在將改成引發 :exec:`OSError`。因為 :"
66+
"exec:`IOError` 現在是 :exec:`OSError` 的別名。"
6567

6668
#: ../../library/io.rst:51 ../../library/io.rst:855 ../../library/io.rst:1122
6769
msgid "Text I/O"
@@ -80,17 +82,23 @@ msgid ""
8082
"The easiest way to create a text stream is with :meth:`open()`, optionally "
8183
"specifying an encoding::"
8284
msgstr ""
85+
"建立文字資料串流最簡單的方法是使用 :meth:`open()`,可選擇性地指定編碼:\n"
86+
"\n"
87+
"::"
8388

8489
#: ../../library/io.rst:63
8590
msgid ""
8691
"In-memory text streams are also available as :class:`StringIO` objects::"
8792
msgstr ""
93+
"記憶體內的文字資料流也可以使用 :class:`StringIO` 物件建立:\n"
94+
"\n"
95+
"::"
8896

8997
#: ../../library/io.rst:67
9098
msgid ""
9199
"The text stream API is described in detail in the documentation of :class:"
92100
"`TextIOBase`."
93-
msgstr ""
101+
msgstr "文字資料串流 API 的詳細說明在 :class:`TextIOBase` 文件當中。"
94102

95103
#: ../../library/io.rst:72 ../../library/io.rst:1110
96104
msgid "Binary I/O"
@@ -110,11 +118,18 @@ msgid ""
110118
"The easiest way to create a binary stream is with :meth:`open()` with "
111119
"``'b'`` in the mode string::"
112120
msgstr ""
121+
"建立二位資料串流最簡單的方法是使用 :meth:`open()`,並在 mode 字串中加入 "
122+
"``’b’``:\n"
123+
"\n"
124+
"::"
113125

114126
#: ../../library/io.rst:85
115127
msgid ""
116128
"In-memory binary streams are also available as :class:`BytesIO` objects::"
117129
msgstr ""
130+
"記憶體內的二進位資料串流也可以透過 :class:`BytesIO` 物件來建立:\n"
131+
"\n"
132+
"::"
118133

119134
#: ../../library/io.rst:89
120135
msgid ""
@@ -226,7 +241,7 @@ msgstr ""
226241

227242
#: ../../library/io.rst:162
228243
msgid "High-level Module Interface"
229-
msgstr ""
244+
msgstr "高階模組介面"
230245

231246
#: ../../library/io.rst:166
232247
msgid ""
@@ -237,7 +252,7 @@ msgstr ""
237252

238253
#: ../../library/io.rst:173
239254
msgid "This is an alias for the builtin :func:`open` function."
240-
msgstr ""
255+
msgstr "這是內建函式 :func:`open` 的別名。"
241256

242257
#: ../../library/io.rst:175
243258
msgid ""
@@ -259,10 +274,12 @@ msgid ""
259274
"Opens the provided file with mode ``'rb'``. This function should be used "
260275
"when the intent is to treat the contents as executable code."
261276
msgstr ""
277+
"以 ``’rb’`` 模式開啟提供的檔案。此函式應用於意圖將內容視為可執行的程式碼的情"
278+
"況下。"
262279

263280
#: ../../library/io.rst:187
264281
msgid "``path`` should be a :class:`str` and an absolute path."
265-
msgstr ""
282+
msgstr "``path`` 應該要屬於 :class:`str` 類別,且是個絕對路徑。"
266283

267284
#: ../../library/io.rst:189
268285
msgid ""

0 commit comments

Comments
 (0)