Skip to content

Commit 23d682c

Browse files
[po] auto sync
1 parent 6d4068e commit 23d682c

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

c-api/intro.po

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,8 @@ msgid ""
680680
"that was just raised, and lose important information about the exact cause "
681681
"of the error."
682682
msgstr ""
683+
"作为一般的原则,一个调用另一个函数来执行某些任务的函数应当检查被调用的函数是否引发了异常,并在引发异常时将异常状态传递给其调用方。 "
684+
"它应当丢弃它所拥有的任何对象引用,并返回一个错误标示,但它 *不应* 设置另一个异常 --- 那会覆盖刚引发的异常,并丢失有关错误确切原因的重要信息。"
683685

684686
#: ../../c-api/intro.rst:563
685687
msgid ""
@@ -689,6 +691,9 @@ msgid ""
689691
" following example function shows some error cleanup. First, to remind you "
690692
"why you like Python, we show the equivalent Python code::"
691693
msgstr ""
694+
"一个检测异常并传递它们的简单例子在上面的 :c:func:`sum_sequence` 示例中进行了演示。 "
695+
"这个例子恰好在检测到错误时不需要清理所拥有的任何引用。 下面的示例函数演示了一些错误清理操作。 首先,为了向你提示 Python "
696+
"的优势,我们展示了等效的 Python 代码::"
692697

693698
#: ../../c-api/intro.rst:578
694699
msgid "Here is the corresponding C code, in all its glory::"
@@ -706,6 +711,11 @@ msgid ""
706711
"likewise, the proposed return value is initialized to ``-1`` (failure) and "
707712
"only set to success after the final call made is successful."
708713
msgstr ""
714+
"这个例子代表了 C 语言中 ``goto`` 语句一种受到认可的用法! 它说明了如何使用 "
715+
":c:func:`PyErr_ExceptionMatches` 和 :c:func:`PyErr_Clear` 来处理特定的异常,以及如何使用 "
716+
":c:func:`Py_XDECREF` 来处理可能为 ``NULL`` 的自有引用(注意名称中的 "
717+
"``'X'``;:c:func:`Py_DECREF` 在遇到 ``NULL`` 引用时将会崩溃)。 重要的一点在于用来保存自有引用的变量要被初始化为 "
718+
"``NULL`` 才能发挥作用;类似地,建议的返回值也要被初始化为 ``-1`` (失败) 并且只有在最终执行的调用成功后才会被设置为成功。"
709719

710720
#: ../../c-api/intro.rst:644
711721
msgid "Embedding Python"
@@ -719,6 +729,8 @@ msgid ""
719729
" the interpreter can only be used after the interpreter has been "
720730
"initialized."
721731
msgstr ""
732+
"只有 Python 解释器的嵌入方(相对于扩展编写者而言)才需要担心的一项重要任务是它的初始化,可能还有它的最终化。 "
733+
"解释器的大多数功能只有在解释器被初始化之后才能被使用。"
722734

723735
#: ../../c-api/intro.rst:659
724736
msgid ""

distutils/builtdist.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ msgstr ""
710710

711711
#: ../../distutils/builtdist.rst:354
712712
msgid "Cross-compiling on Windows"
713-
msgstr ""
713+
msgstr "在 Windows 上的交叉编译"
714714

715715
#: ../../distutils/builtdist.rst:356
716716
msgid ""
@@ -796,7 +796,7 @@ msgstr ""
796796
msgid ""
797797
"Some functions especially useful in this context are available as additional"
798798
" built-in functions in the installation script."
799-
msgstr ""
799+
msgstr "一些在此上下文中特别有用的功能在安装脚本中作为附加内置函数被提供。"
800800

801801
#: ../../distutils/builtdist.rst:414
802802
msgid ""

library/sysconfig.po

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Translators:
77
# ppcfish <ppcfish@gmail.com>, 2020
88
# Dai Xu <daixu61@hotmail.com>, 2022
9+
# Freesand Leo <yuqinju@163.com>, 2022
910
#
1011
#, fuzzy
1112
msgid ""
@@ -14,7 +15,7 @@ msgstr ""
1415
"Report-Msgid-Bugs-To: \n"
1516
"POT-Creation-Date: 2021-01-01 16:06+0000\n"
1617
"PO-Revision-Date: 2020-05-30 12:11+0000\n"
17-
"Last-Translator: Dai Xu <daixu61@hotmail.com>, 2022\n"
18+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2022\n"
1819
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1920
"MIME-Version: 1.0\n"
2021
"Content-Type: text/plain; charset=UTF-8\n"
@@ -62,19 +63,19 @@ msgstr ""
6263

6364
#: ../../library/sysconfig.rst:33
6465
msgid "Notice that on Windows, it's a much smaller set."
65-
msgstr ""
66+
msgstr "请注意在 Windows 上,这是一个小得多的集合。"
6667

6768
#: ../../library/sysconfig.rst:37
6869
msgid ""
6970
"With no arguments, return a dictionary of all configuration variables "
7071
"relevant for the current platform."
71-
msgstr ""
72+
msgstr "不带参数时,返回一个与当前平台相关的所有配置变量的字典。"
7273

7374
#: ../../library/sysconfig.rst:40
7475
msgid ""
7576
"With arguments, return a list of values that result from looking up each "
7677
"argument in the configuration variable dictionary."
77-
msgstr ""
78+
msgstr "带参数时,返回一个由在配置变量字典中查找每个参数的结果的值组成的列表。"
7879

7980
#: ../../library/sysconfig.rst:43
8081
msgid "For each argument, if the value is not found, return ``None``."

0 commit comments

Comments
 (0)