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

Skip to content

Commit 695fd98

Browse files
[po] auto sync
1 parent a3f326d commit 695fd98

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

library/xml.dom.minidom.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ msgstr ""
2424

2525
#: ../../library/xml.dom.minidom.rst:2
2626
msgid ":mod:`xml.dom.minidom` --- Minimal DOM implementation"
27-
msgstr ""
27+
msgstr ":mod:`xml.dom.minidom` --- 最小化的 DOM 实现"
2828

2929
#: ../../library/xml.dom.minidom.rst:11
3030
msgid "**Source code:** :source:`Lib/xml/dom/minidom.py`"
31-
msgstr ""
31+
msgstr "**源代码:** :source:`Lib/xml/dom/minidom.py`"
3232

3333
#: ../../library/xml.dom.minidom.rst:15
3434
msgid ""

library/xml.dom.po

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# dannyvi <[email protected]>, 2019
99
# Meng Du <[email protected]>, 2019
1010
# ppcfish <[email protected]>, 2019
11-
# Freesand Leo <[email protected]>, 2021
1211
# Jiuh-star <[email protected]>, 2021
12+
# Freesand Leo <[email protected]>, 2021
1313
#
1414
#, fuzzy
1515
msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818
"Report-Msgid-Bugs-To: \n"
1919
"POT-Creation-Date: 2021-01-01 16:02+0000\n"
2020
"PO-Revision-Date: 2019-09-01 03:21+0000\n"
21-
"Last-Translator: Jiuh-star <jiuh.star@gmail.com>, 2021\n"
21+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
2222
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2323
"MIME-Version: 1.0\n"
2424
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1386,7 +1386,7 @@ msgid ""
13861386
"This section describes the conformance requirements and relationships "
13871387
"between the Python DOM API, the W3C DOM recommendations, and the OMG IDL "
13881388
"mapping for Python."
1389-
msgstr ""
1389+
msgstr "本节描述了 Python DOM API、W3C DOM 建议以及 Python 的 OMG IDL 映射之间的一致性要求和关系。"
13901390

13911391
#: ../../library/xml.dom.rst:975
13921392
msgid "Type Mapping"
@@ -1453,6 +1453,8 @@ msgid ""
14531453
"``attribute`` declarations in much the way the Java mapping does. Mapping "
14541454
"the IDL declarations ::"
14551455
msgstr ""
1456+
"从 OMG IDL 到 Python 的映射以类似于 Java 映射的方式定义了针对 IDL ``attribute`` 声明的访问器函数。 映射以下 "
1457+
"IDL 声明 ::"
14561458

14571459
#: ../../library/xml.dom.rst:1008
14581460
msgid ""
@@ -1464,6 +1466,10 @@ msgid ""
14641466
"``object.someValue`` is *not* required to work, and may raise an "
14651467
":exc:`AttributeError`."
14661468
msgstr ""
1469+
"会产生三个访问器函数: :attr:`someValue` 的 \"get\" 方法 (:meth:`_get_someValue`),以及 "
1470+
":attr:`anotherValue` 的 \"get\"\"set\" 方法 (:meth:`_get_anotherValue` 和 "
1471+
":meth:`_set_anotherValue`)。 特别地,该映射不要求 IDL 属性像普通 Python 属性那样可访问: "
1472+
"``object.someValue`` *并非* 必须可用,并可能引发 :exc:`AttributeError`。"
14671473

14681474
#: ../../library/xml.dom.rst:1015
14691475
msgid ""
@@ -1476,6 +1482,9 @@ msgid ""
14761482
" Attributes that are declared ``readonly`` may not restrict write access in"
14771483
" all DOM implementations."
14781484
msgstr ""
1485+
"但是,Python DOM API 则 *确实* 要求普通属性访问可用。 这意味着由 Python IDL 解译器生成的典型代理有可能会不可用,如果 "
1486+
"DOM 对象是通过 CORBA 来访问则在客户端可能需要有包装对象。 虽然这确实要求为 CORBA DOM 客户端进行额外的考虑,但具有从 Python"
1487+
" 通过 CORBA 使用 DOM 经验的实现并不会认为这是个问题。 已经声明了 ``readonly`` 的属性不必在所有 DOM 实现中限制写入访问。"
14791488

14801489
#: ../../library/xml.dom.rst:1024
14811490
msgid ""
@@ -1485,6 +1494,9 @@ msgid ""
14851494
"directly from Python. \"Set\" accessors should never be provided for "
14861495
"``readonly`` attributes."
14871496
msgstr ""
1497+
"在 Python DOM API 中,访问器函数不是必须的。 如果提供,则它们应当采用由 Python IDL "
1498+
"映射所定义的形式,但这些方法会被认为不必要,因为这些属性可以从 Python 直接访问。 永远都不要为 ``readonly`` 属性提供 "
1499+
"\"set\" 访问器。"
14881500

14891501
#: ../../library/xml.dom.rst:1029
14901502
msgid ""
@@ -1493,3 +1505,5 @@ msgid ""
14931505
":meth:`getElementsByTagName`, being \"live\". The Python DOM API does not "
14941506
"require implementations to enforce such requirements."
14951507
msgstr ""
1508+
"IDL 定义没有完全体现 W3C DOM API 的要求,如特定对象的概念,又如 :meth:`getElementsByTagName` 的返回值为 "
1509+
"\"live\" 等。 Python DOM API 并不强制具体实现执行这些要求。"

0 commit comments

Comments
 (0)