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

Skip to content

Commit 2f63888

Browse files
[po] auto sync
1 parent b4b5ff3 commit 2f63888

2 files changed

Lines changed: 27 additions & 8 deletions

File tree

library/symtable.po

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# dannyvi <[email protected]>, 2020
8+
# Dai Xu <[email protected]>, 2021
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2021-01-01 16:06+0000\n"
1516
"PO-Revision-Date: 2020-05-30 12:11+0000\n"
16-
"Last-Translator: dannyvi <dannyvis@icloud.com>, 2020\n"
17+
"Last-Translator: Dai Xu <daixu61@hotmail.com>, 2021\n"
1718
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -23,11 +24,11 @@ msgstr ""
2324

2425
#: ../../library/symtable.rst:2
2526
msgid ":mod:`symtable` --- Access to the compiler's symbol tables"
26-
msgstr ""
27+
msgstr ":mod:`symtable` ——访问编译器的符号表"
2728

2829
#: ../../library/symtable.rst:7
2930
msgid "**Source code:** :source:`Lib/symtable.py`"
30-
msgstr ""
31+
msgstr "**Source code:** :source:`Lib/symtable.py`"
3132

3233
#: ../../library/symtable.rst:15
3334
msgid ""
@@ -36,17 +37,20 @@ msgid ""
3637
"every identifier in the code. :mod:`symtable` provides an interface to "
3738
"examine these tables."
3839
msgstr ""
40+
"符号表由编译器在生成字节码之前根据 AST 生成。符号表负责计算代码中每个标识符的作用域。 :mod:`symtable` 提供了一个查看这些表的接口。"
3941

4042
#: ../../library/symtable.rst:22
4143
msgid "Generating Symbol Tables"
42-
msgstr ""
44+
msgstr "符号表的生成"
4345

4446
#: ../../library/symtable.rst:26
4547
msgid ""
4648
"Return the toplevel :class:`SymbolTable` for the Python source *code*. "
4749
"*filename* is the name of the file containing the code. *compile_type* is "
4850
"like the *mode* argument to :func:`compile`."
4951
msgstr ""
52+
"返回 Python 源 *代码* 顶层的 :class:`SymbolTable`。*filename* 是代码文件名。 *compile_type* "
53+
"的含义类似 :func:`compile` 的 *mode* 参数。"
5054

5155
#: ../../library/symtable.rst:32
5256
msgid "Examining Symbol Tables"

library/zipapp.po

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ msgid ""
547547
"the default behaviour of the installer) or you should bundle your "
548548
"application with the embedded distribution."
549549
msgstr ""
550+
"若要如上所述发布一个 Windows 可执行文件,就得确保用户在 PATH 中包含``python3.dll`` "
551+
"的路径(安装程序默认不会如此),或者应把应用程序与内嵌版 Python 一起打包。"
550552

551553
#: ../../library/zipapp.rst:408
552554
msgid ""
@@ -558,10 +560,13 @@ msgid ""
558560
":func:`multiprocessing.set_executable` to let the module know where to find "
559561
"the standard Python interpreter."
560562
msgstr ""
563+
"上述给出的启动程序采用了 Python 嵌入 API。 这意味着应用程序将会是 ``sys.executable`` ,而*不是*传统的 Python "
564+
"解释器。代码及依赖项需做好准备。例如,如果应用程序用到了 :mod:`multiprocessing` 模块,就需要调用 "
565+
":func:`multiprocessing.set_executable` 来让模块知道标准 Python 解释器的位置。"
561566

562567
#: ../../library/zipapp.rst:418
563568
msgid "The Python Zip Application Archive Format"
564-
msgstr ""
569+
msgstr "Python 打包应用程序的格式"
565570

566571
#: ../../library/zipapp.rst:420
567572
msgid ""
@@ -573,17 +578,22 @@ msgid ""
573578
"will be placed on :data:`sys.path` and thus further modules can be imported "
574579
"from the zip file."
575580
msgstr ""
581+
"自 2.6 版开始,Python 即能够执行包含 文件的打包文件了。为了能被 Python 执行,应用程序的打包文件必须为包含 "
582+
"``__main__.py`` 文件的标准 zip 文件,``__main__.py`` 文件将作为应用程序的入口运行。类似于常规的 Python "
583+
"脚本,父级(这里指打包文件)将放入 :data:`sys.path` ,因此可从打包文件中导入更多的模块。"
576584

577585
#: ../../library/zipapp.rst:427
578586
msgid ""
579587
"The zip file format allows arbitrary data to be prepended to a zip file. "
580588
"The zip application format uses this ability to prepend a standard POSIX "
581589
"\"shebang\" line to the file (``#!/path/to/interpreter``)."
582590
msgstr ""
591+
"zip 文件格式允许在文件中预置任意数据。利用这种能力,zip 应用程序格式在文件中预置了一个标准的 POSIX "
592+
"“释伴”行(``#!/path/to/interpreter``)。"
583593

584594
#: ../../library/zipapp.rst:431
585595
msgid "Formally, the Python zip application format is therefore:"
586-
msgstr ""
596+
msgstr "因此,Python zip 应用程序的格式会如下所示:"
587597

588598
#: ../../library/zipapp.rst:433
589599
msgid ""
@@ -594,6 +604,9 @@ msgid ""
594604
"encoded in UTF-8 on Windows, and in :func:`sys.getfilesystemencoding()` on "
595605
"POSIX."
596606
msgstr ""
607+
"可选的释伴行,包含字符 ``b'#!'``,后面是解释器名,然后是换行符 (``b'\\n'``)。 解释器名可为操作系统 "
608+
"“释伴”处理所能接受的任意值,或为 Windows 系统中的 Python 启动程序。解释器名在 Windows 中应用 UTF-8 编码,在 "
609+
"POSIX 中则用 :func:`sys.getfilesystemencoding()`。"
597610

598611
#: ../../library/zipapp.rst:438
599612
msgid ""
@@ -602,16 +615,18 @@ msgid ""
602615
"in the \"root\" of the zipfile - i.e., it cannot be in a subdirectory). The"
603616
" zipfile data can be compressed or uncompressed."
604617
msgstr ""
618+
"标准的打包文件由 :mod:`zipfile` 模块生成。其中 *必须* 包含一个名为``__main__.py`` "
619+
"的文件(必须位于打包文件的“根”目录——不能位于某个子目录中)。打包文件中的数据可以是压缩或未压缩的。"
605620

606621
#: ../../library/zipapp.rst:443
607622
msgid ""
608623
"If an application archive has a shebang line, it may have the executable bit"
609624
" set on POSIX systems, to allow it to be executed directly."
610-
msgstr ""
625+
msgstr "如果应用程序的打包文件带有释伴行,则在 POSIX 系统中可能需要启用可执行属性,以允许直接执行。"
611626

612627
#: ../../library/zipapp.rst:446
613628
msgid ""
614629
"There is no requirement that the tools in this module are used to create "
615630
"application archives - the module is a convenience, but archives in the "
616631
"above format created by any means are acceptable to Python."
617-
msgstr ""
632+
msgstr "不一定非要用本模块中的工具创建应用程序打包文件,本模块只是提供了便捷方案,上述格式的打包文件可用任何方式创建,均可被 Python 接受。"

0 commit comments

Comments
 (0)