From dbf71ce6cde157239a251b2ae3a14188683f515c Mon Sep 17 00:00:00 2001 From: "Matt.Wang" Date: Wed, 15 Dec 2021 13:02:38 +0800 Subject: [PATCH 1/2] feat: translate `library/asyncio-platforms.po` --- library/asyncio-platforms.po | 57 ++++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 12 deletions(-) diff --git a/library/asyncio-platforms.po b/library/asyncio-platforms.po index 0e2f381cc3..9d4ac678e5 100644 --- a/library/asyncio-platforms.po +++ b/library/asyncio-platforms.po @@ -3,24 +3,27 @@ # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # -#, fuzzy +# Translators: +# Matt Wang , 2021 +# msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-06-20 18:08+0800\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2021-12-15 12:57+0800\n" +"Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.0.1\n" #: ../../library/asyncio-platforms.rst:9 msgid "Platform Support" -msgstr "" +msgstr "平臺支援" #: ../../library/asyncio-platforms.rst:11 msgid "" @@ -28,6 +31,8 @@ msgid "" "have subtle differences and limitations due to the platforms' underlying " "architecture and capabilities." msgstr "" +":mod:`asyncio` module(模組)被設計為可移植的,但由於平臺的底層架構和功能不" +"同,在一些平臺上存在細微的差異和限制。" #: ../../library/asyncio-platforms.rst:17 msgid "All Platforms" @@ -38,6 +43,7 @@ msgid "" ":meth:`loop.add_reader` and :meth:`loop.add_writer` cannot be used to " "monitor file I/O." msgstr "" +":meth:`loop.add_reader` 和 :meth:`loop.add_writer` 不能用來監視檔案 I/O。" #: ../../library/asyncio-platforms.rst:24 msgid "Windows" @@ -48,29 +54,32 @@ msgid "" "**Source code:** :source:`Lib/asyncio/proactor_events.py`, :source:`Lib/" "asyncio/windows_events.py`, :source:`Lib/asyncio/windows_utils.py`" msgstr "" -"**原始碼:**\\ :source:`Lib/asyncio/proactor_events.py`\\ 、\\ " -":source:`Lib/asyncio/windows_events.py`\\ 、\\ :source:`Lib/asyncio/" -"windows_utils.py`" +"**原始碼:**\\ :source:`Lib/asyncio/proactor_events.py`\\ 、\\ :source:`Lib/" +"asyncio/windows_events.py`\\ 、\\ :source:`Lib/asyncio/windows_utils.py`" #: ../../library/asyncio-platforms.rst:34 msgid "On Windows, :class:`ProactorEventLoop` is now the default event loop." -msgstr "" +msgstr "在 Windows 上,現在 :class:`ProactorEventLoop` 是預設的事件迴圈。" #: ../../library/asyncio-platforms.rst:36 msgid "All event loops on Windows do not support the following methods:" -msgstr "" +msgstr "Windows 上的所有事件迴圈都不支援以下 method(方法):" #: ../../library/asyncio-platforms.rst:38 msgid "" ":meth:`loop.create_unix_connection` and :meth:`loop.create_unix_server` are " "not supported. The :data:`socket.AF_UNIX` socket family is specific to Unix." msgstr "" +"不支援 :meth:`loop.create_unix_connection` 和 :meth:`loop.create_unix_server`" +"\\ 。\\ :data:`socket.AF_UNIX` socket 系列常數僅限於 Unix 上使用。" #: ../../library/asyncio-platforms.rst:42 msgid "" ":meth:`loop.add_signal_handler` and :meth:`loop.remove_signal_handler` are " "not supported." msgstr "" +"不支援 :meth:`loop.add_signal_handler` 和 :meth:`loop.remove_signal_handler`" +"\\ 。" #: ../../library/asyncio-platforms.rst:45 msgid ":class:`SelectorEventLoop` has the following limitations:" @@ -81,18 +90,24 @@ msgid "" ":class:`~selectors.SelectSelector` is used to wait on socket events: it " "supports sockets and is limited to 512 sockets." msgstr "" +":class:`~selectors.SelectSelector` 只被用於等待 socket 事件:它支援 socket 且" +"最多支援 512 個 socket。" #: ../../library/asyncio-platforms.rst:50 msgid "" ":meth:`loop.add_reader` and :meth:`loop.add_writer` only accept socket " "handles (e.g. pipe file descriptors are not supported)." msgstr "" +":meth:`loop.add_reader` 和 :meth:`loop.add_writer` 只接受 socket 處理函式(例" +"如不支援 pipe 檔案描述器 (pipe file descriptor))。" #: ../../library/asyncio-platforms.rst:53 msgid "" "Pipes are not supported, so the :meth:`loop.connect_read_pipe` and :meth:" "`loop.connect_write_pipe` methods are not implemented." msgstr "" +"因為不支援 pipe,所以 :meth:`loop.connect_read_pipe` 和 :meth:`loop." +"connect_write_pipe` method 沒有被實作出來。" #: ../../library/asyncio-platforms.rst:56 msgid "" @@ -100,6 +115,9 @@ msgid "" "subprocess_exec` and :meth:`loop.subprocess_shell` methods are not " "implemented." msgstr "" +"不支援\\ :ref:`子行程 (subprocess) `\\ ,也就是說 :meth:" +"`loop.subprocess_exec` 和 :meth:`loop.subprocess_shell` method 沒有被實作出" +"來。" #: ../../library/asyncio-platforms.rst:60 msgid ":class:`ProactorEventLoop` has the following limitations:" @@ -109,7 +127,7 @@ msgstr ":class:`ProactorEventLoop` 有以下限制:" msgid "" "The :meth:`loop.add_reader` and :meth:`loop.add_writer` methods are not " "supported." -msgstr "" +msgstr "不支援 :meth:`loop.add_reader` 和 :meth:`loop.add_writer` method。" #: ../../library/asyncio-platforms.rst:65 msgid "" @@ -118,16 +136,21 @@ msgid "" "hardware (availability of `HPET `_) and on the Windows configuration." msgstr "" +"Windows 上單調時鐘 (monotonic clock) 的解析度大約為 15.6 毫秒。最佳的解析度" +"是 0.5 毫秒。解析度和硬體(\\ `HPET `_ 是否可用)與 Windows 的設定有關。" #: ../../library/asyncio-platforms.rst:75 msgid "Subprocess Support on Windows" -msgstr "" +msgstr "Windows 的子行程支援" #: ../../library/asyncio-platforms.rst:77 msgid "" "On Windows, the default event loop :class:`ProactorEventLoop` supports " "subprocesses, whereas :class:`SelectorEventLoop` does not." msgstr "" +"在 Windows 上,預設的事件迴圈 :class:`ProactorEventLoop` 支援子行程,而 :" +"class:`SelectorEventLoop` 則不支援。" #: ../../library/asyncio-platforms.rst:80 msgid "" @@ -135,6 +158,9 @@ msgid "" "set_child_watcher>` function is also not supported, as :class:" "`ProactorEventLoop` has a different mechanism to watch child processes." msgstr "" +"也不支援 :meth:`policy.set_child_watcher() ` 函式,\\ :class:`ProactorEventLoop` 在監視子行程上有不同" +"的機制。" #: ../../library/asyncio-platforms.rst:87 msgid "macOS" @@ -142,7 +168,7 @@ msgstr "macOS" #: ../../library/asyncio-platforms.rst:89 msgid "Modern macOS versions are fully supported." -msgstr "" +msgstr "完整支援現在普遍流行的 macOS 版本。" #: ../../library/asyncio-platforms.rst:92 msgid "macOS <= 10.8" @@ -156,3 +182,10 @@ msgid "" "class:`~selectors.SelectSelector` or :class:`~selectors.PollSelector` to " "support character devices on these older versions of macOS. Example::" msgstr "" +"在 macOS 10.6、10.7 和 10.8 上,預設的事件迴圈是使用 :class:`selectors." +"KqueueSelector`\\ ,在這些版本上它並不支援字元裝置 (character device)。可以手" +"工設置 :class:`SelectorEventLoop` 來使用 :class:`~selectors.SelectSelector` " +"或 :class:`~selectors.PollSelector` 以在這些舊版 macOS 上支援字元裝置。例" +"如:\n" +"\n" +"::" From a0d0899e71ef6cf0fe280b93fd017157df2fdcb8 Mon Sep 17 00:00:00 2001 From: "Matt.Wang" Date: Mon, 17 Jan 2022 11:38:07 +0800 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Josix --- library/asyncio-platforms.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/asyncio-platforms.po b/library/asyncio-platforms.po index 9d4ac678e5..5ff4d0d78d 100644 --- a/library/asyncio-platforms.po +++ b/library/asyncio-platforms.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-06-20 18:08+0800\n" -"PO-Revision-Date: 2021-12-15 12:57+0800\n" +"PO-Revision-Date: 2022-01-17 11:37+0800\n" "Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -31,8 +31,8 @@ msgid "" "have subtle differences and limitations due to the platforms' underlying " "architecture and capabilities." msgstr "" -":mod:`asyncio` module(模組)被設計為可移植的,但由於平臺的底層架構和功能不" -"同,在一些平臺上存在細微的差異和限制。" +":mod:`asyncio` module(模組)被設計為可攜的 (portable),但由於平臺的底層架構" +"和功能不同,在一些平臺上存在細微的差異和限制。" #: ../../library/asyncio-platforms.rst:17 msgid "All Platforms"