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

Skip to content

Commit f7e085d

Browse files
[po] auto sync
1 parent 2cb70a2 commit f7e085d

4 files changed

Lines changed: 36 additions & 25 deletions

File tree

library/ctypes.po

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# ppcfish <[email protected]>, 2019
1212
# ruoyu zhang <[email protected]>, 2019
1313
# kks uch <[email protected]>, 2020
14-
# zeroswan <[email protected]>, 2020
1514
# Freesand Leo <[email protected]>, 2020
15+
# zeroswan <[email protected]>, 2020
1616
#
1717
#, fuzzy
1818
msgid ""
@@ -21,7 +21,7 @@ msgstr ""
2121
"Report-Msgid-Bugs-To: \n"
2222
"POT-Creation-Date: 2020-05-31 09:25+0000\n"
2323
"PO-Revision-Date: 2017-02-16 23:05+0000\n"
24-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
24+
"Last-Translator: zeroswan <weditor@163.com>, 2020\n"
2525
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2626
"MIME-Version: 1.0\n"
2727
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1036,7 +1036,7 @@ msgid ""
10361036
"Both of these factory functions are called with the result type as first "
10371037
"argument, and the callback functions expected argument types as the "
10381038
"remaining arguments."
1039-
msgstr "这些工厂函数都是用返回值类型作为第一个参数,回掉函数的参数类型作为剩余参数。"
1039+
msgstr "这些工厂函数的第一个参数是返回值类型,回调函数的参数类型作为剩余参数。"
10401040

10411041
#: ../../library/ctypes.rst:957
10421042
msgid ""
@@ -1045,7 +1045,7 @@ msgid ""
10451045
"callback function. :c:func:`qsort` will be used to sort an array of "
10461046
"integers::"
10471047
msgstr ""
1048-
"这里展示一个使用 C 标准库函数 :c:func:`qsort`  的例子,它使用一个回掉函数对数据进行排序。 :c:func:`qsort` "
1048+
"这里展示一个使用 C 标准库函数 :c:func:`qsort`  的例子,它使用一个回调函数对数据进行排序。 :c:func:`qsort` "
10491049
"将用来给整数数组排序::"
10501050

10511051
#: ../../library/ctypes.rst:967
@@ -1096,8 +1096,8 @@ msgid ""
10961096
"are used from C code. :mod:`ctypes` doesn't, and if you don't, they may be "
10971097
"garbage collected, crashing your program when a callback is made."
10981098
msgstr ""
1099-
"请确保你维持 :func:`CFUNCTYPE` 对象的引用与它们在 C 代码中的使用期一样长。 :mod:`ctypes` "
1100-
"不会确保这一点,而如果你不这样做,它们可能会被垃圾回收,导致你的程序在执行回调函数时发生崩溃。"
1099+
"请确保你维持的 :func:`CFUNCTYPE` 对象的引用周期与它们在 C 代码中的使用期一样长。 :mod:`ctypes` "
1100+
"不会确保这一点,如果不这样做,它们可能会被垃圾回收,导致程序在执行回调函数时发生崩溃。"
11011101

11021102
#: ../../library/ctypes.rst:1043
11031103
msgid ""
@@ -1108,10 +1108,13 @@ msgid ""
11081108
"with :class:`threading.local` will *not* survive across different callbacks,"
11091109
" even when those calls are made from the same C thread."
11101110
msgstr ""
1111+
"注意,如果回调函数在Python之外的另外一个线程使用(比如,外部代码调用这个回调函数), ctypes 会在每一次调用上创建一个虚拟 Python "
1112+
"线程。这个行为在大多数情况下是合理的,但也意味着如果有数据使用 :class:`threading.local` "
1113+
"方式存储,将无法访问,就算它们是在同一个 C 线程中调用的 。"
11111114

11121115
#: ../../library/ctypes.rst:1053
11131116
msgid "Accessing values exported from dlls"
1114-
msgstr ""
1117+
msgstr "访问 dll 中导出的值"
11151118

11161119
#: ../../library/ctypes.rst:1055
11171120
msgid ""

library/curses.panel.po

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ msgstr ":mod:`curses.panel` 模块定义了以下函数:"
4444

4545
#: ../../library/curses.panel.rst:26
4646
msgid "Returns the bottom panel in the panel stack."
47-
msgstr ""
47+
msgstr "返回面板栈中的底部面板。"
4848

4949
#: ../../library/curses.panel.rst:31
5050
msgid ""
@@ -53,20 +53,22 @@ msgid ""
5353
"you don't, the panel object is garbage collected and removed from the panel "
5454
"stack."
5555
msgstr ""
56+
"返回一个面板对象,将其与给定的窗口 *win* 相关联。 请注意你必须显式地保持所返回的面板对象。 "
57+
"如果你不这样做,面板对象会被垃圾回收并从面板栈中被移除。"
5658

5759
#: ../../library/curses.panel.rst:38
5860
msgid "Returns the top panel in the panel stack."
59-
msgstr ""
61+
msgstr "返回面板栈中的顶部面板。"
6062

6163
#: ../../library/curses.panel.rst:43
6264
msgid ""
6365
"Updates the virtual screen after changes in the panel stack. This does not "
6466
"call :func:`curses.doupdate`, so you'll have to do this yourself."
65-
msgstr ""
67+
msgstr "在面板栈发生改变后更新虚拟屏幕。 这不会调用 :func:`curses.doupdate`,因此你不必自己执行此操作。"
6668

6769
#: ../../library/curses.panel.rst:50
6870
msgid "Panel Objects"
69-
msgstr ""
71+
msgstr "Panel 对象"
7072

7173
#: ../../library/curses.panel.rst:52
7274
msgid ""
@@ -75,61 +77,63 @@ msgid ""
7577
"determines the content, while the panel methods are responsible for the "
7678
"window's depth in the panel stack."
7779
msgstr ""
80+
"Panel 对象,如上面 :func:`new_panel` 所返回的对象,是带有栈顺序的多个窗口。 "
81+
"总是会有一个窗口与确定内容的面板相关联,面板方法会负责窗口在面板栈中的深度。"
7882

7983
#: ../../library/curses.panel.rst:57
8084
msgid "Panel objects have the following methods:"
81-
msgstr ""
85+
msgstr "Panel 对象具有以下方法:"
8286

8387
#: ../../library/curses.panel.rst:62
8488
msgid "Returns the panel above the current panel."
85-
msgstr ""
89+
msgstr "返回当前面板之上的面板。"
8690

8791
#: ../../library/curses.panel.rst:67
8892
msgid "Returns the panel below the current panel."
89-
msgstr ""
93+
msgstr "返回当前面板之下的面板。"
9094

9195
#: ../../library/curses.panel.rst:72
9296
msgid "Push the panel to the bottom of the stack."
93-
msgstr ""
97+
msgstr "将面板推至栈底部。"
9498

9599
#: ../../library/curses.panel.rst:77
96100
msgid ""
97101
"Returns ``True`` if the panel is hidden (not visible), ``False`` otherwise."
98-
msgstr ""
102+
msgstr "如果面板被隐藏(不可见)则返回 ``True``,否则返回 ``False``。"
99103

100104
#: ../../library/curses.panel.rst:82
101105
msgid ""
102106
"Hide the panel. This does not delete the object, it just makes the window on"
103107
" screen invisible."
104-
msgstr ""
108+
msgstr "隐藏面板。 这不会删除对象,它只是让窗口在屏幕上不可见。"
105109

106110
#: ../../library/curses.panel.rst:88
107111
msgid "Move the panel to the screen coordinates ``(y, x)``."
108-
msgstr ""
112+
msgstr "将面板移至屏幕坐标 ``(y, x)``。"
109113

110114
#: ../../library/curses.panel.rst:93
111115
msgid "Change the window associated with the panel to the window *win*."
112-
msgstr ""
116+
msgstr "将与面板相关联的窗口改为窗口 *win*。"
113117

114118
#: ../../library/curses.panel.rst:98
115119
msgid ""
116120
"Set the panel's user pointer to *obj*. This is used to associate an "
117121
"arbitrary piece of data with the panel, and can be any Python object."
118-
msgstr ""
122+
msgstr "将面板的用户指向设为 *obj*。 这被用来将任意数据与面板相关联,数据可以是任何 Python 对象。"
119123

120124
#: ../../library/curses.panel.rst:104
121125
msgid "Display the panel (which might have been hidden)."
122-
msgstr ""
126+
msgstr "显示面板(面板可能已被隐藏)。"
123127

124128
#: ../../library/curses.panel.rst:109
125129
msgid "Push panel to the top of the stack."
126-
msgstr ""
130+
msgstr "将面板推至栈顶部。"
127131

128132
#: ../../library/curses.panel.rst:114
129133
msgid ""
130134
"Returns the user pointer for the panel. This might be any Python object."
131-
msgstr ""
135+
msgstr "返回面板的用户指针。 这可以是任何 Python 对象。"
132136

133137
#: ../../library/curses.panel.rst:119
134138
msgid "Returns the window object associated with the panel."
135-
msgstr ""
139+
msgstr "返回与面板相关联的窗口对象。"

library/logging.handlers.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ msgstr "请参阅 :ref:`library-config` 了解有关如何使用 :class:`NullHan
229229

230230
#: ../../library/logging.handlers.rst:156
231231
msgid "WatchedFileHandler"
232-
msgstr ""
232+
msgstr "WatchedFileHandler"
233233

234234
#: ../../library/logging.handlers.rst:160
235235
msgid ""
@@ -238,6 +238,8 @@ msgid ""
238238
"file it is logging to. If the file changes, it is closed and reopened using "
239239
"the file name."
240240
msgstr ""
241+
":class:`WatchedFileHandler` 类位于 :mod:`logging.handlers` 模块,这个 "
242+
":class:`FileHandler` 用于监视它所写入日志记录的文件。 如果文件发生变化,它会被关闭并使用文件名重新打开。"
241243

242244
#: ../../library/logging.handlers.rst:164
243245
msgid ""

whatsnew/changelog.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ msgid ""
7979
"`bpo-38156 <https://bugs.python.org/issue38156>`__: Handle interrupts that "
8080
"come after EOF correctly in ``PyOS_StdioReadline``."
8181
msgstr ""
82+
"`bpo-38156 <https://bugs.python.org/issue38156>`__: 正确地处理 "
83+
"``PyOS_StdioReadline`` 中 EOF 之后的中断。"
8284

8385
#: ../../../build/NEWS:16 ../../../build/NEWS:113 ../../../build/NEWS:238
8486
#: ../../../build/NEWS:402 ../../../build/NEWS:470 ../../../build/NEWS:676

0 commit comments

Comments
 (0)