Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3937f38

Browse files
Translate c-api/{abstract,bool,coro,descriptor,utilities}.po (#169)
Co-authored-by: Allen Wu <[email protected]>
1 parent 4a9fe8f commit 3937f38

File tree

10 files changed

+104
-56
lines changed

10 files changed

+104
-56
lines changed

c-api/abstract.po

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,28 @@
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:
6-
# aminzai <[email protected]>, 2015
6+
# aminzai <[email protected]>, 2017
7+
# Matt Wang <[email protected]>, 2021
8+
#
79
msgid ""
810
msgstr ""
911
"Project-Id-Version: Python 3.10\n"
1012
"Report-Msgid-Bugs-To: \n"
1113
"POT-Creation-Date: 2018-06-26 18:54+0800\n"
12-
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
13-
"Last-Translator: aminzai <lagunawang@gmail.com>\n"
14+
"PO-Revision-Date: 2021-12-09 21:20+0800\n"
15+
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1416
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1517
"tw)\n"
1618
"Language: zh_TW\n"
1719
"MIME-Version: 1.0\n"
1820
"Content-Type: text/plain; charset=UTF-8\n"
1921
"Content-Transfer-Encoding: 8bit\n"
2022
"Plural-Forms: nplurals=1; plural=0;\n"
23+
"X-Generator: Poedit 3.0\n"
2124

2225
#: ../../c-api/abstract.rst:7
2326
msgid "Abstract Objects Layer"
24-
msgstr "抽象物件層"
27+
msgstr "抽象物件層 (Abstract Objects Layer)"
2528

2629
#: ../../c-api/abstract.rst:9
2730
msgid ""
@@ -30,6 +33,9 @@ msgid ""
3033
"or all sequence types). When used on object types for which they do not "
3134
"apply, they will raise a Python exception."
3235
msgstr ""
36+
"本章中的函式與 Python 物件相互作用,無論其型別、或具有廣泛類別的物件型別(例"
37+
"如所有數值型別或所有序列型別)。當使用於不適用的物件型別時,他們會引發一個 "
38+
"Python 異常 (exception)。"
3339

3440
#: ../../c-api/abstract.rst:14
3541
msgid ""
@@ -38,3 +44,5 @@ msgid ""
3844
"`PyList_New`, but whose items have not been set to some non-\\ ``NULL`` "
3945
"value yet."
4046
msgstr ""
47+
"這些函式是不可能用於未正確初始化的物件(例如一個由 :c:func:`PyList_New` 建立"
48+
"的 list 物件),而其中的項目沒有被設為一些非 ``NULL`` 的值。"

c-api/bool.po

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,27 @@
44
#
55
# Translators:
66
# Ching-Lung Chuang, 2015
7+
# Matt Wang <[email protected]>, 2021
8+
#
79
msgid ""
810
msgstr ""
911
"Project-Id-Version: Python 3.10\n"
1012
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
12-
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
13-
"Last-Translator: Ching-Lung Chuang\n"
13+
"POT-Creation-Date: 2021-06-29 12:56+0000\n"
14+
"PO-Revision-Date: 2021-12-09 20:47+0800\n"
15+
"Last-Translator: Matt Wang <[email protected]>\n"
1416
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1517
"tw)\n"
1618
"Language: zh_TW\n"
1719
"MIME-Version: 1.0\n"
1820
"Content-Type: text/plain; charset=UTF-8\n"
1921
"Content-Transfer-Encoding: 8bit\n"
2022
"Plural-Forms: nplurals=1; plural=0;\n"
23+
"X-Generator: Poedit 3.0\n"
2124

2225
#: ../../c-api/bool.rst:6
2326
msgid "Boolean Objects"
24-
msgstr "布林物件"
27+
msgstr "Boolean(布林)物件"
2528

2629
#: ../../c-api/bool.rst:8
2730
msgid ""
@@ -30,39 +33,49 @@ msgid ""
3033
"normal creation and deletion functions don't apply to booleans. The "
3134
"following macros are available, however."
3235
msgstr ""
36+
"Python 中的 boolean 是以整數子類別化來實現的。只有 :const:`Py_False` 和 :"
37+
"const:`Py_True` 兩個 boolean。因此一般的建立和刪除函式並不適用於 boolean。但"
38+
"下列巨集 (macro) 是可用的。"
3339

3440
#: ../../c-api/bool.rst:16
3541
msgid ""
3642
"Return true if *o* is of type :c:data:`PyBool_Type`. This function always "
3743
"succeeds."
3844
msgstr ""
45+
"如果 *o* 的型別為 :c:data:`PyBool_Type` 則回傳真值。此函式總是會成功執行。"
3946

4047
#: ../../c-api/bool.rst:22
4148
msgid ""
4249
"The Python ``False`` object. This object has no methods. It needs to be "
4350
"treated just like any other object with respect to reference counts."
4451
msgstr ""
52+
"Python 的 ``False`` 物件。此物件沒有任何方法。在參照 (reference) 計數上必須有"
53+
"著和其他物件一樣的處理方式。"
4554

4655
#: ../../c-api/bool.rst:28
4756
msgid ""
4857
"The Python ``True`` object. This object has no methods. It needs to be "
4958
"treated just like any other object with respect to reference counts."
5059
msgstr ""
60+
"Python 的 ``True`` 物件。此物件沒有任何方法。在參照計數上必須有著和其他物件一"
61+
"樣的處理方式。"
5162

5263
#: ../../c-api/bool.rst:34
5364
msgid ""
5465
"Return :const:`Py_False` from a function, properly incrementing its "
5566
"reference count."
56-
msgstr ""
67+
msgstr "從函式回傳 :const:`Py_False`\\ ,並適當的增加它的參照計數。"
5768

5869
#: ../../c-api/bool.rst:40
5970
msgid ""
6071
"Return :const:`Py_True` from a function, properly incrementing its reference "
6172
"count."
62-
msgstr ""
73+
msgstr "從函式回傳 :const:`Py_True`\\ ,並適當的增加它的參照計數。"
6374

6475
#: ../../c-api/bool.rst:46
6576
msgid ""
6677
"Return a new reference to :const:`Py_True` or :const:`Py_False` depending on "
6778
"the truth value of *v*."
6879
msgstr ""
80+
"根據 *v* 的實際值來回傳一個 :const:`Py_True` 或者 :const:`Py_False` 的新參"
81+
"照。"

c-api/coro.po

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,50 @@
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:
6+
# Liang-Bo Wang <[email protected]>, 2015
7+
# Matt Wang <[email protected]>, 2021
8+
#
69
msgid ""
710
msgstr ""
811
"Project-Id-Version: Python 3.10\n"
912
"Report-Msgid-Bugs-To: \n"
1013
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
11-
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
12-
"Last-Translator: Liang-Bo Wang <[email protected]>\n"
14+
"PO-Revision-Date: 2021-12-09 21:15+0800\n"
15+
"Last-Translator: Matt Wang <[email protected]>\n"
1316
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1417
"tw)\n"
1518
"Language: zh_TW\n"
1619
"MIME-Version: 1.0\n"
1720
"Content-Type: text/plain; charset=UTF-8\n"
1821
"Content-Transfer-Encoding: 8bit\n"
1922
"Plural-Forms: nplurals=1; plural=0;\n"
23+
"X-Generator: Poedit 3.0\n"
2024

2125
#: ../../c-api/coro.rst:6
2226
msgid "Coroutine Objects"
23-
msgstr "協程物件"
27+
msgstr "Coroutine(協程)物件"
2428

2529
#: ../../c-api/coro.rst:10
2630
msgid ""
2731
"Coroutine objects are what functions declared with an ``async`` keyword "
2832
"return."
29-
msgstr ""
33+
msgstr "Coroutine 物件是那些以 ``async`` 關鍵字來宣告的函式所回傳的物件。"
3034

3135
#: ../../c-api/coro.rst:16
3236
msgid "The C structure used for coroutine objects."
33-
msgstr ""
37+
msgstr "用於 coroutine 物件的 C 結構。"
3438

3539
#: ../../c-api/coro.rst:21
3640
msgid "The type object corresponding to coroutine objects."
37-
msgstr ""
41+
msgstr "與 coroutine 物件對應的型別物件。"
3842

3943
#: ../../c-api/coro.rst:26
4044
msgid ""
4145
"Return true if *ob*'s type is :c:type:`PyCoro_Type`; *ob* must not be "
4246
"``NULL``. This function always succeeds."
4347
msgstr ""
48+
"如果 *ob* 的型別是 :c:type:`PyCoro_Type` 則回傳真值;*ob* 必須不為 ``NULL``"
49+
"\\ 。此函式總是會執行成功。"
4450

4551
#: ../../c-api/coro.rst:32
4652
msgid ""
@@ -49,3 +55,6 @@ msgid ""
4955
"to *frame* is stolen by this function. The *frame* argument must not be "
5056
"``NULL``."
5157
msgstr ""
58+
"基於 *frame* 物件來建立並回傳一個新的 coroutine 物件,其中 ``__name__`` 和 "
59+
"``__qualname__`` 被設為 *name* 和 *qualname*。此函式會取得一個對 *frame* 的參"
60+
"照 (reference)。\\ *frame* 引數必須不為 ``NULL``\\ 。"

c-api/descriptor.po

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,46 @@
44
#
55
# Translators:
66
# Leon H., 2017
7+
# Matt Wang <[email protected]>, 2021
8+
#
79
msgid ""
810
msgstr ""
911
"Project-Id-Version: Python 3.10\n"
1012
"Report-Msgid-Bugs-To: \n"
1113
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
12-
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
13-
"Last-Translator: Leon H.\n"
14+
"PO-Revision-Date: 2021-12-09 20:56+0800\n"
15+
"Last-Translator: Matt Wang <[email protected]>\n"
1416
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1517
"tw)\n"
1618
"Language: zh_TW\n"
1719
"MIME-Version: 1.0\n"
1820
"Content-Type: text/plain; charset=UTF-8\n"
1921
"Content-Transfer-Encoding: 8bit\n"
2022
"Plural-Forms: nplurals=1; plural=0;\n"
23+
"X-Generator: Poedit 3.0\n"
2124

2225
#: ../../c-api/descriptor.rst:6
2326
msgid "Descriptor Objects"
24-
msgstr "修飾器物件"
27+
msgstr "Descriptor(描述器)物件"
2528

2629
#: ../../c-api/descriptor.rst:8
2730
msgid ""
2831
"\"Descriptors\" are objects that describe some attribute of an object. They "
2932
"are found in the dictionary of type objects."
3033
msgstr ""
34+
"\"Descriptor\" 是描述物件某些屬性的物件,它們存在於型別物件的 dictionary(字"
35+
"典)中。"
3136

3237
#: ../../c-api/descriptor.rst:15
3338
msgid "The type object for the built-in descriptor types."
34-
msgstr ""
39+
msgstr "內建 descriptor 型別的型別物件。"
3540

3641
#: ../../c-api/descriptor.rst:35
3742
msgid ""
3843
"Return non-zero if the descriptor objects *descr* describes a data "
3944
"attribute, or ``0`` if it describes a method. *descr* must be a descriptor "
4045
"object; there is no error checking."
4146
msgstr ""
47+
"如果 descriptor 物件 *descr* 描述的是一個資料屬性則回傳非零值,或者如果它描述"
48+
"的是一個方法則返回 ``0``\\\\ *descr* 必須為一個 descriptor 物件;沒有錯誤"
49+
"檢查。"

c-api/utilities.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@
44
#
55
# Translators:
66
# Leon H., 2017
7+
# Matt Wang <[email protected]>, 2021
8+
#
79
msgid ""
810
msgstr ""
911
"Project-Id-Version: Python 3.10\n"
1012
"Report-Msgid-Bugs-To: \n"
1113
"POT-Creation-Date: 2018-06-26 18:54+0800\n"
12-
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
13-
"Last-Translator: Leon H.\n"
14+
"PO-Revision-Date: 2021-12-09 20:48+0800\n"
15+
"Last-Translator: Matt Wang <[email protected]>\n"
1416
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1517
"tw)\n"
1618
"Language: zh_TW\n"
1719
"MIME-Version: 1.0\n"
1820
"Content-Type: text/plain; charset=UTF-8\n"
1921
"Content-Transfer-Encoding: 8bit\n"
2022
"Plural-Forms: nplurals=1; plural=0;\n"
23+
"X-Generator: Poedit 3.0\n"
2124

2225
#: ../../c-api/utilities.rst:7
2326
msgid "Utilities"
@@ -30,3 +33,6 @@ msgid ""
3033
"C, and parsing function arguments and constructing Python values from C "
3134
"values."
3235
msgstr ""
36+
"本章中的函式可用來執行各種工具任務,包括幫助 C 程式碼提升跨平臺可攜性 (portable)、在 "
37+
"C 中使用 Python module(模組)、以及解析函式引數並基於 C 中的值來構建 Python "
38+
"中的值等。"

0 commit comments

Comments
 (0)