From 0dc8003783273a8d55402f53d8ed9d0de5d9a02c Mon Sep 17 00:00:00 2001 From: weijay Date: Fri, 1 Dec 2023 14:42:34 +0800 Subject: [PATCH 1/3] feat: translate library/socket.po intro section gh-611 --- library/socket.po | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/library/socket.po b/library/socket.po index c7e95f09c9..f7e19412b6 100644 --- a/library/socket.po +++ b/library/socket.po @@ -6,9 +6,9 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.13\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-11-23 00:14+0000\n" -"PO-Revision-Date: 2018-05-23 16:10+0000\n" -"Last-Translator: Adrian Liaw \n" +"POT-Creation-Date: 2023-10-30 00:03+0000\n" +"PO-Revision-Date: 2023-12-01 14:10+0800\n" +"Last-Translator: Jay \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" @@ -16,10 +16,11 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 3.4.1\n" #: ../../library/socket.rst:2 -msgid ":mod:`!socket` --- Low-level networking interface" -msgstr ":mod:`!socket` --- 低階網路介面" +msgid ":mod:`socket` --- Low-level networking interface" +msgstr ":mod:`socket` — 網路底層介面" #: ../../library/socket.rst:7 msgid "**Source code:** :source:`Lib/socket.py`" @@ -31,12 +32,14 @@ msgid "" "on all modern Unix systems, Windows, MacOS, and probably additional " "platforms." msgstr "" +"這個模組提供了操作 BSD *socket* 的介面。這在所有現代Unix系統、Windows、" +"MacOS,以及一些其他平台上都可用。" #: ../../library/socket.rst:16 msgid "" "Some behavior may be platform dependent, since calls are made to the " "operating system socket APIs." -msgstr "" +msgstr "由於是呼叫作業系統的 socket API,某些行為可能會因平台而有所差異。" #: ../../library/socket.rst:171 ../../library/socket.rst:181 #: ../../library/socket.rst:209 ../../library/socket.rst:216 @@ -88,6 +91,11 @@ msgid "" "meth:`write` operations on Python files, buffer allocation on receive " "operations is automatic, and buffer length is implicit on send operations." msgstr "" +"Python 介面是 Unix 系統呼叫和 socket 模組介面直譯成 Python 物件導向風格的簡單" +"轉換::func:`.socket` 函數回傳一個 :dfn:`socket object`,其中實現了各種 " +"socket 系統呼叫。參數類型相對於 C 語言的介面略為高層次:與 Python 文件操作中" +"的 :meth:`read` 和 :meth:`write` 一樣,接收操作的緩衝區是自動分配的,而在發送" +"操作的緩衝區長度是隱式的。" #: ../../library/socket.rst:35 msgid "Module :mod:`socketserver`" @@ -95,7 +103,7 @@ msgstr ":mod:`socketserver` 模組" #: ../../library/socket.rst:36 msgid "Classes that simplify writing network servers." -msgstr "" +msgstr "簡化編寫網路伺服器的類別。" #: ../../library/socket.rst:38 msgid "Module :mod:`ssl`" @@ -103,7 +111,7 @@ msgstr ":mod:`ssl` 模組" #: ../../library/socket.rst:39 msgid "A TLS/SSL wrapper for socket objects." -msgstr "" +msgstr "對 socket 物件的 TLS/SSL 的封裝。" #: ../../library/socket.rst:43 msgid "Socket families" From 3c14929eeba4c2b4a3bf145d93b84c86d42c8742 Mon Sep 17 00:00:00 2001 From: weijay Date: Mon, 26 Feb 2024 22:11:58 +0800 Subject: [PATCH 2/3] feat: update with reviewer's suggestions --- library/socket.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/socket.po b/library/socket.po index f7e19412b6..1fb53b63f6 100644 --- a/library/socket.po +++ b/library/socket.po @@ -91,8 +91,8 @@ msgid "" "meth:`write` operations on Python files, buffer allocation on receive " "operations is automatic, and buffer length is implicit on send operations." msgstr "" -"Python 介面是 Unix 系統呼叫和 socket 模組介面直譯成 Python 物件導向風格的簡單" -"轉換::func:`.socket` 函數回傳一個 :dfn:`socket object`,其中實現了各種 " +"這個 Python 介面是將 Unix 系統呼叫和 socket 模組介面轉變成 Python 物件導向風格" +"::func:`.socket` 函數回傳一個 :dfn:`socket object`,其方法實現了各種 " "socket 系統呼叫。參數類型相對於 C 語言的介面略為高層次:與 Python 文件操作中" "的 :meth:`read` 和 :meth:`write` 一樣,接收操作的緩衝區是自動分配的,而在發送" "操作的緩衝區長度是隱式的。" @@ -111,7 +111,7 @@ msgstr ":mod:`ssl` 模組" #: ../../library/socket.rst:39 msgid "A TLS/SSL wrapper for socket objects." -msgstr "對 socket 物件的 TLS/SSL 的封裝。" +msgstr "對 socket 物件的 TLS/SSL 的包裝器 (wrapper)。" #: ../../library/socket.rst:43 msgid "Socket families" From ab9c7ae6b2955f56d40e48e02bf2b999892540e2 Mon Sep 17 00:00:00 2001 From: weijay Date: Mon, 30 Dec 2024 23:54:37 +0800 Subject: [PATCH 3/3] feat: update with reviewer's suggestions --- library/socket.po | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/library/socket.po b/library/socket.po index 1fb53b63f6..ad5802ce9e 100644 --- a/library/socket.po +++ b/library/socket.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Python 3.13\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-10-30 00:03+0000\n" -"PO-Revision-Date: 2023-12-01 14:10+0800\n" +"PO-Revision-Date: 2024-12-30 23:45+0800\n" "Last-Translator: Jay \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -16,7 +16,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Poedit 3.4.1\n" +"X-Generator: Poedit 3.5\n" #: ../../library/socket.rst:2 msgid ":mod:`socket` --- Low-level networking interface" @@ -32,7 +32,7 @@ msgid "" "on all modern Unix systems, Windows, MacOS, and probably additional " "platforms." msgstr "" -"這個模組提供了操作 BSD *socket* 的介面。這在所有現代Unix系統、Windows、" +"這個模組提供了操作 BSD *socket* 的介面。這在所有現代 Unix 系統、Windows、" "MacOS,以及一些其他平台上都可用。" #: ../../library/socket.rst:16 @@ -91,11 +91,11 @@ msgid "" "meth:`write` operations on Python files, buffer allocation on receive " "operations is automatic, and buffer length is implicit on send operations." msgstr "" -"這個 Python 介面是將 Unix 系統呼叫和 socket 模組介面轉變成 Python 物件導向風格" -"::func:`.socket` 函數回傳一個 :dfn:`socket object`,其方法實現了各種 " -"socket 系統呼叫。參數類型相對於 C 語言的介面略為高層次:與 Python 文件操作中" -"的 :meth:`read` 和 :meth:`write` 一樣,接收操作的緩衝區是自動分配的,而在發送" -"操作的緩衝區長度是隱式的。" +"Python 的介面是將 Unix 的系統呼叫和 socket 函式庫介面直接轉換成 Python 的物件" +"導向風格::func:`.socket` 函數會回傳一個 :dfn:`socket 物件`,這個物件的方法實" +"作了各種 socket 系統呼叫。與 C 語言介面相比,參數型別較為高階:就像 Python 文" +"件操作中的 :meth:`read` 和 :meth:`write` 一樣,接收操作時會自動分配緩衝區,而" +"發送操作時的緩衝區長度則是隱含的。" #: ../../library/socket.rst:35 msgid "Module :mod:`socketserver`"