@@ -186,19 +186,24 @@ msgid ""
186186":func:`ExternalEntityRefHandler`, :func:`NotationDeclHandler`, and "
187187":func:`UnparsedEntityDeclHandler` functions."
188188msgstr ""
189+ "设置要用于解析声明中的系统标识符的相对 URI 的基准。 解析相对标识符的任务会留给应用程序进行:这个值将作为 *base* 参数传递给 "
190+ ":func:`ExternalEntityRefHandler`, :func:`NotationDeclHandler` 和 "
191+ ":func:`UnparsedEntityDeclHandler` 函数。"
189192
190193#: ../../library/pyexpat.rst:154
191194msgid ""
192195"Returns a string containing the base set by a previous call to "
193196":meth:`SetBase`, or ``None`` if :meth:`SetBase` hasn't been called."
194197msgstr ""
198+ "返回包含之前调用 :meth:`SetBase` 所设置的基准位置的字符串,或者如果未调用 :meth:`SetBase` 则返回 ``None``。"
195199
196200#: ../../library/pyexpat.rst:160
197201msgid ""
198202"Returns the input data that generated the current event as a string. The "
199203"data is in the encoding of the entity which contains the text. When called "
200204"while an event handler is not active, the return value is ``None``."
201205msgstr ""
206+ "将生成当前事件的输入数据以字符串形式返回。 数据为包含文本的实体的编码格式。 如果被调用时未激活事件处理句柄,则返回值将为 ``None``。"
202207
203208#: ../../library/pyexpat.rst:167
204209msgid ""
@@ -209,6 +214,9 @@ msgid ""
209214"child parser is created with the :attr:`ordered_attributes` and "
210215":attr:`specified_attributes` set to the values of this parser."
211216msgstr ""
217+ "创建一个“子”解析器,可被用来解析由父解析器解析的内容所引用的外部解析实体。 *context* 形参应当是传递给 "
218+ ":meth:`ExternalEntityRefHandler` 处理函数的字符串,具体如下所述。 子解析器创建时 "
219+ ":attr:`ordered_attributes` 和 :attr:`specified_attributes` 会被设为此解析器的值。"
212220
213221#: ../../library/pyexpat.rst:176
214222msgid ""
0 commit comments