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

Skip to content

Commit 1691610

Browse files
committed
[po] auto sync bot
1 parent 8384577 commit 1691610

2 files changed

Lines changed: 32 additions & 18 deletions

File tree

glossary.po

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ msgid ""
534534
"transformation using the ``@wrapper`` syntax. Common examples for "
535535
"decorators are :func:`classmethod` and :func:`staticmethod`."
536536
msgstr ""
537-
"返回值为另一个函数的函数,通常使用 ``@wrapper`` 语法形式来进行函数变换。装饰器的常见例子包括 :func:`classmethod` 和 "
538-
":func:`staticmethod`。"
537+
"返回值为另一个函数的函数,通常使用 ``@wrapper`` 语法形式来进行函数变换。 装饰器的常见例子包括 :func:`classmethod` 和"
538+
" :func:`staticmethod`。"
539539

540540
#: ../../glossary.rst:261
541541
msgid ""
@@ -788,7 +788,7 @@ msgid ""
788788
":ref:`function` section."
789789
msgstr ""
790790
"可以向调用者返回某个值的一组语句。还可以向其传入零个或多个 :term:`参数 <argument>` 并在函数体执行中被使用。另见 "
791-
":term:`parameter`, :term:`method` 和 the :ref:`function` 等节。"
791+
":term:`parameter`, :term:`method` 和 :ref:`function` 等节。"
792792

793793
#: ../../glossary.rst:387
794794
msgid "function annotation"
@@ -974,7 +974,7 @@ msgid ""
974974
"A bytecode cache file that uses the hash rather than the last-modified time "
975975
"of the corresponding source file to determine its validity. See :ref:`pyc-"
976976
"invalidation`."
977-
msgstr "使用对应源文件的哈希值而非最后修改时间来确定其有效性的字节码缓存文件。参见 :ref:`pyc-invalidation`。"
977+
msgstr "使用对应源文件的哈希值而非最后修改时间来确定其有效性的字节码缓存文件。 参见 :ref:`pyc-invalidation`。"
978978

979979
#: ../../glossary.rst:492
980980
msgid "hashable"
@@ -1213,9 +1213,10 @@ msgid ""
12131213
" :meth:`list.sort`, :func:`heapq.merge`, :func:`heapq.nsmallest`, "
12141214
":func:`heapq.nlargest`, and :func:`itertools.groupby`."
12151215
msgstr ""
1216-
"Python 中有许多工具都允许用键函数来控制元素的排位或分组方式。其中包括 "
1217-
":func:`min`、:func:`max`、:func:`sorted`、:meth:`list.sort`、:func:`heapq.merge`、:func:`heapq.nsmallest`、:func:`heapq.nlargest`"
1218-
" 以及 :func:`itertools.groupby`。"
1216+
"Python 中有许多工具都允许用键函数来控制元素的排位或分组方式。其中包括 :func:`min`, :func:`max`, "
1217+
":func:`sorted`, :meth:`list.sort`, :func:`heapq.merge`, "
1218+
":func:`heapq.nsmallest`, :func:`heapq.nlargest` 以及 "
1219+
":func:`itertools.groupby`。"
12191220

12201221
#: ../../glossary.rst:614
12211222
msgid ""
@@ -1338,9 +1339,9 @@ msgid ""
13381339
msgstr ""
13391340
"一种支持任意键查找并实现了 :class:`~collections.abc.Mapping` 或 "
13401341
":class:`~collections.abc.MutableMapping` :ref:`抽象基类 <collections-abstract-"
1341-
"base-classes>` 中所规定方法的容器对象。此类对象的例子包括 "
1342-
":class:`dict`、:class:`collections.defaultdict`:class:`collections.OrderedDict`"
1343-
" 以及 :class:`collections.Counter`。"
1342+
"base-classes>` 中所规定方法的容器对象。 此类对象的例子包括 :class:`dict`, "
1343+
":class:`collections.defaultdict`, :class:`collections.OrderedDict` 以及 "
1344+
":class:`collections.Counter`。"
13441345

13451346
#: ../../glossary.rst:669
13461347
msgid "meta path finder"
@@ -1956,9 +1957,9 @@ msgid ""
19561957
"and :meth:`__reversed__`. Types that implement this expanded interface can "
19571958
"be registered explicitly using :func:`~abc.register`."
19581959
msgstr ""
1959-
" :class:`collections.abc.Sequence` 抽象基类定义了一个更丰富的接口,它超越了 :meth:`__getitem__` "
1960-
" :meth:`__len__` ,添加了 :meth:`count`:meth:`index`:meth:`__contains__` "
1961-
":meth:`__reversed__` 。可以使用 :func:`~abc.register` 显式注册实现此扩展接口的类型。"
1960+
":class:`collections.abc.Sequence` 抽象基类定义了一个更丰富的接口,它超越了 :meth:`__getitem__` "
1961+
" :meth:`__len__`,添加了 :meth:`count`, :meth:`index`, :meth:`__contains__` "
1962+
":meth:`__reversed__` 。 可以使用 :func:`~abc.register` 显式注册实现此扩展接口的类型。"
19621963

19631964
#: ../../glossary.rst:991
19641965
msgid "single dispatch"

library/atexit.po

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
6+
# Translators:
7+
# cissoid <[email protected]>, 2018
8+
#
69
#, fuzzy
710
msgid ""
811
msgstr ""
912
"Project-Id-Version: Python 3.7\n"
1013
"Report-Msgid-Bugs-To: \n"
1114
"POT-Creation-Date: 2018-06-30 05:56+0900\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
15+
"PO-Revision-Date: 2017-02-16 17:50+0000\n"
16+
"Last-Translator: cissoid <[email protected]>, 2018\n"
1317
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1418
"MIME-Version: 1.0\n"
1519
"Content-Type: text/plain; charset=UTF-8\n"
@@ -19,7 +23,7 @@ msgstr ""
1923

2024
#: ../../library/atexit.rst:2
2125
msgid ":mod:`atexit` --- Exit handlers"
22-
msgstr ""
26+
msgstr ":mod:`atexit` --- 退出处理器"
2327

2428
#: ../../library/atexit.rst:12
2529
msgid ""
@@ -30,13 +34,18 @@ msgid ""
3034
"``B``, and ``C``, at interpreter termination time they will be run in the "
3135
"order ``C``, ``B``, ``A``."
3236
msgstr ""
37+
":mod:`atexit` 模块定义了清理函数的注册和反注册函数. 被注册的函数会在解释器正常终止时执行. :mod:`atexit` "
38+
"会按照注册顺序的*逆序*执行; 如果你注册了 ``A``, ``B`` 和 ``C``, 那么在解释器终止时会依序执行 ``C``, ``B``, "
39+
"``A``."
3340

3441
#: ../../library/atexit.rst:19
3542
msgid ""
3643
"**Note:** The functions registered via this module are not called when the "
3744
"program is killed by a signal not handled by Python, when a Python fatal "
3845
"internal error is detected, or when :func:`os._exit` is called."
3946
msgstr ""
47+
"**注意:** 通过该模块注册的函数, 在程序被未被 Python 捕获的信号杀死时并不会执行, 在检测到 Python 内部致命错误以及调用了 "
48+
":func:`os._exit` 时也不会执行."
4049

4150
#: ../../library/atexit.rst:23
4251
msgid ""
@@ -51,6 +60,8 @@ msgid ""
5160
":func:`register`. It is possible to register the same function and "
5261
"arguments more than once."
5362
msgstr ""
63+
"将 *func* 注册为终止时执行的函数. 任何传给 *func* 的可选的参数都应当作为参数传给 :func:`register`. "
64+
"可以多次注册同样的函数及参数."
5465

5566
#: ../../library/atexit.rst:34
5667
msgid ""
@@ -60,6 +71,8 @@ msgid ""
6071
"modules will normally be imported before higher level modules and thus must "
6172
"be cleaned up later."
6273
msgstr ""
74+
"在正常的程序终止时 (举例来说, 当调用了 :func:`sys.exit` 或是主模块的执行完成时), 所有注册过的函数都会以后进先出的顺序执行. "
75+
"这样做是假定更底层的模块通常会比高层模块更早引入, 因此需要更晚清理."
6376

6477
#: ../../library/atexit.rst:40
6578
msgid ""
@@ -96,7 +109,7 @@ msgstr ""
96109

97110
#: ../../library/atexit.rst:68
98111
msgid ":mod:`atexit` Example"
99-
msgstr ""
112+
msgstr ":mod:`atexit` 示例"
100113

101114
#: ../../library/atexit.rst:70
102115
msgid ""
@@ -114,8 +127,8 @@ msgstr ""
114127

115128
#: ../../library/atexit.rst:104
116129
msgid "Usage as a :term:`decorator`::"
117-
msgstr ""
130+
msgstr "作为 :term:`decorator`: 使用:"
118131

119132
#: ../../library/atexit.rst:112
120133
msgid "This only works with functions that can be called without arguments."
121-
msgstr ""
134+
msgstr "只有在函数不需要任何参数调用时才能工作."

0 commit comments

Comments
 (0)