From eeac891bc428cd40361abe3c7281405e7c3818f1 Mon Sep 17 00:00:00 2001 From: cschan Date: Mon, 17 Jul 2023 23:29:42 +0800 Subject: [PATCH 1/5] Adds more translations of library/io --- library/io.po | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/library/io.po b/library/io.po index 44b4cd6031..fd5965b0fd 100644 --- a/library/io.po +++ b/library/io.po @@ -7,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: 2023-07-17 17:38+0800\n" +"PO-Revision-Date: 2023-07-17 23:29+0800\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -20,7 +20,7 @@ msgstr "" #: ../../library/io.rst:2 msgid ":mod:`io` --- Core tools for working with streams" -msgstr "" +msgstr ":mod:`io` — 處理資料流的核心工具" #: ../../library/io.rst:15 msgid "**Source code:** :source:`Lib/io.py`" @@ -62,6 +62,8 @@ msgid "" "Operations that used to raise :exc:`IOError` now raise :exc:`OSError`, " "since :exc:`IOError` is now an alias of :exc:`OSError`." msgstr "" +"原本會引發 :exec:`IOError` 的操作,現在將改成引發 :exec:`OSError`。因為 :" +"exec:`IOError` 現在是 :exec:`OSError` 的別名。" #: ../../library/io.rst:51 ../../library/io.rst:855 ../../library/io.rst:1122 msgid "Text I/O" @@ -80,17 +82,23 @@ msgid "" "The easiest way to create a text stream is with :meth:`open()`, optionally " "specifying an encoding::" msgstr "" +"建立文字資料串流最簡單的方法是使用 :meth:`open()`,可選擇性地指定編碼:\n" +"\n" +"::" #: ../../library/io.rst:63 msgid "" "In-memory text streams are also available as :class:`StringIO` objects::" msgstr "" +"記憶體內的文字資料流也可以使用 :class:`StringIO` 物件建立:\n" +"\n" +"::" #: ../../library/io.rst:67 msgid "" "The text stream API is described in detail in the documentation of :class:" "`TextIOBase`." -msgstr "" +msgstr "文字資料串流 API 的詳細說明在 :class:`TextIOBase` 文件當中。" #: ../../library/io.rst:72 ../../library/io.rst:1110 msgid "Binary I/O" @@ -110,11 +118,18 @@ msgid "" "The easiest way to create a binary stream is with :meth:`open()` with " "``'b'`` in the mode string::" msgstr "" +"建立二位資料串流最簡單的方法是使用 :meth:`open()`,並在 mode 字串中加入 " +"``’b’``:\n" +"\n" +"::" #: ../../library/io.rst:85 msgid "" "In-memory binary streams are also available as :class:`BytesIO` objects::" msgstr "" +"記憶體內的二進位資料串流也可以透過 :class:`BytesIO` 物件來建立:\n" +"\n" +"::" #: ../../library/io.rst:89 msgid "" @@ -226,7 +241,7 @@ msgstr "" #: ../../library/io.rst:162 msgid "High-level Module Interface" -msgstr "" +msgstr "高階模組介面" #: ../../library/io.rst:166 msgid "" @@ -237,7 +252,7 @@ msgstr "" #: ../../library/io.rst:173 msgid "This is an alias for the builtin :func:`open` function." -msgstr "" +msgstr "這是內建函式 :func:`open` 的別名。" #: ../../library/io.rst:175 msgid "" @@ -259,10 +274,12 @@ msgid "" "Opens the provided file with mode ``'rb'``. This function should be used " "when the intent is to treat the contents as executable code." msgstr "" +"以 ``’rb’`` 模式開啟提供的檔案。此函式應用於意圖將內容視為可執行的程式碼的情" +"況下。" #: ../../library/io.rst:187 msgid "``path`` should be a :class:`str` and an absolute path." -msgstr "" +msgstr "``path`` 應該要屬於 :class:`str` 類別,且是個絕對路徑。" #: ../../library/io.rst:189 msgid "" From c3950de2a572e640b8343fa5d117d5957931096f Mon Sep 17 00:00:00 2001 From: cschan Date: Tue, 18 Jul 2023 21:36:20 +0800 Subject: [PATCH 2/5] Adds more translations of library/io --- library/io.po | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/library/io.po b/library/io.po index fd5965b0fd..f13d3c9912 100644 --- a/library/io.po +++ b/library/io.po @@ -7,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: 2023-07-17 23:29+0800\n" +"PO-Revision-Date: 2023-07-18 21:30+0800\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -56,6 +56,10 @@ msgid "" "stream will raise a :exc:`TypeError`. So will giving a :class:`bytes` " "object to the ``write()`` method of a text stream." msgstr "" +"所有的資料串流都會謹慎處理你所提供的資料的型別。舉例來說,提供一個 :class:" +"`str` 物件給二進位資料流的 ``write()`` 方法將會引發 :exc:`TypeError`。同樣" +"地,若提供一個 :class:`bytes` 物件給文字資料流的 ``write()`` 方法,也會引發同" +"樣的錯誤。" #: ../../library/io.rst:45 msgid "" @@ -229,6 +233,9 @@ msgid "" "`PYTHONWARNDEFAULTENCODING` environment variable, which will emit an :exc:" "`EncodingWarning` when the default encoding is used." msgstr "" +"要找出哪些地方使用到預設的地區編碼,你可以啟用 ``-X warn_default_encoding`` " +"命令列選項,或者設定環境變數 :envvar:`PYTHONWARNDEFAULTENCODING`。當使用到預" +"設編碼時,會引發 :exc:`EncodingWarning`。" #: ../../library/io.rst:153 msgid "" From 6cab37e1c08dc56fe86bcecba6cc1645eb9ba0bc Mon Sep 17 00:00:00 2001 From: cschan Date: Tue, 18 Jul 2023 22:02:06 +0800 Subject: [PATCH 3/5] Small fixes --- library/io.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/io.po b/library/io.po index f13d3c9912..05894e7e17 100644 --- a/library/io.po +++ b/library/io.po @@ -66,8 +66,8 @@ msgid "" "Operations that used to raise :exc:`IOError` now raise :exc:`OSError`, " "since :exc:`IOError` is now an alias of :exc:`OSError`." msgstr "" -"原本會引發 :exec:`IOError` 的操作,現在將改成引發 :exec:`OSError`。因為 :" -"exec:`IOError` 現在是 :exec:`OSError` 的別名。" +"原本會引發 :exc:`IOError` 的操作,現在將改成引發 :exc:`OSError`。因為 :" +"exc:`IOError` 現在是 :exc:`OSError` 的別名。" #: ../../library/io.rst:51 ../../library/io.rst:855 ../../library/io.rst:1122 msgid "Text I/O" From df48ee93c98d1411d2b2c63aa206972dc4ae6f08 Mon Sep 17 00:00:00 2001 From: cschan <45995789+cschan1828@users.noreply.github.com> Date: Wed, 19 Jul 2023 00:27:25 +0800 Subject: [PATCH 4/5] Small Fixes --- library/io.po | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/io.po b/library/io.po index 05894e7e17..f7ccaba09f 100644 --- a/library/io.po +++ b/library/io.po @@ -20,7 +20,7 @@ msgstr "" #: ../../library/io.rst:2 msgid ":mod:`io` --- Core tools for working with streams" -msgstr ":mod:`io` — 處理資料流的核心工具" +msgstr ":mod:`io` — 處理資料串流的核心工具" #: ../../library/io.rst:15 msgid "**Source code:** :source:`Lib/io.py`" @@ -57,8 +57,8 @@ msgid "" "object to the ``write()`` method of a text stream." msgstr "" "所有的資料串流都會謹慎處理你所提供的資料的型別。舉例來說,提供一個 :class:" -"`str` 物件給二進位資料流的 ``write()`` 方法將會引發 :exc:`TypeError`。同樣" -"地,若提供一個 :class:`bytes` 物件給文字資料流的 ``write()`` 方法,也會引發同" +"`str` 物件給二進位資料串流的 ``write()`` 方法將會引發 :exc:`TypeError`。同樣" +"地,若提供一個 :class:`bytes` 物件給文字資料串流的 ``write()`` 方法,也會引發同" "樣的錯誤。" #: ../../library/io.rst:45 @@ -94,7 +94,7 @@ msgstr "" msgid "" "In-memory text streams are also available as :class:`StringIO` objects::" msgstr "" -"記憶體內的文字資料流也可以使用 :class:`StringIO` 物件建立:\n" +"記憶體內的文字資料串流也可以使用 :class:`StringIO` 物件建立:\n" "\n" "::" @@ -122,8 +122,8 @@ msgid "" "The easiest way to create a binary stream is with :meth:`open()` with " "``'b'`` in the mode string::" msgstr "" -"建立二位資料串流最簡單的方法是使用 :meth:`open()`,並在 mode 字串中加入 " -"``’b’``:\n" +"建立二進位資料串流最簡單的方法是使用 :meth:`open()`,並在 mode 字串中加入 " +"``'b'``:\n" "\n" "::" From 2b83288b9188d20c0ee283038cecaef4e031d60c Mon Sep 17 00:00:00 2001 From: cschan <45995789+cschan1828@users.noreply.github.com> Date: Wed, 19 Jul 2023 00:29:33 +0800 Subject: [PATCH 5/5] Small Fixes --- library/io.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/io.po b/library/io.po index f7ccaba09f..a9848787b9 100644 --- a/library/io.po +++ b/library/io.po @@ -281,7 +281,7 @@ msgid "" "Opens the provided file with mode ``'rb'``. This function should be used " "when the intent is to treat the contents as executable code." msgstr "" -"以 ``’rb’`` 模式開啟提供的檔案。此函式應用於意圖將內容視為可執行的程式碼的情" +"以 ``'rb'`` 模式開啟提供的檔案。此函式應用於意圖將內容視為可執行的程式碼的情" "況下。" #: ../../library/io.rst:187 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy