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

Skip to content

Commit 44ca701

Browse files
[po] auto sync
1 parent 9d725a5 commit 44ca701

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

howto/logging-cookbook.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ msgid ""
14271427
"While the above treatment is simplistic, it points the way to how exception "
14281428
"information can be formatted to your liking. The :mod:`traceback` module may"
14291429
" be helpful for more specialized needs."
1430-
msgstr ""
1430+
msgstr "虽然上述处理方式很简单,但也给出了根据喜好对异常信息进行格式化输出的方案。或许 :mod:`traceback` 模块能满足更专门的需求。"
14311431

14321432
#: ../../howto/logging-cookbook.rst:2222
14331433
msgid "Speaking logging messages"
@@ -1449,6 +1449,10 @@ msgid ""
14491449
"other handlers to be kept waiting. Here is a short example showing the "
14501450
"approach, which assumes that the ``espeak`` TTS package is available::"
14511451
msgstr ""
1452+
"有时可能需要以声音的形式呈现日志消息。如果系统自带了文本转语音 (TTS)功能,即便没与 Python 关联也很容易做到。大多数 TTS "
1453+
"系统都有一个可运行的命令行程序,在 handler 中可以用 :mod:`subprocess` 进行调用。这里假定 TTS "
1454+
"命令行程序不会与用户交互,或需要很长时间才会执行完毕,写入日志的信息也不会多到影响用户查看,并且可以接受每次播报一条信息,以下示例实现了等一条信息播完再处理下一条,可能会导致其他"
1455+
" handler 的等待。这个简短示例仅供演示,假定 ``espeak`` TTS 包已就绪:"
14521456

14531457
#: ../../howto/logging-cookbook.rst:2266
14541458
msgid ""

0 commit comments

Comments
 (0)