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

Skip to content

Commit 8e57671

Browse files
[po] auto sync
1 parent 0289a9f commit 8e57671

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

library/imaplib.po

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ msgid ""
127127
"single (potentially long-lived) structure. Please read :ref:`ssl-security` "
128128
"for best practices."
129129
msgstr ""
130+
"这是一个派生自 :class:`IMAP4` 的子类,它使用经 SSL 加密的套接字进行连接 (为了使用这个类你需要编译时附带 SSL 支持的 "
131+
"socket 模块)。 如果未指定 *host*,则会使用 ``''`` (本地主机)。 如果省略了 *port*,则会使用标准的 IMAP4"
132+
"-over-SSL 端口 (993)。 *ssl_context* 是一个 :class:`ssl.SSLContext` 对象,它允许将 SSL "
133+
"配置选项、证书和私钥打包放入一个单独的 (可以长久存在的) 结构体中。 请阅读 :ref:`ssl-security` 以获取最佳实践。"
130134

131135
#: ../../library/imaplib.rst:97
132136
msgid ""
@@ -136,17 +140,20 @@ msgid ""
136140
"exclusive with *ssl_context*, a :class:`ValueError` is raised if "
137141
"*keyfile*/*certfile* is provided along with *ssl_context*."
138142
msgstr ""
143+
"*keyfile* 和 *certfile* 是 *ssl_context* 的旧式替代品 —— 它们可以指向 PEM 格式的私钥和证书链文件用于 "
144+
"SSL 连接。 请注意 *keyfile*/*certfile* 形参不能与 *ssl_context* 共存,如果 "
145+
"*keyfile*/*certfile* 与 *ssl_context* 一同被提供则会引发 :class:`ValueError`。"
139146

140147
#: ../../library/imaplib.rst:103
141148
msgid ""
142149
"The optional *timeout* parameter specifies a timeout in seconds for the "
143150
"connection attempt. If timeout is not given or is None, the global default "
144151
"socket timeout is used."
145-
msgstr ""
152+
msgstr "可选的 *timeout* 形参指明连接尝试的超时秒数。 如果参数未给出或为 None,则会使用全局默认的套接字超时设置。"
146153

147154
#: ../../library/imaplib.rst:107
148155
msgid "*ssl_context* parameter was added."
149-
msgstr ""
156+
msgstr "增加了 *ssl_context* 形参。"
150157

151158
#: ../../library/imaplib.rst:110
152159
msgid ""
@@ -164,21 +171,26 @@ msgid ""
164171
":func:`ssl.create_default_context` select the system's trusted CA "
165172
"certificates for you."
166173
msgstr ""
174+
"*keyfile* 和 *certfile* 已弃用并转而推荐 *ssl_context*。 请改用 "
175+
":meth:`ssl.SSLContext.load_cert_chain`,或让 :func:`ssl.create_default_context`"
176+
" 为你选择系统所信任的 CA 证书。"
167177

168178
#: ../../library/imaplib.rst:125
169179
msgid "The second subclass allows for connections created by a child process:"
170-
msgstr ""
180+
msgstr "第二个子类允许由子进程所创建的连接:"
171181

172182
#: ../../library/imaplib.rst:130
173183
msgid ""
174184
"This is a subclass derived from :class:`IMAP4` that connects to the "
175185
"``stdin/stdout`` file descriptors created by passing *command* to "
176186
"``subprocess.Popen()``."
177187
msgstr ""
188+
"这是一个派生自 :class:`IMAP4` 的子类,它可以连接 ``stdin/stdout`` 文件描述符,此种文件是通过向 "
189+
"``subprocess.Popen()`` 传入 *command* 来创建的。"
178190

179191
#: ../../library/imaplib.rst:135
180192
msgid "The following utility functions are defined:"
181-
msgstr ""
193+
msgstr "定义了下列工具函数:"
182194

183195
#: ../../library/imaplib.rst:140
184196
msgid ""

0 commit comments

Comments
 (0)