-
-
Notifications
You must be signed in to change notification settings - Fork 224
Expand file tree
/
Copy pathmac.po
More file actions
383 lines (334 loc) · 16.3 KB
/
Copy pathmac.po
File metadata and controls
383 lines (334 loc) · 16.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
# Copyright (C) 2001-2022, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
# Ching-Lung Chuang, 2015
# Jason <chairco@gmail.com>, 2016
# Adrian Liaw <adrianliaw2000@gmail.com>, 2018
# Matt Wang <mattwang44@gmail.com>, 2022, 2024
msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-18 00:04+0000\n"
"PO-Revision-Date: 2022-08-31 22:26+0800\n"
"Last-Translator: Matt Wang <mattwang44@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.1.1\n"
#: ../../using/mac.rst:6
msgid "Using Python on a Mac"
msgstr "在 Mac 系統使用 Python"
#: ../../using/mac.rst:0
msgid "Author"
msgstr "作者"
#: ../../using/mac.rst:8
msgid "Bob Savage <bobsavage@mac.com>"
msgstr "Bob Savage <bobsavage@mac.com>"
#: ../../using/mac.rst:11
msgid ""
"Python on a Mac running macOS is in principle very similar to Python on any "
"other Unix platform, but there are a number of additional features such as "
"the integrated development environment (IDE) and the Package Manager that "
"are worth pointing out."
msgstr ""
"Python 在 Mac 的 macOS 上執行和在其他 Unix 平台上執行的原理非常相似,但值得一"
"提的是在 macOS 上有其他額外的功能,例如整合開發環境 (IDE) 與套件管理。"
#: ../../using/mac.rst:21
msgid "Getting and Installing Python"
msgstr "取得和安裝 Python"
#: ../../using/mac.rst:23
msgid ""
"macOS used to come with Python 2.7 pre-installed between versions 10.8 and "
"`12.3 <https://developer.apple.com/documentation/macos-release-notes/"
"macos-12_3-release-notes#Python>`_. You are invited to install the most "
"recent version of Python 3 from the `Python website <https://www.python.org/"
"downloads/macos/>`__. A current \"universal2 binary\" build of Python, which "
"runs natively on the Mac's new Apple Silicon and legacy Intel processors, is "
"available there."
msgstr ""
"macOS 自 10.8 版本開始至 `12.3 版本 <https://developer.apple.com/"
"documentation/macos-release-notes/macos-12_3-release-notes#Python>`_\\ 之間預"
"設安裝 Python 2.7。你也可以到 `Python 網站 <https://www.python.org/downloads/"
"macos/>`__\\ 安裝最新的 Python 3 版本。你可以找到建立在\"通用二進位 "
"(universal2 binary)\" 上的 Python 建置版本,它能夠原生地運行在 Mac 新的 "
"Apple Silicon CPU 與過去的 Intel CPU 上。"
#: ../../using/mac.rst:30
msgid "What you get after installing is a number of things:"
msgstr "在安裝後你必須要做幾件事:"
#: ../../using/mac.rst:32
msgid ""
"A |python_version_literal| folder in your :file:`Applications` folder. In "
"here you find IDLE, the development environment that is a standard part of "
"official Python distributions; and :program:`Python Launcher`, which handles "
"double-clicking Python scripts from the Finder."
msgstr ""
"會有一個 |python_version_literal| 資料夾在你的 :file:`Applications` 資料夾"
"中。在這裡你可以找到 IDLE,它是作為官方 Python 發行版標準組成的開發環境;以"
"及 :program:`Python Launcher`,它負責處理在 Finder 中雙擊 Python 腳本的操作。"
#: ../../using/mac.rst:37
msgid ""
"A framework :file:`/Library/Frameworks/Python.framework`, which includes the "
"Python executable and libraries. The installer adds this location to your "
"shell path. To uninstall Python, you can remove these three things. A "
"symlink to the Python executable is placed in :file:`/usr/local/bin/`."
msgstr ""
":file:`/Library/Frameworks/Python.framework` 框架,包括 Python 可執行檔案 "
"(executable) 和函式庫 (library)。安裝程式將此位置新增到 shell 路徑。要解除安"
"裝 Python ,你可以移除這三個專案。Python 可執行檔案的符號連結 (symlink) 則放"
"在 :file:`/usr/local/bin/` 中。"
#: ../../using/mac.rst:44
msgid ""
"On macOS 10.8-12.3, the Apple-provided build of Python is installed in :file:"
"`/System/Library/Frameworks/Python.framework` and :file:`/usr/bin/python`, "
"respectively. You should never modify or delete these, as they are Apple-"
"controlled and are used by Apple- or third-party software. Remember that if "
"you choose to install a newer Python version from python.org, you will have "
"two different but functional Python installations on your computer, so it "
"will be important that your paths and usages are consistent with what you "
"want to do."
msgstr ""
"在 macOS 10.8-12.3,Apple 提供的 Python 建置版本分別安裝在 :file:`/System/"
"Library/Frameworks/Python.framework` 和 :file:`/usr/bin/python` 中。你不應該"
"去修改或刪除這些內容,因為它們由 Apple 控制並且被 Apple 或第三方軟體使用。請"
"記住,如果你選擇從 python.org 安裝較新的 Python 版本,那麼你的計算機上將安裝"
"兩個不同但都可運作的 Python,因此你的路徑和用法與你想要執行的操作一致非常重"
"要。"
#: ../../using/mac.rst:52
msgid ""
"IDLE includes a Help menu that allows you to access Python documentation. If "
"you are completely new to Python you should start reading the tutorial "
"introduction in that document."
msgstr ""
"IDLE 包含一個幫助 (Help) 選單,讓你可以參閱 Python 文件。如果你是 Python 的新"
"手,你應該開始閱讀該文件中的教學介紹。"
#: ../../using/mac.rst:56
msgid ""
"If you are familiar with Python on other Unix platforms you should read the "
"section on running Python scripts from the Unix shell."
msgstr ""
"如果你熟悉其他 Unix 平臺上的 Python,那麼你應該閱讀有關從 Unix shell 執行 "
"Python 腳本的部分。"
#: ../../using/mac.rst:61
msgid "How to run a Python script"
msgstr "如何執行 Python 腳本"
#: ../../using/mac.rst:63
msgid ""
"Your best way to get started with Python on macOS is through the IDLE "
"integrated development environment; see section :ref:`ide` and use the Help "
"menu when the IDE is running."
msgstr ""
"在 macOS 上開始使用 Python 的最佳方法是透過 IDLE 整合開發環境;參見 :ref:"
"`ide` 部分,並在 IDE 執行時使用幫助選單。"
#: ../../using/mac.rst:67
msgid ""
"If you want to run Python scripts from the Terminal window command line or "
"from the Finder you first need an editor to create your script. macOS comes "
"with a number of standard Unix command line editors, :program:`vim` :program:"
"`nano` among them. If you want a more Mac-like editor, :program:`BBEdit` "
"from Bare Bones Software (see https://www.barebones.com/products/bbedit/"
"index.html) are good choices, as is :program:`TextMate` (see https://"
"macromates.com). Other editors include :program:`MacVim` (https://macvim."
"org) and :program:`Aquamacs` (https://aquamacs.org)."
msgstr ""
"如果要從終端機視窗命令列或 Finder 執行 Python 腳本,首先需要一個編輯器來建立"
"腳本。macOS 附帶了許多標準的 Unix 命令列編輯器,如 :program:`vim` 和 :"
"program:`nano`。如果你想要一個更 Mac 化的編輯器,那麼來自 Bare Bones "
"Software 的 :program:`BBEdit`\\ (參見 http://www.barebones.com/products/"
"bbedit/index.html) 是不錯的選擇,:program:`TextMate` (參見 https://"
"macromates.com/)也是個選擇。其他編輯器包括 :program:`MacVim` (https://"
"macvim.org) 和 :program:`Aquamacs` (https://aquamacs.org/)。"
#: ../../using/mac.rst:77
msgid ""
"To run your script from the Terminal window you must make sure that :file:`/"
"usr/local/bin` is in your shell search path."
msgstr ""
"要從終端機視窗執行腳本,你必須確保 :file:`/usr/local/bin` 位於 shell 搜尋路徑"
"中。"
#: ../../using/mac.rst:80
msgid "To run your script from the Finder you have two options:"
msgstr "從 Finder 執行你的腳本時,你有兩個選項:"
#: ../../using/mac.rst:82
msgid "Drag it to :program:`Python Launcher`."
msgstr "把它拖曳到 :program:`Python Launcher`"
#: ../../using/mac.rst:84
msgid ""
"Select :program:`Python Launcher` as the default application to open your "
"script (or any ``.py`` script) through the finder Info window and double-"
"click it. :program:`Python Launcher` has various preferences to control how "
"your script is launched. Option-dragging allows you to change these for one "
"invocation, or use its Preferences menu to change things globally."
msgstr ""
"透過 finder Info 視窗選擇 :program:`Python Launcher` 作為開啟腳本(或任何 ``."
"py`` 腳本)的預設應用程式,然後雙擊腳本。:program:`Python Launcher` 有各種用"
"來控制腳本啟動方式的選項。拖曳選項可以讓你一次更改多個選項,或使用其偏好設定"
"選單以全域性地更改內容。"
#: ../../using/mac.rst:94
msgid "Running scripts with a GUI"
msgstr "透過 GUI 執行腳本"
#: ../../using/mac.rst:96
msgid ""
"With older versions of Python, there is one macOS quirk that you need to be "
"aware of: programs that talk to the Aqua window manager (in other words, "
"anything that has a GUI) need to be run in a special way. Use :program:"
"`pythonw` instead of :program:`python` to start such scripts."
msgstr ""
"對於舊版本的 Python,你需要注意一個 macOS 的怪異之處:與 Aqua 視窗管理器溝通"
"的程式(換而言之,任何具有 GUI(圖形化使用者介面)的程式)需要以特殊方式執"
"行。使用 :program:`pythonw` 而不是 :program:`python` 來啟動這樣的腳本。"
#: ../../using/mac.rst:101
msgid ""
"With Python 3.9, you can use either :program:`python` or :program:`pythonw`."
msgstr "Python 3.9 上,你可以使用 :program:`python` 或者 :program:`pythonw`。"
#: ../../using/mac.rst:105
msgid "Configuration"
msgstr "設定"
#: ../../using/mac.rst:107
msgid ""
"Python on macOS honors all standard Unix environment variables such as :"
"envvar:`PYTHONPATH`, but setting these variables for programs started from "
"the Finder is non-standard as the Finder does not read your :file:`.profile` "
"or :file:`.cshrc` at startup. You need to create a file :file:`~/.MacOSX/"
"environment.plist`. See Apple's `Technical Q&A QA1067 <https://developer."
"apple.com/library/archive/qa/qa1067/_index.html>`__ for details."
msgstr ""
"macOS 上的 Python 遵循所有標準的 Unix 環境變數,例如 :envvar:`PYTHONPATH`,但"
"是為 Finder 啟動的程式設定這些變數並非是標準做法,因為 Finder 在啟動時不會讀"
"取你的 :file:`.profile` 或 :file:`.cshrc`。你需要建立一個檔案 :file:`~/."
"MacOSX/environment.plist`。相關資訊請參閱 Apple 的\\ `技術問答集 QA1067 "
"<https://developer.apple.com/library/archive/qa/qa1067/_index.html>`__。"
#: ../../using/mac.rst:115
msgid ""
"For more information on installation Python packages, see section :ref:`mac-"
"package-manager`."
msgstr "更多關於安裝 Python 套件的資訊,參閱 :ref:`mac-package-manager` 部分。"
#: ../../using/mac.rst:122
msgid "The IDE"
msgstr "整合化開發工具 (IDE)"
#: ../../using/mac.rst:124
msgid ""
"Python ships with the standard IDLE development environment. A good "
"introduction to using IDLE can be found at https://www.hashcollision.org/hkn/"
"python/idle_intro/index.html."
msgstr ""
"Python 附帶標準的 IDLE 開發環境。有關使用 IDLE 的詳細介紹,請見 https://www."
"hashcollision.org/hkn/python/idle_intro/index.html。"
#: ../../using/mac.rst:132
msgid "Installing Additional Python Packages"
msgstr "安裝額外的 Python 套件"
#: ../../using/mac.rst:134
msgid "This section has moved to the `Python Packaging User Guide`_."
msgstr "這個章節已經被移動到 `Python Packaging User Guide`_。"
#: ../../using/mac.rst:142
msgid "GUI Programming"
msgstr "開發 GUI 程式"
#: ../../using/mac.rst:144
msgid ""
"There are several options for building GUI applications on the Mac with "
"Python."
msgstr "於 Mac 上使用 Python 來建立 GUI 應用程式有許多選項。"
#: ../../using/mac.rst:146
msgid ""
"*PyObjC* is a Python binding to Apple's Objective-C/Cocoa framework, which "
"is the foundation of most modern Mac development. Information on PyObjC is "
"available from :pypi:`pyobjc`."
msgstr ""
"*PyObjC* 是一個 Apple Objective-C/Cocoa 框架的 Python 繫結 (binding),這是大"
"多數現代 Mac 開發的基礎。有關 PyObjC 的資訊,請見 :pypi:`pyobjc`。"
#: ../../using/mac.rst:150
msgid ""
"The standard Python GUI toolkit is :mod:`tkinter`, based on the cross-"
"platform Tk toolkit (https://www.tcl.tk). An Aqua-native version of Tk is "
"bundled with macOS by Apple, and the latest version can be downloaded and "
"installed from https://www.activestate.com; it can also be built from source."
msgstr ""
"標準的 Python GUI 工具套件是 :mod:`tkinter`,基於跨平臺的 Tk 工具套件 "
"(https://www.tcl.tk)。Apple 的 macOS 包含了 Aqua 原生版本的 Tk,最新版本可以"
"從 https://www.activestate.com 下載和安裝;它也可以從原始碼開始建置。"
#: ../../using/mac.rst:155
msgid "A number of alternative macOS GUI toolkits are available:"
msgstr "有許多替代 macOS GUI 工具套件可用:"
#: ../../using/mac.rst:157
msgid ""
"`PySide <https://www.qt.io/qt-for-python>`__: Official Python bindings to "
"the `Qt GUI toolkit <https://www.qt.io>`__."
msgstr ""
"`PySide <https://www.qt.io/qt-for-python>`__:`Qt GUI 工具包 <https://www.qt."
"io>`__\\ 的官方 Python 繫結。"
#: ../../using/mac.rst:160
msgid ""
"`PyQt <https://riverbankcomputing.com/software/pyqt/intro>`__: Alternative "
"Python bindings to Qt."
msgstr ""
"`PyQt <https://riverbankcomputing.com/software/pyqt/intro>`__:Qt 的替代 "
"Python 繫結。"
#: ../../using/mac.rst:163
msgid ""
"`Kivy <https://kivy.org>`__: A cross-platform GUI toolkit that supports "
"desktop and mobile platforms."
msgstr ""
"`Kivy <https://kivy.org>`__:一個支援桌面和行動平臺的跨平臺 GUI 工具包。"
#: ../../using/mac.rst:166
msgid ""
"`Toga <https://toga.readthedocs.io>`__: Part of the `BeeWare Project "
"<https://beeware.org>`__; supports desktop, mobile, web and console apps."
msgstr ""
"`Toga <https://toga.readthedocs.io>`__:`BeeWare 專案 <https://beeware."
"org>`__\\ 的一部分;支援桌面、行動、網頁和控制台應用程式。"
#: ../../using/mac.rst:169
msgid ""
"`wxPython <https://www.wxpython.org>`__: A cross-platform toolkit that "
"supports desktop operating systems."
msgstr ""
"`wxPython <https://www.wxpython.org>`__:一個支援桌面作業系統的跨平臺工具包。"
#: ../../using/mac.rst:175
msgid "Distributing Python Applications"
msgstr "發行 Python 應用程式"
#: ../../using/mac.rst:177
msgid ""
"A range of tools exist for converting your Python code into a standalone "
"distributable application:"
msgstr ""
#: ../../using/mac.rst:180
msgid ""
":pypi:`py2app`: Supports creating macOS ``.app`` bundles from a Python "
"project."
msgstr ":pypi:`py2app`:支援從 Python 專案打包成 macOS ``.app``。"
#: ../../using/mac.rst:183
msgid ""
"`Briefcase <https://briefcase.readthedocs.io>`__: Part of the `BeeWare "
"Project <https://beeware.org>`__; a cross-platform packaging tool that "
"supports creation of ``.app`` bundles on macOS, as well as managing signing "
"and notarization."
msgstr ""
#: ../../using/mac.rst:188
msgid ""
"`PyInstaller <https://pyinstaller.org/>`__: A cross-platform packaging tool "
"that creates a single file or folder as a distributable artifact."
msgstr ""
"`PyInstaller <https://pyinstaller.org/>`__:一個跨平臺打包工具,可以將單一檔"
"案或資料夾打包成可分發的檔案。"
#: ../../using/mac.rst:192
msgid "Other Resources"
msgstr "其他資源"
#: ../../using/mac.rst:194
msgid ""
"The Pythonmac-SIG mailing list is an excellent support resource for Python "
"users and developers on the Mac:"
msgstr ""
"Pythonmac-SIG 郵件清單對於 Mac 上的 Python 使用者和開發者是一個極佳的支援資"
"源:"
#: ../../using/mac.rst:197
msgid "https://www.python.org/community/sigs/current/pythonmac-sig/"
msgstr "https://www.python.org/community/sigs/current/pythonmac-sig/"
#: ../../using/mac.rst:199
msgid "Another useful resource is the MacPython wiki:"
msgstr "另一個好用資源是 MacPython wiki:"
#: ../../using/mac.rst:201
msgid "https://wiki.python.org/moin/MacPython"
msgstr "https://wiki.python.org/moin/MacPython"