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

Skip to content

Commit edbd2fb

Browse files
[po] auto sync
1 parent c4c67e1 commit edbd2fb

38 files changed

Lines changed: 160 additions & 152 deletions

bugs.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ msgid ""
6161
"tracker>`. If you have a suggestion on how to fix it, include that as well."
6262
msgstr ""
6363
"如果您在本文档中发现了错误并打算帮助我们改进,请将错误提交到 :ref:`追踪系统 <using-the-tracker>`。 "
64-
"如果您有相应的修正建议,请一并提交。 (译者注:如果是中文文档翻译相关的错误,请务必提交到 https://github.com/python"
65-
"/python-docs-zh-cn/issues。如果将翻译问题反馈到了其他地方,可能会因为语言不通而不能及时处理。)"
64+
"如果您有相应的修正建议,请一并提交。 (译者注:如果是中文文档翻译相关的错误,请务必提交到 "
65+
"https://github.com/python/python-docs-zh-"
66+
"cn/issues。如果将翻译问题反馈到了其他地方,可能会因为语言不通而不能及时处理。)"
6667

6768
#: ../../bugs.rst:22
6869
msgid ""

c-api/init.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -933,9 +933,9 @@ msgid ""
933933
"process forks only the thread that issued the fork will exist. That also "
934934
"means any locks held by other threads will never be released. Python solves "
935935
"this for :func:`os.fork` by acquiring the locks it uses internally before "
936-
"the fork, and releasing them afterwards. In addition, it resets any :ref"
937-
":`lock-objects` in the child. When extending or embedding Python, there is "
938-
"no way to inform Python of additional (non-Python) locks that need to be "
936+
"the fork, and releasing them afterwards. In addition, it resets any "
937+
":ref:`lock-objects` in the child. When extending or embedding Python, there "
938+
"is no way to inform Python of additional (non-Python) locks that need to be "
939939
"acquired before or reset after a fork. OS facilities such as "
940940
":c:func:`pthread_atfork` would need to be used to accomplish the same thing."
941941
" Additionally, when extending or embedding Python, calling :c:func:`fork` "

c-api/typeobj.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,9 @@ msgstr ""
591591
msgid ""
592592
"This bit is set when the object supports garbage collection. If this bit is"
593593
" set, instances must be created using :c:func:`PyObject_GC_New` and "
594-
"destroyed using :c:func:`PyObject_GC_Del`. More information in section :ref"
595-
":`supporting-cycle-detection`. This bit also implies that the GC-related "
596-
"fields :c:member:`~PyTypeObject.tp_traverse` and "
594+
"destroyed using :c:func:`PyObject_GC_Del`. More information in section "
595+
":ref:`supporting-cycle-detection`. This bit also implies that the GC-"
596+
"related fields :c:member:`~PyTypeObject.tp_traverse` and "
597597
":c:member:`~PyTypeObject.tp_clear` are present in the type object."
598598
msgstr ""
599599

distutils/apiref.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ msgstr "*maintainer*"
136136
#: ../../distutils/apiref.rst:51
137137
msgid ""
138138
"The name of the current maintainer, if different from the author. Note that "
139-
"if the maintainer is provided, distutils will use it as the author in :file"
140-
":`PKG-INFO`"
139+
"if the maintainer is provided, distutils will use it as the author in "
140+
":file:`PKG-INFO`"
141141
msgstr ""
142142

143143
#: ../../distutils/apiref.rst:58

extending/extending.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,9 @@ msgid ""
10351035
" available."
10361036
msgstr ""
10371037
"循环探测器可以检测垃圾循环并回收。 :mod:`gc` 模块提供了方法运行探测器 ( :func:`~gc.collect` 函数) "
1038-
",而且可以在运行时配置禁用探测器。循环探测器被当作可选组件,默认是包含的,也可以在构建时禁用,在Unix平台(包括Mac OS X)使用 :option"
1039-
":`!--without-cycle-gc` 选项到 :program:`configure` 脚本。如果循环探测器被禁用, :mod:`gc` "
1040-
"模块就不可用了。"
1038+
",而且可以在运行时配置禁用探测器。循环探测器被当作可选组件,默认是包含的,也可以在构建时禁用,在Unix平台(包括Mac OS X)使用 "
1039+
":option:`!--without-cycle-gc` 选项到 :program:`configure` 脚本。如果循环探测器被禁用, "
1040+
":mod:`gc` 模块就不可用了。"
10411041

10421042
#: ../../extending/extending.rst:917
10431043
msgid "Reference Counting in Python"

extending/index.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ msgid ""
4848
" documents the existing object types, functions and modules (both built-in "
4949
"and written in Python) that give the language its wide application range."
5050
msgstr ""
51-
"本文档假设你具备有关 Python 的基本知识。有关该语言的非正式介绍,请参阅 :ref:`tutorial-index` 。 :ref"
52-
":`reference-index` 给出了更正式的语言定义。 :ref:`library-index` 包含现有的对象类型、函数和模块(内置和用 "
53-
"Python 编写)的文档,使语言具有广泛的应用范围。"
51+
"本文档假设你具备有关 Python 的基本知识。有关该语言的非正式介绍,请参阅 :ref:`tutorial-index` 。 "
52+
":ref:`reference-index` 给出了更正式的语言定义。 :ref:`library-index` "
53+
"包含现有的对象类型、函数和模块(内置和用 Python 编写)的文档,使语言具有广泛的应用范围。"
5454

5555
#: ../../extending/index.rst:21
5656
msgid ""

faq/programming.po

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ msgstr ""
165165

166166
#: ../../faq/programming.rst:77
167167
msgid ""
168-
"Static type checkers such as `Mypy <http://mypy-lang.org/>`_, `Pyre <https"
169-
"://pyre-check.org/>`_, and `Pytype <https://github.com/google/pytype>`_ can "
170-
"check type hints in Python source code."
168+
"Static type checkers such as `Mypy <http://mypy-lang.org/>`_, `Pyre "
169+
"<https://pyre-check.org/>`_, and `Pytype "
170+
"<https://github.com/google/pytype>`_ can check type hints in Python source "
171+
"code."
171172
msgstr ""
172173
"静态类型检查器,例如 `Mypy <http://mypy-lang.org/>`_ 、 `Pyre <https://pyre-"
173174
"check.org/>`_ 和 `Pytype <https://github.com/google/pytype>`_ "

glossary.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,8 +2072,8 @@ msgstr ""
20722072

20732073
#: ../../glossary.rst:1053
20742074
msgid ""
2075-
"See also :term:`binary file` for a file object able to read and write :term"
2076-
":`bytes-like objects <bytes-like object>`."
2075+
"See also :term:`binary file` for a file object able to read and write "
2076+
":term:`bytes-like objects <bytes-like object>`."
20772077
msgstr ""
20782078
"另请参看 :term:`binary file` 了解能够读写 :term:`字节类对象 <bytes-like object>` 的文件对象。"
20792079

howto/logging-cookbook.po

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ msgid ""
251251
"handler classes, which would eat up one thread per handler for no particular"
252252
" benefit."
253253
msgstr ""
254-
"使用一个单独的类 :class:`QueueListener` "
255-
"优点是可以使用同一个实例去服务于多个``QueueHandlers``。这样会更节省资源,否则每个处理程序都占用一个线程没有任何益处。"
254+
"使用一个单独的类 "
255+
":class:`QueueListener` 优点是可以使用同一个实例去服务于多个``QueueHandlers``。这样会更节省资源,否则每个处理程序都占用一个线程没有任何益处。"
256256

257257
#: ../../howto/logging-cookbook.rst:370
258258
msgid "An example of using these two classes follows (imports omitted)::"
@@ -273,8 +273,9 @@ msgid ""
273273
"of each message with the handler's level, and only passes a message to a "
274274
"handler if it's appropriate to do so."
275275
msgstr ""
276-
"在Python 3.5之前,:class:`QueueListener` "
277-
"总是把从队列中接收的每个消息都传给它初始化的日志处理程序。(这是因为它会假设过滤级别总是在队列的另一侧去设置的。) 从Python "
276+
"在Python "
277+
"3.5之前,:class:`QueueListener` 总是把从队列中接收的每个消息都传给它初始化的日志处理程序。(这是因为它会假设过滤级别总是在队列的另一侧去设置的。)"
278+
" 从Python "
278279
"3.5开始,可以通过在监听器构造函数中添加一个参数``respect_handler_level=True``改变这种情况。当这样设置时,监听器会比较每条消息的等级和日志处理器中设置的等级,只把需要传递的消息传给对应的日志处理器。"
279280

280281
#: ../../howto/logging-cookbook.rst:407
@@ -1293,9 +1294,9 @@ msgstr "自定义信息对象的使用"
12931294
#: ../../howto/logging-cookbook.rst:2014
12941295
msgid ""
12951296
"There is another, perhaps simpler way that you can use {}- and $- formatting"
1296-
" to construct your individual log messages. You may recall (from :ref"
1297-
":`arbitrary-object-messages`) that when logging you can use an arbitrary "
1298-
"object as a message format string, and that the logging package will call "
1297+
" to construct your individual log messages. You may recall (from "
1298+
":ref:`arbitrary-object-messages`) that when logging you can use an arbitrary"
1299+
" object as a message format string, and that the logging package will call "
12991300
":func:`str` on that object to get the actual format string. Consider the "
13001301
"following two classes::"
13011302
msgstr ""
@@ -1402,8 +1403,8 @@ msgid ""
14021403
"configuration, and see the other cookbook recipe :ref:`custom-handlers` "
14031404
"above."
14041405
msgstr ""
1405-
"与过滤器一样,上述技术还可用于配置自定义 handler 和格式化对象。有关如何在日志配置中使用用户自定义对象的更多信息,请参阅 :ref"
1406-
":`logging-config-dict-userdef`,以及上述 :ref:`custom-handlers` 的其他指南。 "
1406+
"与过滤器一样,上述技术还可用于配置自定义 handler 和格式化对象。有关如何在日志配置中使用用户自定义对象的更多信息,请参阅 "
1407+
":ref:`logging-config-dict-userdef`,以及上述 :ref:`custom-handlers` 的其他指南。 "
14071408

14081409
#: ../../howto/logging-cookbook.rst:2165
14091410
msgid "Customized exception formatting"

howto/logging.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ msgid ""
334334
"simple usage pattern, you won't know, by looking in the log file, *where* in"
335335
" your application your messages came from, apart from looking at the event "
336336
"description. If you want to track the location of your messages, you'll need"
337-
" to refer to the documentation beyond the tutorial level -- see :ref"
338-
":`logging-advanced-tutorial`."
337+
" to refer to the documentation beyond the tutorial level -- see "
338+
":ref:`logging-advanced-tutorial`."
339339
msgstr ""
340340
"这是你期待看到的。 你可以使用 *mylib.py* 中的模式将此概括为多个模块。 "
341341
"请注意,对于这种简单的使用模式,除了查看事件描述之外,你不能通过查看日志文件来了解应用程序中消息的 *来源* 。 "
@@ -853,8 +853,8 @@ msgid ""
853853
"arguments), while if the style is '$' then the message format string should "
854854
"conform to what is expected by :meth:`string.Template.substitute`."
855855
msgstr ""
856-
"如果 ``style`` 是 '%',则消息格式字符串使用 ``%(<dictionary key>)s`` 样式字符串替换;可能的键值在 :ref"
857-
":`logrecord-attributes` 中。 如果样式为 '{',则假定消息格式字符串与 :meth:`str.format` "
856+
"如果 ``style`` 是 '%',则消息格式字符串使用 ``%(<dictionary key>)s`` 样式字符串替换;可能的键值在 "
857+
":ref:`logrecord-attributes` 中。 如果样式为 '{',则假定消息格式字符串与 :meth:`str.format` "
858858
"(使用关键字参数)兼容,而如果样式为 '$' ,则消息格式字符串应符合 :meth:`string.Template.substitute` 。"
859859

860860
#: ../../howto/logging.rst:555

0 commit comments

Comments
 (0)