-
-
Notifications
You must be signed in to change notification settings - Fork 219
docs(howto/sockets.po): 翻譯 Binary Data
和 Disconnecting
區塊
#518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -8,7 +8,7 @@ msgstr "" | |||||||||||||||||
"Project-Id-Version: Python 3.11\n" | ||||||||||||||||||
"Report-Msgid-Bugs-To: \n" | ||||||||||||||||||
"POT-Creation-Date: 2022-06-10 00:16+0000\n" | ||||||||||||||||||
"PO-Revision-Date: 2023-07-19 20:17+0800\n" | ||||||||||||||||||
"PO-Revision-Date: 2023-08-03 18:11+0800\n" | ||||||||||||||||||
"Last-Translator: Jay <[email protected]>\n" | ||||||||||||||||||
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | ||||||||||||||||||
"tw)\n" | ||||||||||||||||||
|
@@ -417,7 +417,7 @@ msgstr "" | |||||||||||||||||
|
||||||||||||||||||
#: ../../howto/sockets.rst:252 | ||||||||||||||||||
msgid "Binary Data" | ||||||||||||||||||
msgstr "" | ||||||||||||||||||
msgstr "二進制資料" | ||||||||||||||||||
|
||||||||||||||||||
#: ../../howto/sockets.rst:254 | ||||||||||||||||||
msgid "" | ||||||||||||||||||
|
@@ -430,6 +430,12 @@ msgid "" | |||||||||||||||||
"little-endian, with the least significant byte first - that same ``1`` would " | ||||||||||||||||||
"be ``01 00``." | ||||||||||||||||||
msgstr "" | ||||||||||||||||||
"使用 socket 傳輸二進制資料完全是可行的。最主要的問題在於不同機器使用不同的二" | ||||||||||||||||||
"進制資料格式。例如,`網路二進制順序 <https://en.wikipedia.org/wiki/" | ||||||||||||||||||
"Endianness#Networking>`_ 採用的是「大端序 big-endian」最大的位元組排在前面," | ||||||||||||||||||
|
||||||||||||||||||
"所以一個值為 ``1`` 的 16 位元整數會表示成兩個 16 進位的位元組 ``00 01``。然而" | ||||||||||||||||||
"大多數常見的處理器 (x86/AMD64,ARM,RISC-V) 採用的是「小端序 little-" | ||||||||||||||||||
"endian」,最小的位元組排在前面 - 所以相同的 ``1`` 會被表示成 ``01 00``。" | ||||||||||||||||||
|
"Endianness#Networking>`_ 採用的是「大端序 big-endian」最大的位元組排在前面," | |
"所以一個值為 ``1`` 的 16 位元整數會表示成兩個 16 進位的位元組 ``00 01``。然而" | |
"大多數常見的處理器 (x86/AMD64,ARM,RISC-V) 採用的是「小端序 little-" | |
"endian」,最小的位元組排在前面 - 所以相同的 ``1`` 會被表示成 ``01 00``。" | |
"Endianness#Networking>`_ 採用的是大端序 (big-endian),最大的位元組排在前面," | |
"所以一個值為 ``1`` 的 16 位元整數會表示成兩個 16 進位的位元組 ``00 01``。然而" | |
"大多數常見的處理器 (x86/AMD64,ARM,RISC-V) 採用的是小端序 (little-" | |
"endian),最小的位元組排在前面 - 所以相同的 ``1`` 會被表示成 ``01 00``。" |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
跟開頭 character 有關,不翻譯比較好理解
"ntohs, htons``,其中 \"n\" 表示 *網路*,\"h\" 表示 *主機*,\"s\" 表示 " | |
"ntohs, htons``,其中 \"n\" 表示 *network*,\"h\" 表示 *host*,\"s\" 表示 " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parameter -> 參數
argument -> 引數
"發送給 socket 另一端的一個提醒。根據你傳遞的參數,它可以表示「我不會再發送任" | |
"發送給 socket 另一端的一個提醒。根據你傳遞的引數,它可以表示「我不會再發送任" |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit 為了與 method 的「方法」做區別,我會傾向翻成「方式」
"有效使用 ``shutdown`` 的一種方法是在類似 HTTP 的交換中,用戶端發送請求後,然" | |
"有效使用 ``shutdown`` 的一種方式是在類似 HTTP 的交換中,用戶端發送請求後,然" |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Python 更近一步地採取自動關閉的步驟,並且當 socket 被回收機制回收時,如果需要" | |
"Python 更進一步地採取自動關閉的步驟,並且當 socket 被垃圾回收機制回收時,如果需要" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我自己習慣「進制」都改成「進位」,可以再查一下有沒有可靠的翻譯依據
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
了解,進位感覺比較好。
維基百科(進位制) 也是用進位來表示