-
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathmac.po
More file actions
338 lines (296 loc) · 14.9 KB
/
mac.po
File metadata and controls
338 lines (296 loc) · 14.9 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
# 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
msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-17 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 IDE and the Package Manager that are worth pointing out."
msgstr ""
"Python 在 Mac 的 macOS 上執行和在其他 Unix 平台上執行的原理非常相似,\\ 但值"
"得一提的是在 macOS 上有其他額外的功能,例如 IDE 與套件管理。"
#: ../../using/mac.rst:18
msgid "Getting and Installing MacPython"
msgstr "取得和安裝 MacPython"
#: ../../using/mac.rst:20
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). A current \"universal binary\" build of Python, which runs natively "
"on the Mac's new Intel and legacy PPC CPU's, 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) 安裝最新"
"的 Python 3 版本。你可以找到建立在\"通用二進位 (universal binary)\" 上的 "
"Python 建置版本,它能夠原生地運行在 Mac 新的 Intel CPU 與過去的 PPC CPU 上。"
#: ../../using/mac.rst:27
msgid "What you get after installing is a number of things:"
msgstr "在安裝後你必須要做幾件事:"
#: ../../using/mac.rst:29
msgid ""
"A :file:`Python 3.12` folder in your :file:`Applications` folder. In here "
"you find IDLE, the development environment that is a standard part of "
"official Python distributions; and PythonLauncher, which handles double-"
"clicking Python scripts from the Finder."
msgstr ""
"會有一個 :file:`Python 3.12` 資料夾在你的 :file:`Applications` 資料夾中。在這"
"裡你可以找到 IDLE,它是作為官方 Python 發行版標準組成的開發環境;以及 "
"PythonLauncher,它負責處理在 Finder 中雙擊 Python 腳本的操作。"
#: ../../using/mac.rst:34
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 MacPython, you can simply remove these three "
"things. A symlink to the Python executable is placed in /usr/local/bin/."
msgstr ""
":file:`/Library/Frameworks/Python.framework` 框架,包括 Python 可執行檔案 "
"(executable) 和函式庫 (library)。安裝程式將此位置新增到 shell 路徑。要解除安"
"裝 MacPython ,你可以簡單地移除這三個專案。Python 可執行檔案的符號連結 "
"(symlink) 則放在 /usr/local/bin/ 中。"
#: ../../using/mac.rst:39
msgid ""
"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 ""
"Apple 提供的 Python 建置版本分別安裝在 :file:`/System/Library/Frameworks/"
"Python.framework` 和 :file:`/usr/bin/python` 中。你不應該去修改或刪除這些內"
"容,因為它們由 Apple 控制並且被 Apple 或第三方軟體使用。請記住,如果你選擇從 "
"python.org 安裝較新的 Python 版本,那麼你的計算機上將安裝兩個不同但都可運作"
"的 Python,因此你的路徑和用法與你想要執行的操作一致非常重要。"
#: ../../using/mac.rst:47
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 包含一個幫助選單,讓你可以參閱 Python 文件。如果你是 Python 的新手,你應"
"該開始閱讀該文件中的教學介紹。"
#: ../../using/mac.rst:51
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:56
msgid "How to run a Python script"
msgstr "如何執行 Python 腳本"
#: ../../using/mac.rst:58
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:62
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` and :"
"program:`emacs` among them. If you want a more Mac-like editor, :program:"
"`BBEdit` or :program:`TextWrangler` from Bare Bones Software (see http://www."
"barebones.com/products/bbedit/index.html) are good choices, as is :program:"
"`TextMate` (see https://macromates.com/). Other editors include :program:"
"`Gvim` (https://macvim.org/macvim/) and :program:`Aquamacs` (http://aquamacs."
"org/)."
msgstr ""
"如果要從終端機視窗命令列或 Finder 執行 Python 腳本,首先需要一個編輯器來建立"
"腳本。macOS 附帶了許多標準的 Unix 命令列編輯器,如 :program:`vim` 和 :"
"program:`emacs`。如果你想要一個更 Mac 化的編輯器,那麼來自 Bare Bones "
"Software 的 :program:`BBEdit` 或 :program:`TextWrangler` (參見 http://www."
"barebones.com/products/bbedit/index.html)是不錯的選擇,:program:`TextMate` "
"(參見 https://macromates.com/)也是個選擇。其他編輯器包括 :program:`Gvim` "
"(https://macvim.org/macvim/) 和 :program:`Aquamacs` (https://aquamacs.org/)。"
#: ../../using/mac.rst:72
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:75
msgid "To run your script from the Finder you have two options:"
msgstr "從 Finder 執行你的腳本時,你有兩個選項:"
#: ../../using/mac.rst:77
msgid "Drag it to :program:`PythonLauncher`"
msgstr "把它拖曳到 :program:`PythonLauncher`"
#: ../../using/mac.rst:79
msgid ""
"Select :program:`PythonLauncher` as the default application to open your "
"script (or any .py script) through the finder Info window and double-click "
"it. :program:`PythonLauncher` 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:`PythonLauncher` 作為開啟腳本(或任何 .py "
"腳本)的預設應用程式,然後雙擊腳本。\\ :program:`PythonLauncher` 有各種用來控"
"制腳本啟動方式的選項。拖曳選項可以讓你一次更改多個選項,或使用其偏好設定選單"
"以全域性地更改內容。"
#: ../../using/mac.rst:89
msgid "Running scripts with a GUI"
msgstr "透過 GUI 執行腳本"
#: ../../using/mac.rst:91
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:96
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:100
msgid "Configuration"
msgstr "設定"
#: ../../using/mac.rst:102
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 Document QA1067 for details."
msgstr ""
"macOS 上的 Python 遵循所有標準的 Unix 環境變數,例如 :envvar:"
"`PYTHONPATH`\\ ,但是為 Finder 啟動的程式設定這些變數並非是標準做法,因為 "
"Finder 在啟動時不會讀取你的 :file:`.profile` 或 :file:`.cshrc`\\ 。你需要建立"
"一個檔案 :file:`~/.MacOSX/environment.plist`\\ 。相關資訊請參閱 Apple 的技術"
"文件 QA1067。"
#: ../../using/mac.rst:109
msgid ""
"For more information on installation Python packages in MacPython, see "
"section :ref:`mac-package-manager`."
msgstr ""
"更多關於在 MacPython 中安裝 Python 套件的資訊,參閱 :ref:`mac-package-"
"manager` 部分。"
#: ../../using/mac.rst:116
msgid "The IDE"
msgstr "整合化開發工具 (IDE)"
#: ../../using/mac.rst:118
msgid ""
"MacPython ships with the standard IDLE development environment. A good "
"introduction to using IDLE can be found at http://www.hashcollision.org/hkn/"
"python/idle_intro/index.html."
msgstr ""
"MacPython 附帶標準的 IDLE 開發環境。有關使用 IDLE 的詳細介紹,請見 http://"
"www.hashcollision.org/hkn/python/idle_intro/index.html\\ 。"
#: ../../using/mac.rst:126
msgid "Installing Additional Python Packages"
msgstr "安裝額外的 Python 套件"
#: ../../using/mac.rst:128
msgid "This section has moved to the `Python Packaging User Guide`_."
msgstr "這個章節已經被移動到 `Python Packaging User Guide`_。"
#: ../../using/mac.rst:134
msgid "GUI Programming on the Mac"
msgstr "於 Mac 上開發 GUI 程式"
#: ../../using/mac.rst:136
msgid ""
"There are several options for building GUI applications on the Mac with "
"Python."
msgstr "於 Mac 上使用 Python 來建立 GUI 應用程式有許多選項。"
#: ../../using/mac.rst:138
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 https://pypi.org/project/pyobjc/."
msgstr ""
"*PyObjC* 是一個 Apple Objective-C/Cocoa 框架的 Python 繫結 (binding),這是大"
"多數現代 Mac 開發的基礎。有關 PyObjC 的資訊,請見 https://pypi.org/project/"
"pyobjc/。"
#: ../../using/mac.rst:142
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:147
msgid ""
"*wxPython* is another popular cross-platform GUI toolkit that runs natively "
"on macOS. Packages and documentation are available from https://www.wxpython."
"org."
msgstr ""
"*wxPython* 是另一種流行的跨平臺 GUI 工具套件,可在 macOS 上本機執行。套件和文"
"件可從 https://www.wxpython.org 獲得。"
#: ../../using/mac.rst:150
msgid ""
"*PyQt* is another popular cross-platform GUI toolkit that runs natively on "
"macOS. More information can be found at https://riverbankcomputing.com/"
"software/pyqt/intro."
msgstr ""
"*PyQt* 是另一種流行的跨平臺 GUI 工具套件,可在原生 macOS 上執行。更多資訊可"
"在 https://riverbankcomputing.com/software/pyqt/intro 上找到。"
#: ../../using/mac.rst:156
msgid "Distributing Python Applications on the Mac"
msgstr "於 Mac 上發行 Python 應用程式"
#: ../../using/mac.rst:158
msgid ""
"The standard tool for deploying standalone Python applications on the Mac "
"is :program:`py2app`. More information on installing and using py2app can be "
"found at https://pypi.org/project/py2app/."
msgstr ""
"在 Mac 上部署獨立 Python 應用程式的標準工具是 :program:`py2app`\\ 。有關安裝"
"和使用 py2app 的更多資訊,請參考 https://pypi.org/project/py2app/\\ 。"
#: ../../using/mac.rst:164
msgid "Other Resources"
msgstr "其他資源"
#: ../../using/mac.rst:166
msgid ""
"The MacPython mailing list is an excellent support resource for Python users "
"and developers on the Mac:"
msgstr ""
"MacPython 郵件清單對於 Mac 上的 Python 使用者和開發者是一個極佳的支援資源:"
#: ../../using/mac.rst:169
msgid "https://www.python.org/community/sigs/current/pythonmac-sig/"
msgstr "https://www.python.org/community/sigs/current/pythonmac-sig/"
#: ../../using/mac.rst:171
msgid "Another useful resource is the MacPython wiki:"
msgstr "另一個好用資源是 MacPython wiki:"
#: ../../using/mac.rst:173
msgid "https://wiki.python.org/moin/MacPython"
msgstr "https://wiki.python.org/moin/MacPython"