Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 78accb8

Browse filesBrowse files
authored
Merge pull request #210 from mattwang44/capi/method
Translate `c-api/method.po`
2 parents cdc2562 + c20d86e commit 78accb8
Copy full SHA for 78accb8

File tree

Expand file treeCollapse file tree

1 file changed

+30
-10
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+30
-10
lines changed

‎c-api/method.po

Copy file name to clipboard
+30-10Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,128 @@
1-
# SOME DESCRIPTIVE TITLE.
21
# Copyright (C) 2001-2022, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
54
# Translators:
65
# Leon H., 2017
6+
# Matt Wang <mattwang44@gmail.com>, 2022
77
msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
12-
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
13-
"Last-Translator: Leon H.\n"
12+
"PO-Revision-Date: 2022-01-24 22:22+0800\n"
13+
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1515
"tw)\n"
1616
"Language: zh_TW\n"
1717
"MIME-Version: 1.0\n"
1818
"Content-Type: text/plain; charset=UTF-8\n"
1919
"Content-Transfer-Encoding: 8bit\n"
2020
"Plural-Forms: nplurals=1; plural=0;\n"
21+
"X-Generator: Poedit 3.0.1\n"
2122

2223
#: ../../c-api/method.rst:6
2324
msgid "Instance Method Objects"
24-
msgstr "實體方法物件"
25+
msgstr "實例方法物件 (Instance Method Objects)"
2526

2627
#: ../../c-api/method.rst:10
2728
msgid ""
2829
"An instance method is a wrapper for a :c:data:`PyCFunction` and the new way "
2930
"to bind a :c:data:`PyCFunction` to a class object. It replaces the former "
3031
"call ``PyMethod_New(func, NULL, class)``."
3132
msgstr ""
33+
"實例方法是 :c:data:`PyCFunction` 的包裝器 (wrapper),也是將 :c:data:"
34+
"`PyCFunction` 繫結 (bind) 到類別物件的一種新方式。它替代了原先對 "
35+
"``PyMethod_New(func, NULL, class)`` 的呼叫。"
3236

3337
#: ../../c-api/method.rst:17
3438
msgid ""
3539
"This instance of :c:type:`PyTypeObject` represents the Python instance "
3640
"method type. It is not exposed to Python programs."
3741
msgstr ""
42+
":c:type:`PyTypeObject` 的實例代表 Python 實例方法型別。它不會公開 (expose) "
43+
"給 Python 程式。"
3844

3945
#: ../../c-api/method.rst:23
4046
msgid ""
4147
"Return true if *o* is an instance method object (has type :c:data:"
4248
"`PyInstanceMethod_Type`). The parameter must not be ``NULL``. This function "
4349
"always succeeds."
4450
msgstr ""
51+
"如果 *o* 是一個實例方法物件(型別為 :c:data:`PyInstanceMethod_Type`\\ )則回"
52+
"傳 true。參數必須不為 ``NULL``\\ 。此函式總是會成功執行。"
4553

4654
#: ../../c-api/method.rst:30
4755
msgid ""
4856
"Return a new instance method object, with *func* being any callable object "
4957
"*func* is the function that will be called when the instance method is "
5058
"called."
5159
msgstr ""
60+
"回傳一個新的實例方法物件,\\ *func* 為任意可呼叫物件,在實例方法被呼叫時 "
61+
"*func* 函式也會被呼叫。"
5262

5363
#: ../../c-api/method.rst:37
5464
msgid "Return the function object associated with the instance method *im*."
55-
msgstr ""
65+
msgstr "回傳關聯到實例方法 *im* 的函式物件。"
5666

5767
#: ../../c-api/method.rst:42
5868
msgid ""
5969
"Macro version of :c:func:`PyInstanceMethod_Function` which avoids error "
6070
"checking."
6171
msgstr ""
72+
"巨集 (macro) 版本的 :c:func:`PyInstanceMethod_Function`\\ ,忽略了錯誤檢查。"
6273

6374
#: ../../c-api/method.rst:48
6475
msgid "Method Objects"
65-
msgstr ""
76+
msgstr "方法物件 (Method Objects)"
6677

6778
#: ../../c-api/method.rst:52
6879
msgid ""
6980
"Methods are bound function objects. Methods are always bound to an instance "
7081
"of a user-defined class. Unbound methods (methods bound to a class object) "
7182
"are no longer available."
7283
msgstr ""
84+
"方法為繫結函式 (bound function) 物件。方法總是會被繫結到一個使用者定義類別的"
85+
"實例。未繫結方法(繫結到一個類別的方法)已不可用。"
7386

7487
#: ../../c-api/method.rst:61
7588
msgid ""
7689
"This instance of :c:type:`PyTypeObject` represents the Python method type. "
7790
"This is exposed to Python programs as ``types.MethodType``."
7891
msgstr ""
92+
"這個 :c:type:`PyTypeObject` 實例代表 Python 方法型別。它作為 ``types."
93+
"MethodType`` 公開給 Python 程式。"
7994

8095
#: ../../c-api/method.rst:67
8196
msgid ""
8297
"Return true if *o* is a method object (has type :c:data:`PyMethod_Type`). "
8398
"The parameter must not be ``NULL``. This function always succeeds."
8499
msgstr ""
100+
"如果 *o* 是一個方法物件(型別為 :c:data:`PyMethod_Type`\\ )則回傳 true。參數"
101+
"必須不為 ``NULL``\\ 。此函式總是會成功執行。"
85102

86103
#: ../../c-api/method.rst:73
87104
msgid ""
88105
"Return a new method object, with *func* being any callable object and *self* "
89106
"the instance the method should be bound. *func* is the function that will be "
90107
"called when the method is called. *self* must not be ``NULL``."
91108
msgstr ""
109+
"回傳一個新的方法物件,\\ *func* 應為任意可呼叫物件,\\ *self* 為該方法應繫結"
110+
"的實例。在方法被呼叫時,\\ *func* 函式也會被呼叫。\\ *self* 必須不為 ``NULL``"
111+
"\\ 。"
92112

93113
#: ../../c-api/method.rst:80
94114
msgid "Return the function object associated with the method *meth*."
95-
msgstr ""
115+
msgstr "回傳關聯到方法 *meth* 的函式物件。"
96116

97117
#: ../../c-api/method.rst:85
98118
msgid ""
99119
"Macro version of :c:func:`PyMethod_Function` which avoids error checking."
100-
msgstr ""
120+
msgstr "巨集版本的 :c:func:`PyMethod_Function`\\ ,忽略了錯誤檢查。"
101121

102122
#: ../../c-api/method.rst:90
103123
msgid "Return the instance associated with the method *meth*."
104-
msgstr ""
124+
msgstr "回傳關聯到方法 *meth* 的實例。"
105125

106126
#: ../../c-api/method.rst:95
107127
msgid "Macro version of :c:func:`PyMethod_Self` which avoids error checking."
108-
msgstr ""
128+
msgstr "巨集版本的 :c:func:`PyMethod_Self`\\ ,忽略了錯誤檢查。"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.