Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72fe17e

Browse files
[po] auto sync
1 parent 8141f54 commit 72fe17e

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

library/zipapp.po

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,30 +471,36 @@ msgid ""
471471
"by creating a suitable launcher and tacking the ``.pyz`` file onto the end "
472472
"of it, you end up with a single-file executable that runs your application."
473473
msgstr ""
474+
"因此,在 Windows 系统中,通常最好 由zipapp 创建一个可执行文件。虽然需要用到 C "
475+
"编译器,但还是相对容易做到的。基本做法有赖于以下事实,即 zip 文件内可预置任意数据,Windows 的 exe "
476+
"文件也可以附带任意数据。因此,创建一个合适的启动程序并将 ``.pyz`` 文件附在后面,最后就能得到一个单文件的可执行文件,可运行 Python "
477+
"应用程序。"
474478

475479
#: ../../library/zipapp.rst:322
476480
msgid "A suitable launcher can be as simple as the following::"
477-
msgstr ""
481+
msgstr "合适的启动程序可以简单如下:"
478482

479483
#: ../../library/zipapp.rst:347
480484
msgid ""
481485
"If you define the ``WINDOWS`` preprocessor symbol, this will generate a GUI "
482486
"executable, and without it, a console executable."
483-
msgstr ""
487+
msgstr "若已定义了预处理器符号 ``WINDOWS``,上述代码将会生成一个 GUI 可执行文件。若未定义则生成一个可执行的控制台文件。"
484488

485489
#: ../../library/zipapp.rst:350
486490
msgid ""
487491
"To compile the executable, you can either just use the standard MSVC command"
488492
" line tools, or you can take advantage of the fact that distutils knows how "
489493
"to compile Python source::"
490-
msgstr ""
494+
msgstr "直接使用标准的 MSVC 命令行工具,或利用 distutils 知道如何编译 Python 源代码,即可编译可执行文件:"
491495

492496
#: ../../library/zipapp.rst:377
493497
msgid ""
494498
"The resulting launcher uses the \"Limited ABI\", so it will run unchanged "
495499
"with any version of Python 3.x. All it needs is for Python "
496500
"(``python3.dll``) to be on the user's ``PATH``."
497501
msgstr ""
502+
"生成的启动程序用到了 “受限 ABI”,所以可在任意版本的 Python 3.x 中运行。只要用户的 ``PATH`` 中包含了 "
503+
"Python(``python3.dll``)路径即可。"
498504

499505
#: ../../library/zipapp.rst:381
500506
msgid ""
@@ -503,10 +509,12 @@ msgid ""
503509
"distribution. This will run on any PC with the appropriate architecture (32"
504510
" bit or 64 bit)."
505511
msgstr ""
512+
"若要得到完全独立运行的发行版程序,可将附有应用程序的启动程序,与“内嵌版” Python 打包在一起即可。这样在架构匹配(32位或64位)的任一 PC "
513+
"上都能运行。"
506514

507515
#: ../../library/zipapp.rst:387
508516
msgid "Caveats"
509-
msgstr ""
517+
msgstr "注意事项"
510518

511519
#: ../../library/zipapp.rst:389
512520
msgid ""

0 commit comments

Comments
 (0)