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

Skip to content

Commit a96732a

Browse files
[po] auto sync
1 parent 0972a62 commit a96732a

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

library/xml.etree.elementtree.po

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,8 @@ msgid ""
11841184
"whose tag equals *tag* are returned from the iterator. If the tree "
11851185
"structure is modified during iteration, the result is undefined."
11861186
msgstr ""
1187+
"创建一个以当前元素为根元素的树的 :term:`iterator`。 该迭代器将以文档(深度优先)顺序迭代此元素及其所有下级元素。 如果 *tag* "
1188+
"不为 ``None`` 或 ``'*'``,则迭代器只返回标记为 *tag* 的元素。 如果树结构在迭代期间被修改,则结果是未定义的。"
11871189

11881190
#: ../../library/xml.etree.elementtree.rst:1001
11891191
msgid ""
@@ -1192,25 +1194,27 @@ msgid ""
11921194
"order. *namespaces* is an optional mapping from namespace prefix to full "
11931195
"name."
11941196
msgstr ""
1197+
"根据标记名称或者 :ref:`路径 <elementtree-xpath>` 查找所有匹配的子元素。 返回一个按文档顺序产生所有匹配元素的可迭代对象。 "
1198+
"*namespaces* 是可选的从命名空间前缀到完整名称的映射。"
11951199

11961200
#: ../../library/xml.etree.elementtree.rst:1012
11971201
msgid ""
11981202
"Creates a text iterator. The iterator loops over this element and all "
11991203
"subelements, in document order, and returns all inner text."
1200-
msgstr ""
1204+
msgstr "创建一个文本迭代器。 该迭代器将按文档顺序遍历此元素及其所有子元素,并返回所有内部文本。"
12011205

12021206
#: ../../library/xml.etree.elementtree.rst:1020
12031207
msgid ""
12041208
"Creates a new element object of the same type as this element. Do not call "
12051209
"this method, use the :func:`SubElement` factory function instead."
1206-
msgstr ""
1210+
msgstr "创建一个与此元素类型相同的新元素对象。 请不要调用此方法,而应改用 :func:`SubElement` 工厂函数。"
12071211

12081212
#: ../../library/xml.etree.elementtree.rst:1026
12091213
msgid ""
12101214
"Removes *subelement* from the element. Unlike the find\\* methods this "
12111215
"method compares elements based on the instance identity, not on tag value or"
12121216
" contents."
1213-
msgstr ""
1217+
msgstr "从元素中移除 *subelement*。 与 find\\* 方法不同的是此方法会基于实例的标识来比较元素,而不是基于标记的值或内容。"
12141218

12151219
#: ../../library/xml.etree.elementtree.rst:1030
12161220
msgid ""

library/xml.sax.po

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ msgid ""
4545
"data. If you need to parse untrusted or unauthenticated data see :ref:`xml-"
4646
"vulnerabilities`."
4747
msgstr ""
48+
":mod:`xml.sax` 模块对于恶意构建的数据是不安全的。 如果你需要解析不受信任或未经身份验证的数据,请参阅 :ref:`xml-"
49+
"vulnerabilities`。"
4850

4951
#: ../../library/xml.sax.rst:29
5052
msgid ""
@@ -55,10 +57,13 @@ msgid ""
5557
":meth:`~xml.sax.xmlreader.XMLReader.setFeature` on the parser object and "
5658
"argument :data:`~xml.sax.handler.feature_external_ges`."
5759
msgstr ""
60+
"SAX 解析器默认不会再处理通用外部实体以便提升安全性。 在此之前,解析器会创建网络连接来获取远程文件或是从 DTD 和实体文件系统中加载本地文件。 "
61+
"此特性可通过在解析器对象上调用 :meth:`~xml.sax.xmlreader.XMLReader.setFeature` 对象并传入参数 "
62+
":data:`~xml.sax.handler.feature_external_ges` 来重新启用。"
5863

5964
#: ../../library/xml.sax.rst:36
6065
msgid "The convenience functions are:"
61-
msgstr ""
66+
msgstr "可用的便捷函数如下所列:"
6267

6368
#: ../../library/xml.sax.rst:41
6469
msgid ""
@@ -68,10 +73,13 @@ msgid ""
6873
":func:`create_parser`. Modules listed in *parser_list* will be used before "
6974
"modules in the default list of parsers."
7075
msgstr ""
76+
"创建并返回一个 SAX :class:`~xml.sax.xmlreader.XMLReader` 对象。 将返回第一个被找到的解析器。 如果提供了 "
77+
"*parser_list*,它必须为一个包含字符串的可迭代对象,这些字符串指定了具有名为 :func:`create_parser` 函数的模块。 在 "
78+
"*parser_list* 中列出的模块将在默认解析器列表中的模块之前被使用。"
7179

7280
#: ../../library/xml.sax.rst:47
7381
msgid "The *parser_list* argument can be any iterable, not just a list."
74-
msgstr ""
82+
msgstr "*parser_list* 参数可以是任意可迭代对象,而不一定是列表。"
7583

7684
#: ../../library/xml.sax.rst:53
7785
msgid ""

0 commit comments

Comments
 (0)