-
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathmac.po
More file actions
371 lines (322 loc) · 16.3 KB
/
mac.po
File metadata and controls
371 lines (322 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
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2025, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-25 16:03+0000\n"
"PO-Revision-Date: 2025-07-18 19:59+0000\n"
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\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 ""
"运行 macOS 的 Mac 上的 Python 在原则上与其他 Unix 平台上的 Python 非常相似,但有一些额外的特性 "
"如集成开发环境(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。 "
"那里也提供了当前的 Python \"universal2 binary\" 编译版,它可以在 Mac 的新式 Apple Silicon 和旧式 "
"Intel 处理器上原生运行。"
#: ../../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 ""
"你的 :file:`Applications` 文件夹中会有一个 |python_version_literal| 文件夹。 你将在这里找到 "
"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 可执行文件和库。 "
"安装程序将此位置添加到 shell 路径。 要卸载 Python,你可以移除这三个项目。 将有一个 Python 可执行文件的符号链接放在 "
":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 运行时使用 Help "
"菜单。"
#: ../../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 ""
"如果你想从 Terminal 窗口命令行或 Finder 中运行 Python 脚本那么你首先需要用一个编辑器来创建你的脚本。 macOS "
"自带了多个标准的 Unix 命令行编辑器,其中包括 :program:`vim` :program:`nano`。 如果你想要一个更具 Mac "
"风格的编辑器,那么来自 Bare Bones Software 的 :program:`BBEdit` (参见 "
"https://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 ""
"选择 :program:`Python Launcher` 作为通过 finder Info 窗口打开脚本(或任何 ``.py`` "
"脚本)和双击它时的默认应用程序。 :program:`Python Launcher` 有各种首选项来控制脚本的启动方式。 "
"选项拖拽允许你为单次发起调用更改这些首选项,或使用其 Preferences 菜单进行全局性的更改。"
#: ../../using/mac.rst:94
msgid "Running scripts with a GUI"
msgstr "运行有图形界面的脚本"
#: ../../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 的 `Technical Q&A "
"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 开发环境。 可以在 "
"https://www.hashcollision.org/hkn/python/idle_intro/index.html 找到一篇有关使用 IDLE"
" 的介绍。"
#: ../../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 "使用 Python 在 Mac 上构建 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 绑定,该框架是大多数现代 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 ""
#: ../../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>`__"
" 的一部分;支持桌面、移动设备、Web 和控制台应用。"
#: ../../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 "有一系列工具可将你的 Python 代码转换为独立发布的应用程序:"
#: ../../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 ""
"`Briefcase <https://briefcase.readthedocs.io>`__: `BeeWare 项目 "
"<https://beeware.org>`__ 的一部分;一款支持在 macOS 上创建 ``.app`` "
"软件包,并能管理签名和公证的跨平台打包工具。"
#: ../../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"