@@ -187,17 +187,19 @@ msgstr ""
187187
188188#: ../../library/xml.sax.reader.rst:127
189189msgid "Return the current :class:`~xml.sax.handler.DTDHandler`."
190- msgstr ""
190+ msgstr "返回当前的 :class:`~xml.sax.handler.DTDHandler`。 "
191191
192192#: ../../library/xml.sax.reader.rst:132
193193msgid ""
194194"Set the current :class:`~xml.sax.handler.DTDHandler`. If no "
195195":class:`~xml.sax.handler.DTDHandler` is set, DTD events will be discarded."
196196msgstr ""
197+ "设置当前的 :class:`~xml.sax.handler.DTDHandler`。 如果没有设置 "
198+ ":class:`~xml.sax.handler.DTDHandler`,DTD 事件将被德育。"
197199
198200#: ../../library/xml.sax.reader.rst:139
199201msgid "Return the current :class:`~xml.sax.handler.EntityResolver`."
200- msgstr ""
202+ msgstr "返回当前的 :class:`~xml.sax.handler.EntityResolver`。 "
201203
202204#: ../../library/xml.sax.reader.rst:144
203205msgid ""
@@ -206,20 +208,24 @@ msgid ""
206208"external entity will result in opening the system identifier for the entity,"
207209" and fail if it is not available."
208210msgstr ""
211+ "设置当前的 :class:`~xml.sax.handler.EntityResolver`。 如果没有设置 "
212+ ":class:`~xml.sax.handler.EntityResolver`,尝试解析一个外部实体将导致打开该实体的系统标识符,并且如果它不可用则操作将失败。"
209213
210214#: ../../library/xml.sax.reader.rst:152
211215msgid "Return the current :class:`~xml.sax.handler.ErrorHandler`."
212- msgstr ""
216+ msgstr "返回当前的 :class:`~xml.sax.handler.ErrorHandler`。 "
213217
214218#: ../../library/xml.sax.reader.rst:157
215219msgid ""
216220"Set the current error handler. If no :class:`~xml.sax.handler.ErrorHandler`"
217221" is set, errors will be raised as exceptions, and warnings will be printed."
218222msgstr ""
223+ "设置当前的错误处理句柄。 如果没有设置 "
224+ ":class:`~xml.sax.handler.ErrorHandler`,错误将作为异常被引发,并将打印警告信息。"
219225
220226#: ../../library/xml.sax.reader.rst:163
221227msgid "Allow an application to set the locale for errors and warnings."
222- msgstr ""
228+ msgstr "允许应用程序为错误和警告设置语言区域。 "
223229
224230#: ../../library/xml.sax.reader.rst:165
225231msgid ""
@@ -228,34 +234,45 @@ msgid ""
228234"raise a SAX exception. Applications may request a locale change in the "
229235"middle of a parse."
230236msgstr ""
237+ "SAX 解析器不要求为错误和警告提供本地化信息;但是如果它们无法支持所请求的语言区域,则必须引发一个 SAX 异常。 "
238+ "应用程序可以在解析的中途请求更改语言区域。"
231239
232240#: ../../library/xml.sax.reader.rst:172
233241msgid ""
234242"Return the current setting for feature *featurename*. If the feature is not"
235243" recognized, :exc:`SAXNotRecognizedException` is raised. The well-known "
236244"featurenames are listed in the module :mod:`xml.sax.handler`."
237245msgstr ""
246+ "返回 *featurename* 特性的当前设置。 如果特性无法被识别,则会引发 :exc:`SAXNotRecognizedException`。 在"
247+ " :mod:`xml.sax.handler` 模块中列出了常见的特性名称。"
238248
239249#: ../../library/xml.sax.reader.rst:179
240250msgid ""
241251"Set the *featurename* to *value*. If the feature is not recognized, "
242252":exc:`SAXNotRecognizedException` is raised. If the feature or its setting is"
243253" not supported by the parser, *SAXNotSupportedException* is raised."
244254msgstr ""
255+ "将 *featurename* 设为 *value*。 如果特性无法被识别,则会引发 :exc:`SAXNotRecognizedException`。"
256+ " 如果特性或其设置不被解析器所支持,则会引发 *SAXNotSupportedException*。"
245257
246258#: ../../library/xml.sax.reader.rst:186
247259msgid ""
248260"Return the current setting for property *propertyname*. If the property is "
249261"not recognized, a :exc:`SAXNotRecognizedException` is raised. The well-known"
250262" propertynames are listed in the module :mod:`xml.sax.handler`."
251263msgstr ""
264+ "返回 *propertyname* 属性的当前设置。 如果属性无法被识别,则会引发 :exc:`SAXNotRecognizedException`。 "
265+ "在 :mod:`xml.sax.handler` 模块中列出了常见的属性名称。"
252266
253267#: ../../library/xml.sax.reader.rst:193
254268msgid ""
255269"Set the *propertyname* to *value*. If the property is not recognized, "
256270":exc:`SAXNotRecognizedException` is raised. If the property or its setting "
257271"is not supported by the parser, *SAXNotSupportedException* is raised."
258272msgstr ""
273+ "将 *propertyname* 设为 *value*。 如果属性无法被识别,则会引发 "
274+ ":exc:`SAXNotRecognizedException`。 如果属性或其设置不被解析器所支持,则会引发 "
275+ "*SAXNotSupportedException*。"
259276
260277#: ../../library/xml.sax.reader.rst:201
261278msgid "IncrementalParser Objects"
@@ -265,7 +282,7 @@ msgstr "IncrementalParser 对象"
265282msgid ""
266283"Instances of :class:`IncrementalParser` offer the following additional "
267284"methods:"
268- msgstr ""
285+ msgstr ":class:`IncrementalParser` 的实例额外提供了下列方法: "
269286
270287#: ../../library/xml.sax.reader.rst:208
271288msgid "Process a chunk of *data*."
0 commit comments