1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022, Python Software Foundation
1
+ # Copyright (C) 2001-2025, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
5
4
# Translators:
5
+ # Adrian Liaw <[email protected] >, 2018
6
+ # Matt Wang <[email protected] >, 2025
6
7
msgid ""
7
8
msgstr ""
8
9
"Project-Id-Version : Python 3.13\n "
9
10
"Report-Msgid-Bugs-To : \n "
10
11
"POT-Creation-Date : 2024-09-01 22:24+0800\n "
11
- "PO-Revision-Date : 2018-05-23 14:09+0000\n "
12
- "Last-Translator : Adrian Liaw <adrianliaw2000 @gmail.com>\n "
12
+ "PO-Revision-Date : 2025-02-07 14:09+0000\n "
13
+ "Last-Translator : Matt Wang <mattwang44 @gmail.com>\n "
13
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
15
"tw)\n "
15
16
"Language : zh_TW\n "
@@ -32,21 +33,25 @@ msgstr ""
32
33
33
34
#: ../../extending/building.rst:12
34
35
msgid ""
35
- "To be importable, the shared library must be available on :envvar: "
36
- "`PYTHONPATH`, and must be named after the module name, with an appropriate "
37
- "extension. When using setuptools, the correct filename is generated "
38
- "automatically."
36
+ "To be importable, the shared library must be available "
37
+ "on :envvar: `PYTHONPATH`, and must be named after the module name, with an "
38
+ "appropriate extension. When using setuptools, the correct filename is "
39
+ "generated automatically."
39
40
msgstr ""
41
+ "要能夠被引入,共用函式庫必須在 :envvar:`PYTHONPATH` 上可用,並且必須以模組名"
42
+ "稱命名,並且必須有適當的副檔名。使用 setuptools 時,正確的檔名會自動產生。"
40
43
41
44
#: ../../extending/building.rst:16
42
45
msgid "The initialization function has the signature:"
43
- msgstr ""
46
+ msgstr "初始化函式具有簽名: "
44
47
45
48
#: ../../extending/building.rst:20
46
49
msgid ""
47
50
"It returns either a fully initialized module, or a :c:type:`PyModuleDef` "
48
51
"instance. See :ref:`initializing-modules` for details."
49
52
msgstr ""
53
+ "它回傳一個完全初始化的模組,或一個 :c:type:`PyModuleDef` 實例。詳細資訊請參"
54
+ "見 :ref:`initializing-modules`。"
50
55
51
56
#: ../../extending/building.rst:25
52
57
msgid ""
@@ -57,6 +62,11 @@ msgid ""
57
62
"``PyInitU_<modulename>``, with ``<modulename>`` encoded using Python's "
58
63
"*punycode* encoding with hyphens replaced by underscores. In Python::"
59
64
msgstr ""
65
+ "對於僅包含 ASCII 名稱的模組,函式必須以 ``PyInit_<modulename>`` 命名,其中 "
66
+ "``<modulename>`` 要替換為模組的名稱。當使用 :ref:`multi-phase-"
67
+ "initialization` 時,允許非 ASCII 模組名稱。在這種情況下,初始化函式名稱是 "
68
+ "``PyInitU_<modulename>``,其中 ``<modulename>`` 使用 Python 的 *punycode* 編"
69
+ "碼,並將連字符號替換為底線。在 Python 中: ::"
60
70
61
71
#: ../../extending/building.rst:32
62
72
msgid ""
@@ -82,10 +92,13 @@ msgid ""
82
92
"function corresponding to the filename is found. See the *\" Multiple modules "
83
93
"in one library\" * section in :pep:`489` for details."
84
94
msgstr ""
95
+ "可以透過定義多個初始化函式,來從單一共用函式庫中匯出多個模組。然而要引入它們"
96
+ "需要使用符號連結或自訂引入器,因為預設只會找到對應於檔名的函式。詳細資訊請參"
97
+ "見 :pep:`489` 中的 *\" Multiple modules in one library\" * 部分。"
85
98
86
99
#: ../../extending/building.rst:52
87
100
msgid "Building C and C++ Extensions with setuptools"
88
- msgstr ""
101
+ msgstr "用 setuptools 建置 C 與 C++ 擴充套件 "
89
102
90
103
#: ../../extending/building.rst:54
91
104
msgid ""
@@ -94,3 +107,6 @@ msgid ""
94
107
"setuptools.html to learn more about how build and distribute C/C++ "
95
108
"extensions with setuptools."
96
109
msgstr ""
110
+ "Python 3.12 與之後的版本不再帶有 distutils。請在 https://"
111
+ "setuptools.readthedocs.io/en/latest/setuptools.html 上參閱 ``setuptools`` 文"
112
+ "件,以了解如何使用 setuptools 建置和發佈 C/C++ 擴充套件。"
0 commit comments