-
-
Notifications
You must be signed in to change notification settings - Fork 222
Translate library/queue.po
#187
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 3 commits
311dcda
a97c31f
904d536
85cf873
1088bad
7b10787
f8af9b2
306bb1a
b9abb51
dc21ddc
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,24 +3,28 @@ | |||||||||
| # This file is distributed under the same license as the Python package. | ||||||||||
| # | ||||||||||
| # Translators: | ||||||||||
| # Adrian Liaw <[email protected]>, 2018 | ||||||||||
| # Allen Wu <[email protected]>, 2021 | ||||||||||
| # | ||||||||||
| msgid "" | ||||||||||
| msgstr "" | ||||||||||
| "Project-Id-Version: Python 3.10\n" | ||||||||||
| "Report-Msgid-Bugs-To: \n" | ||||||||||
| "POT-Creation-Date: 2022-04-15 00:13+0000\n" | ||||||||||
| "PO-Revision-Date: 2018-05-23 16:08+0000\n" | ||||||||||
| "Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n" | ||||||||||
| "PO-Revision-Date: 2021-12-18 19:14+0800\n" | ||||||||||
| "Last-Translator: Allen Wu <allen91.wu@gmail.com>\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" | ||||||||||
| "Plural-Forms: nplurals=1; plural=0;\n" | ||||||||||
| "X-Generator: Poedit 3.0.1\n" | ||||||||||
|
|
||||||||||
| #: ../../library/queue.rst:2 | ||||||||||
| msgid ":mod:`queue` --- A synchronized queue class" | ||||||||||
| msgstr "" | ||||||||||
| msgstr ":mod:`queue` --- 同步佇列 (quene) class(類別)" | ||||||||||
|
|
||||||||||
| #: ../../library/queue.rst:7 | ||||||||||
| msgid "**Source code:** :source:`Lib/queue.py`" | ||||||||||
|
|
@@ -33,6 +37,9 @@ msgid "" | |||||||||
| "exchanged safely between multiple threads. The :class:`Queue` class in this " | ||||||||||
| "module implements all the required locking semantics." | ||||||||||
| msgstr "" | ||||||||||
| ":mod:`queue` 模組實作多生產者、多消費者佇列。在執行緒程式設計中,必須在多執行" | ||||||||||
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| "緒之間安全地交換資訊時,特別有用。此 module 中的 :class:`Queue` class 實作所" | ||||||||||
| "有必需的鎖定語義 (Semantics)。" | ||||||||||
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
|
|
||||||||||
| #: ../../library/queue.rst:16 | ||||||||||
| msgid "" | ||||||||||
|
|
@@ -44,24 +51,33 @@ msgid "" | |||||||||
| "sorted (using the :mod:`heapq` module) and the lowest valued entry is " | ||||||||||
| "retrieved first." | ||||||||||
| msgstr "" | ||||||||||
| "此 module 實作三種型別的佇列,它們僅在取出條目的順序上有所不同。在 :abbr:" | ||||||||||
| "`FIFO (first-in, first-out)` 佇列中,先加入的任務是第一個被取出的。在 :abbr:" | ||||||||||
| "`LIFO (last-in, first-out)` 佇列中,最近被加入的條目是第一個被取出的(像堆疊 " | ||||||||||
| "(stack) 一樣操作)。使用優先佇列時,條目將保持排序狀態(使用 :mod:`heapq` " | ||||||||||
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| "module),並先取出最低值條目。" | ||||||||||
|
|
||||||||||
| #: ../../library/queue.rst:24 | ||||||||||
| msgid "" | ||||||||||
| "Internally, those three types of queues use locks to temporarily block " | ||||||||||
| "competing threads; however, they are not designed to handle reentrancy " | ||||||||||
| "within a thread." | ||||||||||
| msgstr "" | ||||||||||
| "在內部,這三種型別的佇列使用鎖來臨時鎖定競爭執行緒;但是,它們並不是被設計來" | ||||||||||
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| "處理執行緒內的 reentrancy(可重入)。" | ||||||||||
|
|
||||||||||
| #: ../../library/queue.rst:28 | ||||||||||
| msgid "" | ||||||||||
| "In addition, the module implements a \"simple\" :abbr:`FIFO (first-in, first-" | ||||||||||
| "out)` queue type, :class:`SimpleQueue`, whose specific implementation " | ||||||||||
| "provides additional guarantees in exchange for the smaller functionality." | ||||||||||
| msgstr "" | ||||||||||
| "此外,此 module 實作一個「簡單」的 :abbr:`FIFO (first-in, first-out)` 佇列型" | ||||||||||
| "別 :class:`SimpleQueue`,其明確的實作提供了額外的保證,以換取較小的功能。" | ||||||||||
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
|
|
||||||||||
| #: ../../library/queue.rst:33 | ||||||||||
| msgid "The :mod:`queue` module defines the following classes and exceptions:" | ||||||||||
| msgstr "" | ||||||||||
| msgstr ":mod:`queue` module 定義了以下的 class 和例外:" | ||||||||||
|
|
||||||||||
| #: ../../library/queue.rst:37 | ||||||||||
| msgid "" | ||||||||||
|
|
@@ -71,6 +87,9 @@ msgid "" | |||||||||
| "until queue items are consumed. If *maxsize* is less than or equal to zero, " | ||||||||||
| "the queue size is infinite." | ||||||||||
| msgstr "" | ||||||||||
| ":abbr:`FIFO (first-in, first-out)` 佇列的建構子 (constructor)。*maxsize* 是一" | ||||||||||
| "個整數,用於設置佇列中可放置的項目數的上限。一旦達到此大小,插入將被鎖定,直" | ||||||||||
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| "到佇列中的項目被消耗完。如果 *maxsize* 小於或等於零,則佇列大小為無限。" | ||||||||||
|
||||||||||
| "到佇列中的項目被消耗完。如果 *maxsize* 小於或等於零,則佇列大小為無限。" | |
| "到佇列中的項目被消耗。如果 *maxsize* 小於或等於零,則佇列大小為無限。" |
我的理解是,應該不用等到項目被消耗完,只要有空間就可以解除 block。
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
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.
| msgstr "用於多工(而非多執行緒)上下文的佇列 class。" | |
| msgstr "用於多元處理(而非多執行緒)上下文的佇列 class。" |
Reference: 多元處理 wiki
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.
process 一詞目前多翻譯為行程
| msgstr "用於多工(而非多執行緒)上下文的佇列 class。" | |
| msgstr "用於多行程處理 (multi-processing)(而非多執行緒)情境 (context) 的佇列 class。" |
Uh oh!
There was an error while loading. Please reload this page.