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

Skip to content

Commit 0f7b21d

Browse files
[po] auto sync
1 parent e7f32a5 commit 0f7b21d

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

library/os.path.po

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -528,34 +528,36 @@ msgstr "在 Windows 上,本方法将路径拆分为驱动器/UNC 根节点和
528528
msgid ""
529529
"If the path contains a drive letter, drive will contain everything up to and"
530530
" including the colon::"
531-
msgstr ""
531+
msgstr "如果路径 path 包含盘符,则 drive 将包含冒号之前的所有内容包括冒号本身::"
532532

533533
#: ../../library/os.path.rst:466
534534
msgid ""
535535
"If the path contains a UNC path, drive will contain the host name and share,"
536536
" up to but not including the fourth separator::"
537-
msgstr ""
537+
msgstr "如果路径 path 包含 UNC 路径,则 drive 将包含主机名和 share,直至第四个分隔符但不包括该分隔符::"
538538

539539
#: ../../library/os.path.rst:478
540540
msgid ""
541541
"Split the pathname *path* into a pair ``(root, ext)`` such that ``root + "
542542
"ext == path``, and the extension, *ext*, is empty or begins with a period "
543543
"and contains at most one period."
544544
msgstr ""
545+
"将路径名称 *path* 拆分为 ``(root, ext)`` 对使得 ``root + ext == path``,并且扩展名 *ext* "
546+
"为空或以句点打头并最多只包含一个句点。"
545547

546548
#: ../../library/os.path.rst:482
547549
msgid "If the path contains no extension, *ext* will be ``''``::"
548-
msgstr ""
550+
msgstr "如果路径 path 不包含扩展名,则 *ext* 将为 ``''``::"
549551

550552
#: ../../library/os.path.rst:487
551553
msgid ""
552554
"If the path contains an extension, then *ext* will be set to this extension,"
553555
" including the leading period. Note that previous periods will be ignored::"
554-
msgstr ""
556+
msgstr "如果路径 path 包含扩展名,则 *ext* 将被设为该扩展名,包括打头的句点。 请注意在其之前的句点将被忽略::"
555557

556558
#: ../../library/os.path.rst:493
557559
msgid "Leading periods on the basename are ignored::"
558-
msgstr ""
560+
msgstr "基本名中打头的句点会被忽略::"
559561

560562
#: ../../library/os.path.rst:504
561563
msgid ""

library/pyexpat.po

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ msgid ""
9595
"(Latin1), and ASCII. If *encoding* [1]_ is given it will override the "
9696
"implicit or explicit encoding of the document."
9797
msgstr ""
98+
"创建并返回一个新的 :class:`xmlparser` 对象。 如果指定了 *encoding*,它必须为指定 XML "
99+
"数据所使用的编码格式名称的字符串。 Expat 支持的编码格式没有 Python 那样多,而且它的编码格式库也不能被扩展;它支持 UTF-8, "
100+
"UTF-16, ISO-8859-1 (Latin1) 和 ASCII。 如果给出了 *encoding* [1]_ "
101+
"则它将覆盖隐式或显式指定的文档编码格式。"
98102

99103
#: ../../library/pyexpat.rst:76
100104
msgid ""
@@ -110,18 +114,24 @@ msgid ""
110114
"zero byte (``chr(0)``) then the namespace URI and the local part will be "
111115
"concatenated without any separator."
112116
msgstr ""
117+
"可以选择让 Expat 为你做 XML 命名空间处理,这是通过提供 *namespace_separator* 值来启用的。 "
118+
"该值必须是一个单字符的字符串;如果字符串的长度不合法则将引发 :exc:`ValueError` (``None`` 被视为等同于省略)。 "
119+
"当命名空间处理被启用时,属于特定命名空间的元素类型名称和属性名称将被展开。 传递给The element name passed to the "
120+
"元素处理句柄 :attr:`StartElementHandler` 和 :attr:`EndElementHandler` 的元素名称将为命名空间 "
121+
"URI,命名空间分隔符和名称的本地部分的拼接。 如果命名空间分隔符是一个零字节 (``chr(0)``) 则命名空间 URI "
122+
"和本地部分将被直接拼接而不带任何分隔符。"
113123

114124
#: ../../library/pyexpat.rst:88
115125
msgid ""
116126
"For example, if *namespace_separator* is set to a space character (``' '``) "
117127
"and the following document is parsed:"
118-
msgstr ""
128+
msgstr "举例来说,如果 *namespace_separator* 被设为空格符 (``' '``) 并对以下文档进行解析:"
119129

120130
#: ../../library/pyexpat.rst:100
121131
msgid ""
122132
":attr:`StartElementHandler` will receive the following strings for each "
123133
"element::"
124-
msgstr ""
134+
msgstr ":attr:`StartElementHandler` 将为每个元素获取以下字符串::"
125135

126136
#: ../../library/pyexpat.rst:107
127137
msgid ""
@@ -130,6 +140,8 @@ msgid ""
130140
"document. Call ``ParserCreate`` for each document to provide unique parser "
131141
"instances."
132142
msgstr ""
143+
"由于 :mod:`pyexpat` 所使用的 ``Expat`` 库的限制,被返回的 :class:`xmlparser` 实例只能被用来解析单个 "
144+
"XML 文档。 请为每个文档调用 ``ParserCreate`` 来提供单独的解析器实例。"
133145

134146
#: ../../library/pyexpat.rst:115
135147
msgid "`The Expat XML Parser <http://www.libexpat.org/>`_"

0 commit comments

Comments
 (0)