Skip to content

Commit 6c4827c

Browse files
chaircomattwang44
andauthored
Translating library/asyncio (#22)
Co-authored-by: Matt.Wang <mattwang44@gmail.com>
1 parent 6788cbc commit 6c4827c

File tree

2 files changed

+46
-29
lines changed

2 files changed

+46
-29
lines changed

library/asyncio-subprocess.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ msgstr ""
2121

2222
#: ../../library/asyncio-subprocess.rst:7
2323
msgid "Subprocesses"
24-
msgstr "子進程"
24+
msgstr "子行程"
2525

2626
#: ../../library/asyncio-subprocess.rst:9
2727
msgid ""
@@ -61,7 +61,7 @@ msgstr "另請參閱\\ `Examples`_\\ 。"
6161

6262
#: ../../library/asyncio-subprocess.rst:62
6363
msgid "Creating Subprocesses"
64-
msgstr "建立子進程"
64+
msgstr "建立子行程"
6565

6666
#: ../../library/asyncio-subprocess.rst:67
6767
msgid "Create a subprocess."
@@ -378,7 +378,7 @@ msgstr ""
378378

379379
#: ../../library/asyncio-subprocess.rst:310
380380
msgid "Subprocess and Threads"
381-
msgstr "子進程與線程"
381+
msgstr "子行程與線程"
382382

383383
#: ../../library/asyncio-subprocess.rst:312
384384
msgid ""

library/asyncio.po

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,90 @@
1-
# SOME DESCRIPTIVE TITLE.
21
# Copyright (C) 2001-2021, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
54
# Translators:
5+
# Adrian Liaw <adrianliaw2000@gmail.com>, 2018
6+
# Matt Wang <mattwang44@gmail.com>, 2021
67
msgid ""
78
msgstr ""
89
"Project-Id-Version: Python 3.10\n"
910
"Report-Msgid-Bugs-To: \n"
1011
"POT-Creation-Date: 2020-06-20 18:08+0800\n"
11-
"PO-Revision-Date: 2018-05-23 14:39+0000\n"
12-
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
12+
"PO-Revision-Date: 2021-11-23 12:40+0800\n"
13+
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1314
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1415
"tw)\n"
1516
"Language: zh_TW\n"
1617
"MIME-Version: 1.0\n"
1718
"Content-Type: text/plain; charset=UTF-8\n"
1819
"Content-Transfer-Encoding: 8bit\n"
1920
"Plural-Forms: nplurals=1; plural=0;\n"
21+
"X-Generator: Poedit 3.0\n"
2022

21-
#: ../../library/asyncio.rst:66
22-
msgid "High-level APIs"
23-
msgstr ""
24-
25-
#: ../../library/asyncio.rst:77
26-
msgid "Low-level APIs"
27-
msgstr ""
28-
29-
#: ../../library/asyncio.rst:87
30-
msgid "Guides and Tutorials"
31-
msgstr ""
23+
#: ../../library/asyncio.rst:None
24+
msgid "Hello World!"
25+
msgstr "Hello World!"
3226

3327
#: ../../library/asyncio.rst:2
3428
msgid ":mod:`asyncio` --- Asynchronous I/O"
35-
msgstr ""
36-
37-
#: ../../library/asyncio.rst:None
38-
msgid "Hello World!"
39-
msgstr ""
29+
msgstr ":mod:`asyncio` --- 非同步 I/O"
4030

4131
#: ../../library/asyncio.rst:23
4232
msgid ""
4333
"asyncio is a library to write **concurrent** code using the **async/await** "
4434
"syntax."
4535
msgstr ""
36+
"asyncio 是讓使用者以 **async/await** 語法來編寫\\ *並行 (concurrent)* 程式碼"
37+
"的函式庫 (library)。"
4638

4739
#: ../../library/asyncio.rst:26
4840
msgid ""
4941
"asyncio is used as a foundation for multiple Python asynchronous frameworks "
5042
"that provide high-performance network and web-servers, database connection "
5143
"libraries, distributed task queues, etc."
5244
msgstr ""
45+
"asyncio 作為多個 Python 非同步框架的基礎,在高效能網路與網頁伺服器、資料庫連"
46+
"線函式庫、分散式任務佇列等服務都可以看得到它。"
5347

5448
#: ../../library/asyncio.rst:30
5549
msgid ""
5650
"asyncio is often a perfect fit for IO-bound and high-level **structured** "
5751
"network code."
5852
msgstr ""
53+
"asyncio 往往是個建構 IO 密集型與高階層\\ **結構化**\\ 網路程式碼的完美選擇。"
5954

6055
#: ../../library/asyncio.rst:33
6156
msgid "asyncio provides a set of **high-level** APIs to:"
62-
msgstr ""
57+
msgstr "asyncio 提供了一系列\\ **高階** API:"
6358

6459
#: ../../library/asyncio.rst:35
6560
msgid ""
6661
":ref:`run Python coroutines <coroutine>` concurrently and have full control "
6762
"over their execution;"
6863
msgstr ""
64+
"並行地\\ :ref:`運行 Python 協程 (coroutine) <coroutine>` 並擁有完整控制權;"
6965

7066
#: ../../library/asyncio.rst:38
7167
msgid "perform :ref:`network IO and IPC <asyncio-streams>`;"
72-
msgstr ""
68+
msgstr "執行\\ :ref:`網路 IO 與 IPC <asyncio-streams>`;"
7369

7470
#: ../../library/asyncio.rst:40
7571
msgid "control :ref:`subprocesses <asyncio-subprocess>`;"
76-
msgstr ""
72+
msgstr "控制\\ :ref:`子行程 (subprocess) <asyncio-subprocess>`;"
7773

7874
#: ../../library/asyncio.rst:42
7975
msgid "distribute tasks via :ref:`queues <asyncio-queues>`;"
80-
msgstr ""
76+
msgstr "透過\\ :ref:`佇列 (queue) <asyncio-queues>` 分配任務;"
8177

8278
#: ../../library/asyncio.rst:44
8379
msgid ":ref:`synchronize <asyncio-sync>` concurrent code;"
84-
msgstr ""
80+
msgstr ":ref:`同步 <asyncio-sync>`\\ 並行程式碼;"
8581

8682
#: ../../library/asyncio.rst:46
8783
msgid ""
8884
"Additionally, there are **low-level** APIs for *library and framework "
8985
"developers* to:"
9086
msgstr ""
87+
"此外,還有一些給\\ *函式庫與框架 (framework) 開發者*\\\\ **低階** API:"
9188

9289
#: ../../library/asyncio.rst:49
9390
msgid ""
@@ -96,23 +93,43 @@ msgid ""
9693
"`subprocesses <loop.subprocess_exec>`, handling :meth:`OS signals <loop."
9794
"add_signal_handler>`, etc;"
9895
msgstr ""
96+
"建立與管理 :ref:`event loops(事件迴圈) <asyncio-event-loop>`,它提供了能被"
97+
"用於\\ :meth:`網路 <loop.create_server>`\\ 、執行\\ :meth:`子行程 <loop."
98+
"subprocess_exec>`、處理\\ :meth:`作業系統訊號 <loop.add_signal_handler>`\\ 等"
99+
"任務的非同步 API;"
99100

100101
#: ../../library/asyncio.rst:54
101102
msgid ""
102103
"implement efficient protocols using :ref:`transports <asyncio-transports-"
103104
"protocols>`;"
104105
msgstr ""
106+
"使用 :ref:`transports(asyncio 底層傳輸相關類別) <asyncio-transports-"
107+
"protocols>`\\ 來實作高效能協定;"
105108

106109
#: ../../library/asyncio.rst:57
107110
msgid ""
108111
":ref:`bridge <asyncio-futures>` callback-based libraries and code with async/"
109112
"await syntax."
110113
msgstr ""
114+
"透過 async/await 語法來\\ :ref:`橋接 <asyncio-futures>`\\ 基於回呼 (callback-"
115+
"based) 的函式庫與程式碼。"
111116

112117
#: ../../library/asyncio.rst:65
113118
msgid "Reference"
114-
msgstr ""
119+
msgstr "參閱"
120+
121+
#: ../../library/asyncio.rst:66
122+
msgid "High-level APIs"
123+
msgstr "高階 API"
124+
125+
#: ../../library/asyncio.rst:77
126+
msgid "Low-level APIs"
127+
msgstr "低階 API"
128+
129+
#: ../../library/asyncio.rst:87
130+
msgid "Guides and Tutorials"
131+
msgstr "指南與教學"
115132

116133
#: ../../library/asyncio.rst:96
117134
msgid "The source code for asyncio can be found in :source:`Lib/asyncio/`."
118-
msgstr ""
135+
msgstr "asyncio 的原始碼可以在 :source:`Lib/asyncio/` 中找到。"

0 commit comments

Comments
 (0)