@@ -378,42 +378,42 @@ msgid ""
378378"The SAX parser will ignore this if there is also a character stream "
379379"specified, but it will use a byte stream in preference to opening a URI "
380380"connection itself."
381- msgstr ""
381+ msgstr "如果还指定了一个字符流被则 SAX 解析器会忽略此设置,但它将优先使用字节流而不是自己打开一个 URI 连接。 "
382382
383383#: ../../library/xml.sax.reader.rst:302
384384msgid ""
385385"If the application knows the character encoding of the byte stream, it "
386386"should set it with the setEncoding method."
387- msgstr ""
387+ msgstr "如果应用程序知道字节流的字符编码格式,它应当使用 setEncoding 方法来设置它。 "
388388
389389#: ../../library/xml.sax.reader.rst:308
390390msgid "Get the byte stream for this input source."
391- msgstr ""
391+ msgstr "获取此输入源的字节流。 "
392392
393393#: ../../library/xml.sax.reader.rst:310
394394msgid ""
395395"The getEncoding method will return the character encoding for this byte "
396396"stream, or ``None`` if unknown."
397- msgstr ""
397+ msgstr "getEncoding 方法将返回该字节流的字符编码格式,如果未知则返回 ``None``。 "
398398
399399#: ../../library/xml.sax.reader.rst:316
400400msgid "Set the character stream (a :term:`text file`) for this input source."
401- msgstr ""
401+ msgstr "设置此输入源的字符流 (为 :term:`text file` 对象)。 "
402402
403403#: ../../library/xml.sax.reader.rst:318
404404msgid ""
405405"If there is a character stream specified, the SAX parser will ignore any "
406406"byte stream and will not attempt to open a URI connection to the system "
407407"identifier."
408- msgstr ""
408+ msgstr "如果指定了一个字符流,SAX 解析器将忽略任何字节流并且不会尝试打开一个指向系统标识符的 URI 连接。 "
409409
410410#: ../../library/xml.sax.reader.rst:324
411411msgid "Get the character stream for this input source."
412- msgstr ""
412+ msgstr "获取此输入源的字符流。 "
413413
414414#: ../../library/xml.sax.reader.rst:330
415415msgid "The :class:`Attributes` Interface"
416- msgstr ""
416+ msgstr ":class:`Attributes` 接口 "
417417
418418#: ../../library/xml.sax.reader.rst:332
419419msgid ""
@@ -425,51 +425,58 @@ msgid ""
425425":meth:`~collections.abc.Mapping.values`. The following methods are also "
426426"provided:"
427427msgstr ""
428+ ":class:`Attributes` 对象实现了一部分 :term:`映射协议 <mapping>`,包括 "
429+ ":meth:`~collections.abc.Mapping.copy`, :meth:`~collections.abc.Mapping.get`,"
430+ " :meth:`~object.__contains__`, :meth:`~collections.abc.Mapping.items`, "
431+ ":meth:`~collections.abc.Mapping.keys` 和 "
432+ ":meth:`~collections.abc.Mapping.values` 等方法。 还提供了下列方法:"
428433
429434#: ../../library/xml.sax.reader.rst:342
430435msgid "Return the number of attributes."
431- msgstr ""
436+ msgstr "返回属性的数量。 "
432437
433438#: ../../library/xml.sax.reader.rst:347
434439msgid "Return the names of the attributes."
435- msgstr ""
440+ msgstr "返回属性的名称。 "
436441
437442#: ../../library/xml.sax.reader.rst:352
438443msgid ""
439444"Returns the type of the attribute *name*, which is normally ``'CDATA'``."
440- msgstr ""
445+ msgstr "返回属性 *name* 的类型,通常为 ``'CDATA'``。 "
441446
442447#: ../../library/xml.sax.reader.rst:357
443448msgid "Return the value of attribute *name*."
444- msgstr ""
449+ msgstr "返回属性 *name* 的值。 "
445450
446451#: ../../library/xml.sax.reader.rst:366
447452msgid "The :class:`AttributesNS` Interface"
448- msgstr ""
453+ msgstr ":class:`AttributesNS` 接口 "
449454
450455#: ../../library/xml.sax.reader.rst:368
451456msgid ""
452457"This interface is a subtype of the :class:`Attributes` interface (see "
453458"section :ref:`attributes-objects`). All methods supported by that interface"
454459" are also available on :class:`AttributesNS` objects."
455460msgstr ""
461+ "此接口是 :class:`Attributes` 接口(参见 :ref:`attributes-objects` 章节)的一个子类型。 "
462+ "那个接口所支持的所有方法在 :class:`AttributesNS` 对象上也都可用。"
456463
457464#: ../../library/xml.sax.reader.rst:372
458465msgid "The following methods are also available:"
459- msgstr ""
466+ msgstr "下列方法也是可用的: "
460467
461468#: ../../library/xml.sax.reader.rst:377
462469msgid "Return the value for a qualified name."
463- msgstr ""
470+ msgstr "返回一个限定名称的值。 "
464471
465472#: ../../library/xml.sax.reader.rst:382
466473msgid "Return the ``(namespace, localname)`` pair for a qualified *name*."
467- msgstr ""
474+ msgstr "返回限定名称 *name* 的 ``(namespace, localname)`` 对。 "
468475
469476#: ../../library/xml.sax.reader.rst:387
470477msgid "Return the qualified name for a ``(namespace, localname)`` pair."
471- msgstr ""
478+ msgstr "返回 ``(namespace, localname)`` 对的限定名称。 "
472479
473480#: ../../library/xml.sax.reader.rst:392
474481msgid "Return the qualified names of all attributes."
475- msgstr ""
482+ msgstr "返回所有属性的限定名称。 "
0 commit comments