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

Skip to content

Commit b4b5ff3

Browse files
[po] auto sync
1 parent ea8d249 commit b4b5ff3

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

library/zipapp.po

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,27 +477,29 @@ msgstr ""
477477

478478
#: ../../library/zipapp.rst:322
479479
msgid "A suitable launcher can be as simple as the following::"
480-
msgstr ""
480+
msgstr "合适的启动程序可以简单如下:"
481481

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

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

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

502504
#: ../../library/zipapp.rst:381
503505
msgid ""
@@ -506,17 +508,19 @@ msgid ""
506508
"distribution. This will run on any PC with the appropriate architecture (32"
507509
" bit or 64 bit)."
508510
msgstr ""
511+
"若要得到完全独立运行的发行版程序,可将附有应用程序的启动程序,与“内嵌版” Python 打包在一起即可。这样在架构匹配(32位或64位)的任一 PC "
512+
"上都能运行。"
509513

510514
#: ../../library/zipapp.rst:387
511515
msgid "Caveats"
512-
msgstr ""
516+
msgstr "注意事项"
513517

514518
#: ../../library/zipapp.rst:389
515519
msgid ""
516520
"There are some limitations to the process of bundling your application into "
517521
"a single file. In most, if not all, cases they can be addressed without "
518522
"needing major changes to your application."
519-
msgstr ""
523+
msgstr "要将应用程序打包为单个文件,存在一些限制。大多数情况下,无需对应用程序进行重大修改即可解决。"
520524

521525
#: ../../library/zipapp.rst:393
522526
msgid ""
@@ -531,6 +535,10 @@ msgid ""
531535
"(and potentially pick the correct version to add to ``sys.path`` at runtime,"
532536
" based on the user's machine)."
533537
msgstr ""
538+
"如果应用程序依赖某个带有 C "
539+
"扩展的包,则此程序包无法由打包文件运行(这是操作系统的限制,因为可执行代码必须存在于文件系统中,操作系统才能加载)。这时可去除打包文件中的依赖关系,然后要求用户事先安装好该程序包,或者与打包文件一起发布并在"
540+
" ``__main__.py`` 中增加代码,将未打包模块的目录加入 ``sys.path`` "
541+
"中。采用增加代码方式时,一定要为目标架构提供合适的二进制文件(可能还需在运行时根据用户的机器选择正确的版本加入 ``sys.path``)。"
534542

535543
#: ../../library/zipapp.rst:403
536544
msgid ""

0 commit comments

Comments
 (0)