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

Skip to content

Commit 6497b61

Browse files
[po] auto sync
1 parent 1f57d38 commit 6497b61

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

library/contextvars.po

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# ww song <[email protected]>, 2018
8+
# zeroswan <[email protected]>, 2020
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2020-05-31 09:25+0000\n"
1516
"PO-Revision-Date: 2018-06-29 21:06+0000\n"
16-
"Last-Translator: ww song <sww4718168@gmail.com>, 2018\n"
17+
"Last-Translator: zeroswan <weditor@163.com>, 2020\n"
1718
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -23,7 +24,7 @@ msgstr ""
2324

2425
#: ../../library/contextvars.rst:2
2526
msgid ":mod:`contextvars` --- Context Variables"
26-
msgstr ""
27+
msgstr ":mod:`contextvars` 上下文变量"
2728

2829
#: ../../library/contextvars.rst:11
2930
msgid ""
@@ -33,37 +34,41 @@ msgid ""
3334
"and the :class:`~contextvars.Context` class should be used to manage the "
3435
"current context in asynchronous frameworks."
3536
msgstr ""
37+
"本模块提供了相关API用于管理、存储和访问上下文相关的状态。 :class:`~contextvars.ContextVar` 类用于声明 "
38+
"*上下文变量* 并与其一起使用。函数 :func:`~contextvars.copy_context`  和类 "
39+
":class:`~contextvars.Context` 用于管理当前上下文和异步框架中。"
3640

3741
#: ../../library/contextvars.rst:17
3842
msgid ""
3943
"Context managers that have state should use Context Variables instead of "
4044
":func:`threading.local()` to prevent their state from bleeding to other code"
4145
" unexpectedly, when used in concurrent code."
4246
msgstr ""
47+
"在多并发环境中,有状态上下文管理器应该使用上下文变量,而不是 :func:`threading.local()` 来防止他们的状态意外泄露到其他代码。"
4348

4449
#: ../../library/contextvars.rst:21
4550
msgid "See also :pep:`567` for additional details."
46-
msgstr ""
51+
msgstr "更多信息参见 :pep:`567` 。"
4752

4853
#: ../../library/contextvars.rst:27
4954
msgid "Context Variables"
50-
msgstr ""
55+
msgstr "上下文变量"
5156

5257
#: ../../library/contextvars.rst:31
5358
msgid "This class is used to declare a new Context Variable, e.g.::"
54-
msgstr ""
59+
msgstr "此类用于声明一个新的上下文变量,如::"
5560

5661
#: ../../library/contextvars.rst:35
5762
msgid ""
5863
"The required *name* parameter is used for introspection and debug purposes."
59-
msgstr ""
64+
msgstr "*name* 参数用于内省和调试,必需。"
6065

6166
#: ../../library/contextvars.rst:38
6267
msgid ""
6368
"The optional keyword-only *default* parameter is returned by "
6469
":meth:`ContextVar.get` when no value for the variable is found in the "
6570
"current context."
66-
msgstr ""
71+
msgstr "调用 :meth:`ContextVar.get` 时,如果上下文中没有找到此变量的值,则返回可选的仅命名参数 *default* 。"
6772

6873
#: ../../library/contextvars.rst:42
6974
msgid ""

library/multiprocessing.shared_memory.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#
66
# Translators:
77
# Chi Xu <[email protected]>, 2019
8-
# zeroswan <[email protected]>, 2020
98
# Freesand Leo <[email protected]>, 2020
9+
# zeroswan <[email protected]>, 2020
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2020-05-31 09:25+0000\n"
1717
"PO-Revision-Date: 2019-09-01 14:31+0000\n"
18-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
18+
"Last-Translator: zeroswan <weditor@163.com>, 2020\n"
1919
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -164,7 +164,7 @@ msgid ""
164164
":class:`SharedMemory` class with `NumPy arrays <https://www.numpy.org/>`_, "
165165
"accessing the same ``numpy.ndarray`` from two distinct Python shells:"
166166
msgstr ""
167-
"以下示例展示了一个现实中的例子,使用 :class:`SharedMemory` 类和`NumPy arrays "
167+
"以下示例展示了一个现实中的例子,使用 :class:`SharedMemory` 类和 `NumPy arrays "
168168
"<https://www.numpy.org/>`_ 结合, 从两个 Python shell 中访问同一个 ``numpy.ndarray`` :"
169169

170170
#: ../../library/multiprocessing.shared_memory.rst:181

0 commit comments

Comments
 (0)