Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaa39396

Browse files
Add more translations of library/io (#707)
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
1 parenta2d619b commitaa39396

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

‎library/io.po

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgstr ""
77
"Project-Id-Version:Python 3.12\n"
88
"Report-Msgid-Bugs-To:\n"
99
"POT-Creation-Date:2023-08-30 00:04+0000\n"
10-
"PO-Revision-Date:2023-08-01 12:20+0800\n"
10+
"PO-Revision-Date:2023-11-22 00:45+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"
@@ -16,7 +16,7 @@ msgstr ""
1616
"Content-Type:text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding:8bit\n"
1818
"Plural-Forms:nplurals=1; plural=0;\n"
19-
"X-Generator:Poedit 3.3.2\n"
19+
"X-Generator:Poedit 3.4.1\n"
2020

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

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

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

354363
#:../../library/io.rst:217
355364
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp