@@ -38,6 +38,9 @@ msgid ""
3838"``.cab`` files is currently not implemented; read support for the ``.msi`` "
3939"database is possible."
4040msgstr ""
41+ ":mod:`msilib` 支持创建 Microsoft 安装器 (``.msi``) 文件。 由于这种文件往往包含一个嵌入的 \" cabinet\" "
42+ "文件 (``.cab``),它也暴露了一个用于创建 CAB 文件的 API。 目前没有实现对读取 ``.cab`` 文件的支持;对于读取 "
43+ "``.msi`` 数据库的支持则是可能的。"
4144
4245#: ../../library/msilib.rst:22
4346msgid ""
@@ -47,39 +50,46 @@ msgid ""
4750"creation of Python installer package itself (although that currently uses a "
4851"different version of ``msilib``)."
4952msgstr ""
53+ "这个包的目标是提供对 ``.msi`` 文件中的全部表的完整访问,因此,它是一个相当低层级的 API。 这个包的两个主要应用是 "
54+ ":mod:`distutils` 命令 ``bdist_msi``,以及创建 Python 安装程序包本身 (尽管它目前是使用不同版本的 "
55+ "``msilib``)。"
5056
5157#: ../../library/msilib.rst:28
5258msgid ""
5359"The package contents can be roughly split into four parts: low-level CAB "
5460"routines, low-level MSI routines, higher-level MSI routines, and standard "
5561"table structures."
56- msgstr ""
62+ msgstr "这个包的内容可以大致分为四个部分:低层级 CAB 例程、低层级 MSI 例程、高层级 MSI 例程以及标准表结构。 "
5763
5864#: ../../library/msilib.rst:35
5965msgid ""
6066"Create a new CAB file named *cabname*. *files* must be a list of tuples, "
6167"each containing the name of the file on disk, and the name of the file "
6268"inside the CAB file."
6369msgstr ""
70+ "新建一个名为 *cabname* 的 CAB 文件。 *files* 必须是一个元组的列表,其中每个元组包含磁盘文件的名称,以及 CAB "
71+ "文件内文件的名称。"
6472
6573#: ../../library/msilib.rst:39
6674msgid ""
6775"The files are added to the CAB file in the order they appear in the list. "
6876"All files are added into a single CAB file, using the MSZIP compression "
6977"algorithm."
70- msgstr ""
78+ msgstr "这些文件将按照它们在列表中出现的顺序被添加到 CAB 文件中。 所有文件都会被添加到单个 CAB 文件,使用 MSZIP 压缩算法。 "
7179
7280#: ../../library/msilib.rst:42
7381msgid ""
7482"Callbacks to Python for the various steps of MSI creation are currently not "
7583"exposed."
76- msgstr ""
84+ msgstr "目前没有暴露 MSI 创建的各个步骤对 Python 的回调。 "
7785
7886#: ../../library/msilib.rst:48
7987msgid ""
8088"Return the string representation of a new unique identifier. This wraps the "
8189"Windows API functions :c:func:`UuidCreate` and :c:func:`UuidToString`."
8290msgstr ""
91+ "返回一个新的唯一标识符的字符串表示形式。 这封装了 Windows API 函数 :c:func:`UuidCreate` 和 "
92+ ":c:func:`UuidToString`。"
8393
8494#: ../../library/msilib.rst:54
8595msgid ""
@@ -91,19 +101,26 @@ msgid ""
91101"these flags; depending on the flags, an existing database is opened, or a "
92102"new one created."
93103msgstr ""
104+ "通过调用 MsiOpenDatabase 来返回一个新的数据库对象。 *path* 为 MSI 文件的名称;*persist* 可以是常量 "
105+ "``MSIDBOPEN_CREATEDIRECT``, ``MSIDBOPEN_CREATE``, ``MSIDBOPEN_DIRECT``, "
106+ "``MSIDBOPEN_READONLY`` 或 ``MSIDBOPEN_TRANSACT`` 中的一个,并可能包括旗标 "
107+ "``MSIDBOPEN_PATCHFILE``。 请参阅 Microsoft "
108+ "文档了解这些旗标的含义;根据这些旗标,将打开一个现有数据库,或者创建一个新数据库。"
94109
95110#: ../../library/msilib.rst:65
96111msgid ""
97112"Return a new record object by calling :c:func:`MSICreateRecord`. *count* is "
98113"the number of fields of the record."
99- msgstr ""
114+ msgstr "通过调用 :c:func:`MSICreateRecord` 来返回一个新的记录对象。 *count* 为记录的字段数量。 "
100115
101116#: ../../library/msilib.rst:71
102117msgid ""
103118"Create and return a new database *name*, initialize it with *schema*, and "
104119"set the properties *ProductName*, *ProductCode*, *ProductVersion*, and "
105120"*Manufacturer*."
106121msgstr ""
122+ "创建并返回一个新的数据库 *name*,使用 *schema* 来初始化它,并设置属性 *ProductName*, *ProductCode*, "
123+ "*ProductVersion* 和 *Manufacturer*。"
107124
108125#: ../../library/msilib.rst:75
109126msgid ""
0 commit comments