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

Skip to content

Commit ee432ac

Browse files
[po] auto sync
1 parent f8c55ca commit ee432ac

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

library/logging.handlers.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,10 @@ msgid ""
900900
"more recent daemons (which adhere more closely to RFC 5424) pass the NUL "
901901
"byte on as part of the message."
902902
msgstr ""
903+
"(参见: :issue:`12168`。) 在较早的版本中,发送至 syslog 守护程序的消息总是以一个 NUL "
904+
"字节结束,因为守护程序的早期版本期望接收一个以 NUL 结束的消息 —— 即使它不包含于对应的规范说明 (:rfc:`5424`)。 "
905+
"这些守护程序的较新版本不再期望接收 NUL 字节,如果其存在则会将其去除,而最新的守护程序(更紧密地遵循 RFC 5424)会将 NUL "
906+
"字节作为消息的一部分传递出去。"
903907

904908
#: ../../library/logging.handlers.rst:614
905909
msgid ""
@@ -910,6 +914,9 @@ msgid ""
910914
" to ``False`` on a ``SysLogHandler`` instance in order for that instance to "
911915
"*not* append the NUL terminator."
912916
msgstr ""
917+
"为了在面对所有这些不同守护程序行为时能够更方便地处理 syslog 消息,通过使用类层级属性 ``append_nul``,添加 NUL "
918+
"字节的操作已被作为可配置项。 该属性默认为 ``True`` (保留现有行为) 但可在 ``SysLogHandler`` 实例上设为 "
919+
"``False`` 以便让实例 *不会* 添加 NUL 结束符。"
913920

914921
#: ../../library/logging.handlers.rst:621
915922
msgid ""
@@ -921,6 +928,9 @@ msgid ""
921928
"to every message handled. Note that the provided ident must be text, not "
922929
"bytes, and is prepended to the message exactly as is."
923930
msgstr ""
931+
"(参见: :issue:`12419`。) 在较早的版本中,没有 \"ident\"\"tag\" 前缀工具可以用来标识消息的来源。 "
932+
"现在则可以使用一个类层级属性来设置它,该属性默认为 ``\"\"`` 表示保留现有行为,但可在 ``SysLogHandler`` "
933+
"实例上重载以便让实例不会为所处理的每条消息添加标识。 请注意所提供的标识必须为文本而非字节串,并且它会被原封不动地添加到消息中。"
924934

925935
#: ../../library/logging.handlers.rst:632
926936
msgid ""

whatsnew/changelog.po

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,24 @@ msgid ""
126126
"`bpo-41520 <https://bugs.python.org/issue41520>`__: Fix :mod:`codeop` "
127127
"regression: it no longer ignores :exc:`SyntaxWarning`."
128128
msgstr ""
129+
"`bpo-41520 <https://bugs.python.org/issue41520>`__: 修复 :mod:`codeop` "
130+
"回归问题:它不会再忽略 :exc:`SyntaxWarning`。"
129131

130132
#: ../../../build/NEWS:21
131133
msgid ""
132134
"`bpo-41497 <https://bugs.python.org/issue41497>`__: Fix potential "
133135
"UnicodeDecodeError in dis module."
134136
msgstr ""
137+
"`bpo-41497 <https://bugs.python.org/issue41497>`__: 在 dis 模块中修复潜在的 "
138+
"UnicodeDecodeError。"
135139

136140
#: ../../../build/NEWS:23
137141
msgid ""
138142
"`bpo-41490 <https://bugs.python.org/issue41490>`__: Update :mod:`ensurepip` "
139143
"to install pip 20.2.1 and setuptools 49.2.1."
140144
msgstr ""
145+
"`bpo-41490 <https://bugs.python.org/issue41490>`__: 更新 :mod:`ensurepip` 以安装 "
146+
"pip 20.2.1 和 setuptools 49.2.1。"
141147

142148
#: ../../../build/NEWS:26
143149
msgid ""
@@ -146,36 +152,47 @@ msgid ""
146152
"(:exc:`BrokenPipeError`): return ``0`` rather than an empty byte string "
147153
"(``b''``)."
148154
msgstr ""
155+
"`bpo-41467 <https://bugs.python.org/issue41467>`__: 在 Windows 上,修复 asyncio "
156+
"``recv_into()`` 当套接字/管道被关闭时的返回值 (:exc:`BrokenPipeError`):返回 ``0`` 而不是空字节串 "
157+
"(``b''``)。"
149158

150159
#: ../../../build/NEWS:30
151160
msgid ""
152161
"`bpo-41425 <https://bugs.python.org/issue41425>`__: Make tkinter doc example"
153162
" runnable."
154163
msgstr ""
164+
"`bpo-41425 <https://bugs.python.org/issue41425>`__: 让 tkinter 文档示例可运行。"
155165

156166
#: ../../../build/NEWS:32
157167
msgid ""
158168
"`bpo-41384 <https://bugs.python.org/issue41384>`__: Raise TclError instead "
159169
"of TypeError when an unknown option is passed to tkinter.OptionMenu."
160170
msgstr ""
171+
"`bpo-41384 <https://bugs.python.org/issue41384>`__: 当传给 tkinter.OptionMenu "
172+
"的选项未知时引发 TclError 而不是 TypeError。"
161173

162174
#: ../../../build/NEWS:35
163175
msgid ""
164176
"`bpo-38731 <https://bugs.python.org/issue38731>`__: Fix :exc:`NameError` in "
165177
"command-line interface of :mod:`py_compile`."
166178
msgstr ""
179+
"`bpo-38731 <https://bugs.python.org/issue38731>`__: 修复了 :mod:`py_compile` "
180+
"模块命令行界面下的 :exc:`NameError`。"
167181

168182
#: ../../../build/NEWS:38
169183
msgid ""
170184
"`bpo-41364 <https://bugs.python.org/issue41364>`__: Reduce import overhead "
171185
"of :mod:`uuid`."
172186
msgstr ""
187+
"`bpo-41364 <https://bugs.python.org/issue41364>`__: 减少 :mod:`uuid` 的导入开销。"
173188

174189
#: ../../../build/NEWS:40
175190
msgid ""
176191
"`bpo-40726 <https://bugs.python.org/issue40726>`__: Handle cases where the "
177192
"``end_lineno`` is ``None`` on :func:`ast.increment_lineno`."
178193
msgstr ""
194+
"`bpo-40726 <https://bugs.python.org/issue40726>`__: 处理在 "
195+
":func:`ast.increment_lineno` 上 ``end_lineno`` 为 ``None`` 的情况。"
179196

180197
#: ../../../build/NEWS:44 ../../../build/NEWS:102 ../../../build/NEWS:464
181198
#: ../../../build/NEWS:667 ../../../build/NEWS:854 ../../../build/NEWS:1065

0 commit comments

Comments
 (0)