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

Skip to content

Commit 8c0f2ca

Browse files
[po] auto sync
1 parent 1904eda commit 8c0f2ca

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

library/exceptions.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ msgid ""
9393
"be supplemented with an explicit cause by using :keyword:`from<raise>` with "
9494
":keyword:`raise`::"
9595
msgstr ""
96+
"当引发一个新的异常(而不是简单地使用 ``raise`` 来重新引发 当前在处理的异常)时,隐式的异常上下文可以通过使用带有 "
97+
":keyword:`raise` 的 :keyword:`from<raise>` 子句来补充一个显式的原因::"
9698

9799
#: ../../library/exceptions.rst:50
98100
msgid ""
@@ -105,6 +107,11 @@ msgid ""
105107
":exc:`AttributeError`), while leaving the old exception available in "
106108
":attr:`__context__` for introspection when debugging."
107109
msgstr ""
110+
"跟在 :keyword:`from<raise>` 之后一表达式必须为一个异常或 ``None``。 它将在所引发的异常上被设置为 "
111+
":attr:`__cause__`。 设置 :attr:`__cause__` 还会隐式地将 :attr:`__suppress_context__` "
112+
"属性设为 ``True``,这样使用 ``raise new_exc from None`` 可以有效地将旧异常替换为新异常来显示其目的 (例如将 "
113+
":exc:`KeyError` 转换为 :exc:`AttributeError`),同时让旧异常在 :attr:`__context__` "
114+
"中保持可用状态以便在调试时进行内省。"
108115

109116
#: ../../library/exceptions.rst:59
110117
msgid ""

library/xml.etree.elementtree.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,14 @@ msgid ""
682682
"partial subtrees inside of an already indented tree, pass the initial "
683683
"indentation level as *level*."
684684
msgstr ""
685+
"添加空格到子树来实现树的缩进效果。 这可以被用来生成美化打印的 XML 输出。 *tree* 可以为 Element 或 ElementTree。 "
686+
"*space* 是对应将被插入的每个缩进层级的空格字符串,默认为两个空格符。 要对已缩进的树的部分子树进行缩进,请传入初始缩进层级作为 *level*。"
685687

686688
#: ../../library/xml.etree.elementtree.rst:597
687689
msgid ""
688690
"Check if an object appears to be a valid element object. *element* is an "
689691
"element instance. Return ``True`` if this is an element object."
690-
msgstr ""
692+
msgstr "检测一个对象是否为有效的元素对象。 *element* 是一个元素实例。 如果对象是一个元素对象则返回 ``True``。"
691693

692694
#: ../../library/xml.etree.elementtree.rst:603
693695
msgid ""

tutorial/errors.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# Junkai Shao <[email protected]>, 2018
1010
# Woostundy <[email protected]>, 2018
1111
# dannyvi <[email protected]>, 2019
12-
# Freesand Leo <[email protected]>, 2021
1312
# jaystone776 <[email protected]>, 2021
13+
# Freesand Leo <[email protected]>, 2021
1414
#
1515
#, fuzzy
1616
msgid ""
@@ -19,7 +19,7 @@ msgstr ""
1919
"Report-Msgid-Bugs-To: \n"
2020
"POT-Creation-Date: 2021-04-30 06:13+0000\n"
2121
"PO-Revision-Date: 2017-02-16 23:40+0000\n"
22-
"Last-Translator: jaystone776 <1732865113@qq.com>, 2021\n"
22+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
2323
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2424
"MIME-Version: 1.0\n"
2525
"Content-Type: text/plain; charset=UTF-8\n"
@@ -296,7 +296,7 @@ msgstr "异常链"
296296
msgid ""
297297
"The :keyword:`raise` statement allows an optional :keyword:`from<raise>` "
298298
"which enables chaining exceptions. For example::"
299-
msgstr ""
299+
msgstr ":keyword:`raise` 语句允许可选的 :keyword:`from<raise>` 子句,它启用了链式异常。 例如::"
300300

301301
#: ../../tutorial/errors.rst:281
302302
msgid "This can be useful when you are transforming exceptions. For example::"

0 commit comments

Comments
 (0)