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

Skip to content

Commit 84e16f7

Browse files
[po] auto sync
1 parent 52e640e commit 84e16f7

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

library/zipapp.po

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,52 +112,54 @@ msgid ""
112112
"a package/module in the archive, and \"fn\" is a callable in the given "
113113
"module. The ``__main__.py`` file will execute that callable."
114114
msgstr ""
115+
"在打包文件中写入一个 ``__main__.py`` 文件,用于执行 *mainfn*。*mainfn* 参数的形式应为 “pkg.mod:fn”,其中"
116+
" “pkg.mod”是打包文件中的某个包/模块,“fn”是该模块中的一个可调用对象。``__main__.py`` 文件将会执行该可调用对象。"
115117

116118
#: ../../library/zipapp.rst:80
117119
msgid ":option:`--main` cannot be specified when copying an archive."
118-
msgstr ""
120+
msgstr "在复制打包文件时,不能设置 :option:`--main` 参数。"
119121

120122
#: ../../library/zipapp.rst:84
121123
msgid ""
122124
"Compress files with the deflate method, reducing the size of the output "
123125
"file. By default, files are stored uncompressed in the archive."
124-
msgstr ""
126+
msgstr "利用 deflate 方法压缩文件,减少输出文件的大小。默认情况下,打包文件中的文件是不压缩的。"
125127

126128
#: ../../library/zipapp.rst:87
127129
msgid ":option:`--compress` has no effect when copying an archive."
128-
msgstr ""
130+
msgstr "在复制打包文件时,:option:`--compress` 无效。"
129131

130132
#: ../../library/zipapp.rst:93
131133
msgid ""
132134
"Display the interpreter embedded in the archive, for diagnostic purposes. "
133135
"In this case, any other options are ignored and SOURCE must be an archive, "
134136
"not a directory."
135-
msgstr ""
137+
msgstr "显示嵌入在打包文件中的解释器程序,以便诊断问题。这时会忽略其他所有参数,SOURCE 必须是个打包文件,而不是目录。"
136138

137139
#: ../../library/zipapp.rst:99
138140
msgid "Print a short usage message and exit."
139-
msgstr ""
141+
msgstr "打印简短的用法信息并退出。"
140142

141143
#: ../../library/zipapp.rst:105
142144
msgid "Python API"
143-
msgstr ""
145+
msgstr "Python API"
144146

145147
#: ../../library/zipapp.rst:107
146148
msgid "The module defines two convenience functions:"
147-
msgstr ""
149+
msgstr "该模块定义了两个快捷函数:"
148150

149151
#: ../../library/zipapp.rst:112
150152
msgid ""
151153
"Create an application archive from *source*. The source can be any of the "
152154
"following:"
153-
msgstr ""
155+
msgstr "由 *source* 创建一个应用程序打包文件。source 可以是以下形式之一:"
154156

155157
#: ../../library/zipapp.rst:115
156158
msgid ""
157159
"The name of a directory, or a :term:`path-like object` referring to a "
158160
"directory, in which case a new application archive will be created from the "
159161
"content of that directory."
160-
msgstr ""
162+
msgstr "一个目录名,或指向目录的 :term:`path-like object` ,这时将根据目录内容新建一个应用程序打包文件。"
161163

162164
#: ../../library/zipapp.rst:118
163165
msgid ""
@@ -167,38 +169,42 @@ msgid ""
167169
"argument). The file name should include the ``.pyz`` extension, if "
168170
"required."
169171
msgstr ""
172+
"一个已存在的应用程序打包文件名,或指向这类文件的 :term:`path-like object`,这时会将该文件复制为目标文件(会稍作修改以反映出 "
173+
"*interpreter* 参数的值)。必要时文件名中应包括 ``.pyz`` 扩展名。"
170174

171175
#: ../../library/zipapp.rst:122
172176
msgid ""
173177
"A file object open for reading in bytes mode. The content of the file "
174178
"should be an application archive, and the file object is assumed to be "
175179
"positioned at the start of the archive."
176-
msgstr ""
180+
msgstr "一个以字节串模式打开的文件对象。该文件的内容应为应用程序打包文件,且假定文件对象定位于打包文件的初始位置。"
177181

178182
#: ../../library/zipapp.rst:126
179183
msgid ""
180184
"The *target* argument determines where the resulting archive will be "
181185
"written:"
182-
msgstr ""
186+
msgstr "*target* 参数定义了打包文件的写入位置:"
183187

184188
#: ../../library/zipapp.rst:129
185189
msgid ""
186190
"If it is the name of a file, or a :term:`path-like object`, the archive will"
187191
" be written to that file."
188-
msgstr ""
192+
msgstr "若是个文件名,或是 :term:`path-like object`,打包文件将写入该文件中。"
189193

190194
#: ../../library/zipapp.rst:131
191195
msgid ""
192196
"If it is an open file object, the archive will be written to that file "
193197
"object, which must be open for writing in bytes mode."
194-
msgstr ""
198+
msgstr "若是个打开的文件对象,打包文件将写入该对象,该文件对象必须在字节串写入模式下打开。"
195199

196200
#: ../../library/zipapp.rst:133
197201
msgid ""
198202
"If the target is omitted (or ``None``), the source must be a directory and "
199203
"the target will be a file with the same name as the source, with a ``.pyz`` "
200204
"extension added."
201205
msgstr ""
206+
"如果省略了 target (或为 ``None``),则 source 必须为一个目录,target 将是与 source 同名的文件,并加上 "
207+
"``.pyz`` 扩展名。"
202208

203209
#: ../../library/zipapp.rst:137
204210
msgid ""

0 commit comments

Comments
 (0)