@@ -48,7 +48,7 @@ msgstr ""
4848
4949#: ../../using/mac.rst:34
5050msgid "Using Python for macOS from ``python.org``"
51- msgstr ""
51+ msgstr "使用来自 ``python.org`` 的 macOS 版 Python "
5252
5353#: ../../using/mac.rst:37
5454msgid "Installation steps"
@@ -224,11 +224,11 @@ msgstr ""
224224
225225#: ../../using/mac.rst:163
226226msgid "|usemac_python_x_dot_y_literal| ``myscript.py``"
227- msgstr ""
227+ msgstr "|usemac_python_x_dot_y_literal| ``myscript.py`` "
228228
229229#: ../../using/mac.rst:165
230230msgid "To run your script from the Finder, you can either:"
231- msgstr ""
231+ msgstr "要从 Finder 运行你的脚本,你有两种选择: "
232232
233233#: ../../using/mac.rst:167
234234msgid "Drag it to :program:`Python Launcher`."
@@ -269,7 +269,7 @@ msgstr "`ActivePython <https://www.activestate.com/products/python/>`_"
269269
270270#: ../../using/mac.rst:192
271271msgid "Installer with multi-platform compatibility, documentation"
272- msgstr ""
272+ msgstr "具有多平台兼容性的安装器,文档 "
273273
274274#: ../../using/mac.rst:194
275275msgid "`Anaconda <https://www.anaconda.com/download/>`_"
@@ -581,12 +581,38 @@ msgid ""
581581"\n"
582582"sudo installer -pkg ./${RELEASE} -applyChoiceChangesXML ./choicechanges.plist -target /"
583583msgstr ""
584+ "RELEASE=\" python-3.13.0b2-macos11.pkg\" \n"
585+ "\n"
586+ "# 下载安装器 pkg\n"
587+ "curl -O https://www.python.org/ftp/python/3.13.0/${RELEASE}\n"
588+ "\n"
589+ "# 创建安装器 choicechanges 文件来定制安装:\n"
590+ "# 启用 PythonTFramework-3.13 包\n"
591+ "# 并接受其他默认选项(安装所有其他包)\n"
592+ "cat > ./choicechanges.plist <<EOF\n"
593+ "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n"
594+ "<!DOCTYPE plist PUBLIC \" -//Apple//DTD PLIST 1.0//EN\" \" http://www.apple.com/DTDs/PropertyList-1.0.dtd\" >\n"
595+ "<plist version=\" 1.0\" >\n"
596+ "<array>\n"
597+ " <dict>\n"
598+ " <key>attributeSetting</key>\n"
599+ " <integer>1</integer>\n"
600+ " <key>choiceAttribute</key>\n"
601+ " <string>selected</string>\n"
602+ " <key>choiceIdentifier</key>\n"
603+ " <string>org.python.Python.PythonTFramework-3.13</string>\n"
604+ " </dict>\n"
605+ "</array>\n"
606+ "</plist>\n"
607+ "EOF\n"
608+ "\n"
609+ "sudo installer -pkg ./${RELEASE} -applyChoiceChangesXML ./choicechanges.plist -target /"
584610
585611#: ../../using/mac.rst:405
586612msgid ""
587613"You can then test that both installer builds are now available with "
588614"something like:"
589- msgstr ""
615+ msgstr "接下来你可以这样测试两个安装器构建版现在是否可用: "
590616
591617#: ../../using/mac.rst:407
592618msgid ""
@@ -602,6 +628,17 @@ msgid ""
602628"$ python3.13 -VV\n"
603629"Python 3.13.0b2 (v3.13.0b2:3a83b172af, Jun 5 2024, 12:50:24) [Clang 15.0.0 (clang-1500.3.9.4)]"
604630msgstr ""
631+ "$ # 当 Unix Command Tools 包被启用时测试自由线程解释器是否已安装\n"
632+ "$ /usr/local/bin/python3.13t -VV\n"
633+ "Python 3.13.0b2 experimental free-threading build (v3.13.0b2:3a83b172af, Jun 5 2024, 12:57:31) [Clang 15.0.0 (clang-1500.3.9.4)]\n"
634+ "$ # 并测试传统解释器\n"
635+ "$ /usr/local/bin/python3.13 -VV\n"
636+ "Python 3.13.0b2 (v3.13.0b2:3a83b172af, Jun 5 2024, 12:50:24) [Clang 15.0.0 (clang-1500.3.9.4)]\n"
637+ "$ # 当 /usr/local/bin 在 $PATH 中时测试它们在不带前缀的情况下是否可用\n"
638+ "$ python3.13t -VV\n"
639+ "Python 3.13.0b2 experimental free-threading build (v3.13.0b2:3a83b172af, Jun 5 2024, 12:57:31) [Clang 15.0.0 (clang-1500.3.9.4)]\n"
640+ "$ python3.13 -VV\n"
641+ "Python 3.13.0b2 (v3.13.0b2:3a83b172af, Jun 5 2024, 12:50:24) [Clang 15.0.0 (clang-1500.3.9.4)]"
605642
606643#: ../../using/mac.rst:423
607644msgid ""
@@ -610,6 +647,9 @@ msgid ""
610647":file:`/usr/local/bin`. You cannot use the :command:`installer` ``-domain`` "
611648"option to install to other locations."
612649msgstr ""
650+ "当前的 ``python.org`` 安装器只会安装到固定位置如 :file:`/Library/Frameworks/`, "
651+ ":file:`/Applications` 和 :file:`/usr/local/bin`。 你不能使用 :command:`installer` "
652+ "``-domain`` 选项来安装到其他位置。"
613653
614654#: ../../using/mac.rst:431
615655msgid "Distributing Python Applications"
@@ -634,12 +674,15 @@ msgid ""
634674"supports creation of ``.app`` bundles on macOS, as well as managing signing "
635675"and notarization."
636676msgstr ""
677+ "`Briefcase <https://briefcase.readthedocs.io>`_: `BeeWare 项目 "
678+ "<https://beeware.org>`_ 的一部分;一款支持在 macOS 上创建 ``.app`` 捆绑包,并能管理签名和公证的跨平台打包工具。"
637679
638680#: ../../using/mac.rst:444
639681msgid ""
640682"`PyInstaller <https://pyinstaller.org/>`_: A cross-platform packaging tool "
641683"that creates a single file or folder as a distributable artifact."
642684msgstr ""
685+ "`PyInstaller <https://pyinstaller.org/>`_: 一款可创建单独文件或文件夹作为可分发包的跨平台打包工具。"
643686
644687#: ../../using/mac.rst:448
645688msgid "App Store Compliance"
0 commit comments