@@ -969,6 +969,10 @@ msgid ""
969969"\" text\" , this is a Unicode string. If the loader fails, it can return None"
970970" or raise an exception."
971971msgstr ""
972+ "默认的加载器。 这个默认的加载器会从磁盘读取所包括的资源。 *href* 是一个 URL。 *parse* 是 \" xml\" 或 \" text\" "
973+ "表示解析模式。 *encoding* 是可选的文本编码格式。 如果未给出,则编码格式为 ``utf-8``。 返回已扩展的资源。 如果解析模式为 "
974+ "``\" xml\" ``,则它是一个 ElementTree 实例。 如果解析模式为 \" text\" ,则它是一个 Unicode 字符串。 "
975+ "如果加载器失败,它可以返回 None 或者引发异常。"
972976
973977#: ../../library/xml.etree.elementtree.rst:830
974978msgid ""
@@ -981,17 +985,23 @@ msgid ""
981985"malicious content explosion. Pass a negative value to disable the "
982986"limitation."
983987msgstr ""
988+ "这个函数会扩展 XInclude 指令。 *elem* 是根元素。 *loader* 是可选的资源加载器。 如果省略,则它默认为 "
989+ ":func:`default_loader`。 如果给出,则它应当是一个实现了与 :func:`default_loader` 相同的接口的可调用对象。"
990+ " *base_url* 是原文件的基准 URL,用于求解相对的包括文件引用。 *max_depth* 是递归包括的最大数量。 "
991+ "此限制是为了降低恶意内容爆破的风险。 传入一个负值可禁用此限制。"
984992
985993#: ../../library/xml.etree.elementtree.rst:838
986994msgid ""
987995"Returns the expanded resource. If the parse mode is ``\" xml\" ``, this is an"
988996" ElementTree instance. If the parse mode is \" text\" , this is a Unicode "
989997"string. If the loader fails, it can return None or raise an exception."
990998msgstr ""
999+ "返回已扩展的资源。 如果解析模式为 ``\" xml\" ``,则它是一个 ElementTree 实例。 如果解析模式为 \" text\" ,则它是一个 "
1000+ "Unicode 字符串。 如果加载器失败,它可以返回 None 或者引发异常。"
9911001
9921002#: ../../library/xml.etree.elementtree.rst:843
9931003msgid "The *base_url* and *max_depth* parameters."
994- msgstr ""
1004+ msgstr "*base_url* 和 *max_depth* 形参。 "
9951005
9961006#: ../../library/xml.etree.elementtree.rst:850
9971007msgid "Element Objects"
@@ -1001,7 +1011,7 @@ msgstr "元素对象"
10011011msgid ""
10021012"Element class. This class defines the Element interface, and provides a "
10031013"reference implementation of this interface."
1004- msgstr ""
1014+ msgstr "元素类。 这个类定义了 Element 接口,并提供了这个接口的引用实现。 "
10051015
10061016#: ../../library/xml.etree.elementtree.rst:857
10071017msgid ""
0 commit comments