@@ -140,6 +140,13 @@ msgid ""
140140":program:`Gvim` (http://macvim-dev.github.io/macvim/) and "
141141":program:`Aquamacs` (http://aquamacs.org/)."
142142msgstr ""
143+ "如果你想从终端窗口的命令行或 Finder 中运行 Python 脚本,你首先需要一个编辑器来创建你的脚本。macOS 自带了一些标准的 Unix "
144+ "命令行编辑器, :program:`vim` 和 :program:`emacs` 就是其中之二。如果你想要一个更 Mac 的编辑器,来自 Bare "
145+ "Bones Software 的 :program:`BBEdit` 或 :program:`TextWrangler` (见 "
146+ "http://www.barebones.com/products/bbedit/index.html )是不错的选择,还有 "
147+ ":program:`TextMate` (见 https://macromates.com/ )。其他编辑器包括 :program:`Gvim` ( "
148+ "http://macvim-dev.github.io/macvim/ )和 :program:`Aquamacs` ( "
149+ "http://aquamacs.org/ )。"
143150
144151#: ../../using/mac.rst:71
145152msgid ""
@@ -178,6 +185,8 @@ msgid ""
178185"anything that has a GUI) need to be run in a special way. Use "
179186":program:`pythonw` instead of :program:`python` to start such scripts."
180187msgstr ""
188+ "对于旧版本的 Python ,有一个需要注意的 macOS 特殊问题:与 Aqua 窗口管理器通信的程序(换句话说,任何有 GUI "
189+ "的程序)需要以特殊的方式运行。使用 :program:`pythonw` 而不是 :program:`python` 来启动此类脚本。"
181190
182191#: ../../using/mac.rst:95
183192msgid ""
@@ -197,6 +206,9 @@ msgid ""
197206":file:`~/.MacOSX/environment.plist`. See Apple's Technical Document QA1067 "
198207"for details."
199208msgstr ""
209+ "macOS 上的 Python 遵循所有标准的 Unix 环境变量,例如 :envvar:`PYTHONPATH` ,但是为从 Finder "
210+ "启动的程序设置这些变量是不标准的,因为 Finder 在启动时不会读取你的 :file:`.profile` 或 :file:`.cshrc` "
211+ "。你需要创建一个文件 :file:`~/.MacOSX/environment.plist` 。详情请看苹果的技术文件QA1067。"
200212
201213#: ../../using/mac.rst:108
202214msgid ""
@@ -276,13 +288,17 @@ msgid ""
276288"on macOS. Packages and documentation are available from "
277289"https://www.wxpython.org."
278290msgstr ""
291+ "*wxPython* 是另一个流行的跨平台 GUI 工具包,可以在 macOS 上原生运行。软件包和文档可从 "
292+ "https://www.wxpython.org 获取。"
279293
280294#: ../../using/mac.rst:153
281295msgid ""
282296"*PyQt* is another popular cross-platform GUI toolkit that runs natively on "
283297"macOS. More information can be found at "
284298"https://riverbankcomputing.com/software/pyqt/intro."
285299msgstr ""
300+ "*PyQt* 是另一个流行的跨平台 GUI 工具包,可以在 MacOS 上原生运行。更多信息可以在 "
301+ "https://riverbankcomputing.com/software/pyqt/intro 找到。"
286302
287303#: ../../using/mac.rst:159
288304msgid "Distributing Python Applications on the Mac"
@@ -294,6 +310,8 @@ msgid ""
294310" :program:`py2app`. More information on installing and using py2app can be "
295311"found at https://pypi.org/project/py2app/."
296312msgstr ""
313+ "在 Mac 上部署独立 Python 应用程序的标准工具是 :program:`py2app` 。关于安装和使用 py2app 的更多信息可以在 "
314+ "https://pypi.org/project/py2app/ 找到。"
297315
298316#: ../../using/mac.rst:167
299317msgid "Other Resources"
0 commit comments