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

Skip to content

Commit ab6ed98

Browse files
[po] auto sync
1 parent 4e2ce78 commit ab6ed98

4 files changed

Lines changed: 19 additions & 3 deletions

File tree

faq/gui.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Translators:
77
# dgy18787 <[email protected]>, 2019
8-
# 443 <[email protected]>, 2019
8+
# Azuk 443 <[email protected]>, 2019
99
# Kade For, 2019
1010
# ppcfish <[email protected]>, 2019
1111
# Freesand Leo <[email protected]>, 2019

faq/windows.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Translators:
77
# Yinuo Huang <[email protected]>, 2018
8-
# 443 <[email protected]>, 2019
8+
# Azuk 443 <[email protected]>, 2019
99
# musan cheng, 2019
1010
# Freesand Leo <[email protected]>, 2019
1111
# Meng Du <[email protected]>, 2019

library/logging.config.po

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,10 @@ msgid ""
650650
"object. This is signalled by an absolute import path to the factory being "
651651
"made available under the special key ``'()'``. Here's a concrete example:"
652652
msgstr ""
653+
"要配置的对象是由字典描述的,其中包含它们的配置详情。 "
654+
"在某些地方,日志记录系统将能够从上下文中推断出如何实例化一个对象,但是当要实例化一个用户自定义对象时,系统将不知道要如何做。 "
655+
"为了提供用户自定义对象实例化的完全灵活性,用户需要提供一个‘工厂’函数 —— 即在调用时传入配置字典并返回实例化对象的可调用对象。 这是用一个通过特殊键"
656+
" ``'()'`` 来访问的工厂函数的绝对导入路径来标示的。 下面是一个实际的例子:"
653657

654658
#: ../../library/logging.config.rst:446
655659
msgid ""
@@ -661,6 +665,11 @@ msgid ""
661665
" in Python source form, the ``brief`` and ``default`` formatters have "
662666
"configuration sub-dictionaries::"
663667
msgstr ""
668+
"上面的 YAML 代码片段定义了三个格式化器。 第一个的 ID 为 ``brief``,是带有特殊格式字符串的标准 "
669+
":class:`logging.Formatter` 实例。 第二个的 ID 为 "
670+
"``default``,具有更长的格式同时还显式地定义了时间格式,并将最终实例化一个带有这两个格式字符串的 "
671+
":class:`logging.Formatter`。 以 Python 源代码形式显示的 ``brief`` 和 ``default`` "
672+
"格式化器分别具有下列配置子字典::"
664673

665674
#: ../../library/logging.config.rst:458
666675
msgid "and::"
@@ -674,6 +683,8 @@ msgid ""
674683
"configuration sub-dictionary for the third formatter, with id ``custom``, "
675684
"is::"
676685
msgstr ""
686+
"并且由于这些字典不包含特殊键 ``'()'``,实例化方式是从上下文中推断出来的:结果会创建标准的 :class:`logging.Formatter`"
687+
" 实例。 第三个格式器的 ID 为 ``custom``,对应配置子字典为::"
677688

678689
#: ../../library/logging.config.rst:478
679690
msgid ""
@@ -686,6 +697,9 @@ msgid ""
686697
"arguments. In the above example, the formatter with id ``custom`` will be "
687698
"assumed to be returned by the call::"
688699
msgstr ""
700+
"并且它包含特殊键 ``'()'``,这意味着需要用户自定义实例化方式。 在此情况下,将使用指定的工厂可调用对象。 "
701+
"如果它本身就是一个可调用对象则将被直接使用 —— 否则如果你指定了一个字符串(如这个例子所示)则将使用正常的导入机制来定位实例的可调用对象。 "
702+
"调用该可调用对象将传入配置子字典中 **剩余的** 条目作为关键字参数。 在上面的例子中,调用将预期返回 ID 为 ``custom`` 的格式化器::"
689703

690704
#: ../../library/logging.config.rst:490
691705
msgid ""
@@ -694,6 +708,8 @@ msgid ""
694708
"arguments used in the call. The ``'()'`` also serves as a mnemonic that the"
695709
" corresponding value is a callable."
696710
msgstr ""
711+
"将 ``'()'`` 用作特殊键是因为它不是一个有效的关键字形参名称,这样就不会与调用中使用的关键字参数发生冲突。 ``'()'`` "
712+
"还被用作表明对应值为可调用对象的助记符。"
697713

698714
#: ../../library/logging.config.rst:499
699715
msgid "Access to external objects"

library/othergui.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# 443 <[email protected]>, 2019
7+
# Azuk 443 <[email protected]>, 2019
88
# Freesand Leo <[email protected]>, 2020
99
#
1010
#, fuzzy

0 commit comments

Comments
 (0)