@@ -470,30 +470,36 @@ msgid ""
470470"by creating a suitable launcher and tacking the ``.pyz`` file onto the end "
471471"of it, you end up with a single-file executable that runs your application."
472472msgstr ""
473+ "因此,在 Windows 系统中,通常最好 由zipapp 创建一个可执行文件。虽然需要用到 C "
474+ "编译器,但还是相对容易做到的。基本做法有赖于以下事实,即 zip 文件内可预置任意数据,Windows 的 exe "
475+ "文件也可以附带任意数据。因此,创建一个合适的启动程序并将 ``.pyz`` 文件附在后面,最后就能得到一个单文件的可执行文件,可运行 Python "
476+ "应用程序。"
473477
474478#: ../../library/zipapp.rst:322
475479msgid "A suitable launcher can be as simple as the following::"
476- msgstr ""
480+ msgstr "合适的启动程序可以简单如下: "
477481
478482#: ../../library/zipapp.rst:347
479483msgid ""
480484"If you define the ``WINDOWS`` preprocessor symbol, this will generate a GUI "
481485"executable, and without it, a console executable."
482- msgstr ""
486+ msgstr "若已定义了预处理器符号 ``WINDOWS``,上述代码将会生成一个 GUI 可执行文件。若未定义则生成一个可执行的控制台文件。 "
483487
484488#: ../../library/zipapp.rst:350
485489msgid ""
486490"To compile the executable, you can either just use the standard MSVC command"
487491" line tools, or you can take advantage of the fact that distutils knows how "
488492"to compile Python source::"
489- msgstr ""
493+ msgstr "直接使用标准的 MSVC 命令行工具,或利用 distutils 知道如何编译 Python 源代码,即可编译可执行文件: "
490494
491495#: ../../library/zipapp.rst:377
492496msgid ""
493497"The resulting launcher uses the \" Limited ABI\" , so it will run unchanged "
494498"with any version of Python 3.x. All it needs is for Python "
495499"(``python3.dll``) to be on the user's ``PATH``."
496500msgstr ""
501+ "生成的启动程序用到了 “受限 ABI”,所以可在任意版本的 Python 3.x 中运行。只要用户的 ``PATH`` 中包含了 "
502+ "Python(``python3.dll``)路径即可。"
497503
498504#: ../../library/zipapp.rst:381
499505msgid ""
0 commit comments