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

Skip to content

Commit c070af2

Browse files
[po] auto sync
1 parent 0274690 commit c070af2

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

library/pyexpat.po

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ msgid ""
226226
":const:`XML_PARAM_ENTITY_PARSING_ALWAYS`. Return true if setting the flag "
227227
"was successful."
228228
msgstr ""
229+
"控制参数实体(包括外部 DTD 子集)的解析。 可能的 *flag* 值有 "
230+
":const:`XML_PARAM_ENTITY_PARSING_NEVER`, "
231+
":const:`XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE` 和 "
232+
":const:`XML_PARAM_ENTITY_PARSING_ALWAYS`。 如果该旗标设置成功则返回真值。"
229233

230234
#: ../../library/pyexpat.rst:184
231235
msgid ""
@@ -236,12 +240,16 @@ msgid ""
236240
"will still be called, but the :attr:`StartDoctypeDeclHandler` and "
237241
":attr:`EndDoctypeDeclHandler` will not be called."
238242
msgstr ""
243+
"调用时将 *flag* 设为真值(默认)将导致 Expat 调用 :attr:`ExternalEntityRefHandler` 时将所有参数设为 "
244+
":const:`None` 以允许加载替代的 DTD。 如果文档不包含文档类型声明,:attr:`ExternalEntityRefHandler` "
245+
"仍然会被调用,但 :attr:`StartDoctypeDeclHandler` 和 :attr:`EndDoctypeDeclHandler` "
246+
"将不会被调用。"
239247

240248
#: ../../library/pyexpat.rst:191
241249
msgid ""
242250
"Passing a false value for *flag* will cancel a previous call that passed a "
243251
"true value, but otherwise has no effect."
244-
msgstr ""
252+
msgstr "为 *flag* 传入假值将将撤消之前传入真值的调用,除此之外没有其他影响。"
245253

246254
#: ../../library/pyexpat.rst:194
247255
msgid ""
@@ -250,17 +258,22 @@ msgid ""
250258
"causes :exc:`ExpatError` to be raised with the :attr:`code` attribute set to"
251259
" ``errors.codes[errors.XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING]``."
252260
msgstr ""
261+
"此方法只能在调用 :meth:`Parse` 或 :meth:`ParseFile` 方法之前被调用;在已调用过这两个方法之后调用它会导致引发 "
262+
":exc:`ExpatError` 且 :attr:`code` 属性被设为 "
263+
"``errors.codes[errors.XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING]``。"
253264

254265
#: ../../library/pyexpat.rst:199
255266
msgid ":class:`xmlparser` objects have the following attributes:"
256-
msgstr ""
267+
msgstr ":class:`xmlparser` 对象具有下列属性:"
257268

258269
#: ../../library/pyexpat.rst:204
259270
msgid ""
260271
"The size of the buffer used when :attr:`buffer_text` is true. A new buffer "
261272
"size can be set by assigning a new integer value to this attribute. When the"
262273
" size is changed, the buffer will be flushed."
263274
msgstr ""
275+
"当 :attr:`buffer_text` 为真值时所使用的缓冲区大小。 可以通过将此属性赋一个新的整数值来设置一个新的缓冲区大小。 "
276+
"当大小发生改变时,缓冲区将被刷新。"
264277

265278
#: ../../library/pyexpat.rst:212
266279
msgid ""
@@ -271,6 +284,9 @@ msgid ""
271284
"chunks at every line ending. This attribute is false by default, and may be"
272285
" changed at any time."
273286
msgstr ""
287+
"将此属性设为真值会使得 :class:`xmlparser` 对象缓冲 Expat 所返回的文本内容以尽可能地避免多次调用 "
288+
":meth:`CharacterDataHandler` 回调。 这可以显著地提升性能,因为 Expat 通常会将字符数据在每个行结束的位置上进行分块。"
289+
" 此属性默认为假值,但可以在任何时候被更改。"
274290

275291
#: ../../library/pyexpat.rst:222
276292
msgid ""

0 commit comments

Comments
 (0)