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

Skip to content

Commit f09d35a

Browse files
[po] auto sync
1 parent fa13d00 commit f09d35a

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

library/cgi.po

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ msgid ""
231231
"Back or Cancel button) the :attr:`~FieldStorage.done` attribute of the "
232232
"object for the field will be set to the value -1."
233233
msgstr ""
234+
"如果在获取上传文件的内容时遇到错误(例如,当用户点击回退或取消按钮中断表单提交时)该字段中对象的 :attr:`~FieldStorage.done` "
235+
"属性值将被设为 -1。"
234236

235237
#: ../../library/cgi.rst:167
236238
msgid ""
@@ -243,6 +245,10 @@ msgid ""
243245
"case, it can be iterated over recursively just like the top-level form "
244246
"object."
245247
msgstr ""
248+
"文件上传标准草案考虑到了从一个字段上传多个文件的可能性(使用递归的 :mimetype:`multipart/\\*` 编码格式)。 "
249+
"当这种情况发生时,该条目将是一个类似字典的 :class:`FieldStorage` 条目。 这可以通过检测它的 :attr:`!type` "
250+
"属性来确定,该属性应当是 :mimetype:`multipart/form-data` (或者可能是匹配 "
251+
":mimetype:`multipart/\\*` 的其他 MIME 类型)。 在这种情况下,它可以像最高层级的表单对象一样被递归地迭代处理。"
246252

247253
#: ../../library/cgi.rst:175
248254
msgid ""
@@ -252,28 +258,34 @@ msgid ""
252258
"In this case, the :attr:`!list`, :attr:`!file`, and :attr:`filename` "
253259
"attributes are always ``None``."
254260
msgstr ""
261+
"当一个表单按“旧”格式提交时(即以查询字符串或是单个 :mimetype:`application/x-www-form-urlencoded` "
262+
"类型的数据部分的形式),这些条目实际上将是 :class:`MiniFieldStorage` 类的实例。 在这种情况下,:attr:`!list`, "
263+
":attr:`!file` 和 :attr:`filename` 属性将总是为 ``None``。"
255264

256265
#: ../../library/cgi.rst:180
257266
msgid ""
258267
"A form submitted via POST that also has a query string will contain both "
259268
":class:`FieldStorage` and :class:`MiniFieldStorage` items."
260269
msgstr ""
270+
"通过 POST 方式提交并且也带有查询字符串的表单将同时包含 :class:`FieldStorage` 和 "
271+
":class:`MiniFieldStorage` 条目。"
261272

262273
#: ../../library/cgi.rst:183
263274
msgid ""
264275
"The :attr:`~FieldStorage.file` attribute is automatically closed upon the "
265276
"garbage collection of the creating :class:`FieldStorage` instance."
266277
msgstr ""
278+
":attr:`~FieldStorage.file` 属性会在创建 :class:`FieldStorage` 实例的垃圾回收操作中被自动关闭。"
267279

268280
#: ../../library/cgi.rst:187
269281
msgid ""
270282
"Added support for the context management protocol to the "
271283
":class:`FieldStorage` class."
272-
msgstr ""
284+
msgstr "为 :class:`FieldStorage` 类增加了上下文管理协议支持。"
273285

274286
#: ../../library/cgi.rst:193
275287
msgid "Higher Level Interface"
276-
msgstr ""
288+
msgstr "更高层级的接口"
277289

278290
#: ../../library/cgi.rst:195
279291
msgid ""

0 commit comments

Comments
 (0)