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

Skip to content

Commit bcb7dc9

Browse files
[po] auto sync
1 parent 629d7f0 commit bcb7dc9

3 files changed

Lines changed: 6796 additions & 6770 deletions

File tree

faq/programming.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2405,22 +2405,22 @@ msgstr ""
24052405
#: ../../faq/programming.rst:1940
24062406
msgid ""
24072407
"Jim Roskind suggests performing steps in the following order in each module:"
2408-
msgstr "Jim Roskind建议在每个模块中按以下顺序执行步骤:"
2408+
msgstr "Jim Roskind 建议每个模块都应遵循以下顺序:"
24092409

24102410
#: ../../faq/programming.rst:1942
24112411
msgid ""
24122412
"exports (globals, functions, and classes that don't need imported base "
24132413
"classes)"
2414-
msgstr "导出(全局变量函数和不需要导入基类的类)"
2414+
msgstr "导出(全局变量函数和不需要导入基类的类)"
24152415

24162416
#: ../../faq/programming.rst:1944
24172417
msgid "``import`` statements"
2418-
msgstr "``导入`` 声明"
2418+
msgstr "``import`` 语句"
24192419

24202420
#: ../../faq/programming.rst:1945
24212421
msgid ""
24222422
"active code (including globals that are initialized from imported values)."
2423-
msgstr "活动代码(包括从导入值初始化的全局变量)。"
2423+
msgstr "本模块的功能代码(包括根据导入值进行初始化的全局变量)。"
24242424

24252425
#: ../../faq/programming.rst:1947
24262426
msgid ""

library/xml.dom.po

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,23 +655,26 @@ msgid ""
655655
":meth:`getElementsByTagName` and :meth:`getElementsByTagNameNS` methods of "
656656
":class:`Node` return objects with this interface to represent query results."
657657
msgstr ""
658+
":class:`NodeList` 代表一个节点列表。 在 DOM 核心建议中这些对象有两种使用方式: 由 :class:`Element` "
659+
"对象提供作为其子节点列表,以及由 :class:`Node` 的 :meth:`getElementsByTagName` 和 "
660+
":meth:`getElementsByTagNameNS` 方法通过此接口返回对象来表示查询结果。"
658661

659662
#: ../../library/xml.dom.rst:412
660663
msgid ""
661664
"The DOM Level 2 recommendation defines one method and one attribute for "
662665
"these objects:"
663-
msgstr ""
666+
msgstr "DOM 第 2 层级建议为这些对象定义一个方法和一个属性:"
664667

665668
#: ../../library/xml.dom.rst:418
666669
msgid ""
667670
"Return the *i*'th item from the sequence, if there is one, or ``None``. The"
668671
" index *i* is not allowed to be less than zero or greater than or equal to "
669672
"the length of the sequence."
670-
msgstr ""
673+
msgstr "从序列中返回第 *i* 项,如果序列不为空的话,否则返回 ``None``。 索引号 *i* 不允许小于零或大于等于序列的长度。"
671674

672675
#: ../../library/xml.dom.rst:425
673676
msgid "The number of nodes in the sequence."
674-
msgstr ""
677+
msgstr "序列中的节点数量。"
675678

676679
#: ../../library/xml.dom.rst:427
677680
msgid ""
@@ -682,13 +685,19 @@ msgid ""
682685
"iteration over the :class:`NodeList` in :keyword:`for` statements and proper"
683686
" support for the :func:`len` built-in function."
684687
msgstr ""
688+
"此外,Python DOM 接口还要求提供一些额外支持来允许将 :class:`NodeList` 对象用作 Python 序列。 所有 "
689+
":class:`NodeList` 实现都必须包括对 :meth:`~object.__len__` 和 "
690+
":meth:`~object.__getitem__` 的支持;这样 :class:`NodeList` 就允许使用 :keyword:`for` "
691+
"语句进行迭代并能正确地支持 :func:`len` 内置函数。"
685692

686693
#: ../../library/xml.dom.rst:435
687694
msgid ""
688695
"If a DOM implementation supports modification of the document, the "
689696
":class:`NodeList` implementation must also support the "
690697
":meth:`~object.__setitem__` and :meth:`~object.__delitem__` methods."
691698
msgstr ""
699+
"如果一个 DOM 实现支持文档的修改,则 :class:`NodeList` 实现还必须支持 :meth:`~object.__setitem__` 和"
700+
" :meth:`~object.__delitem__` 方法。"
692701

693702
#: ../../library/xml.dom.rst:443
694703
msgid "DocumentType Objects"
@@ -704,6 +713,10 @@ msgid ""
704713
"for the document, the document's :attr:`doctype` attribute will be set to "
705714
"``None`` instead of an instance of this interface."
706715
msgstr ""
716+
"有关一个文档所声明的标注和实体的信息(包括解析器所使用并能提供信息的外部子集)可以从 :class:`DocumentType` 对象获取。 文档的 "
717+
":class:`DocumentType` 可从 :class:`Document` 对象的 :attr:`doctype` "
718+
"属性中获取;如果一个文档没有 ``DOCTYPE`` 声明,则该文档的 :attr:`doctype` 属性将被设为 ``None`` "
719+
"而非此接口的一个实例。"
707720

708721
#: ../../library/xml.dom.rst:453
709722
msgid ""

0 commit comments

Comments
 (0)