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

Skip to content

Commit cc7d5a1

Browse files
[po] auto sync
1 parent ccbc825 commit cc7d5a1

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

library/argparse.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,8 @@ msgid ""
18731873
" a prefix of one of its known options, instead of leaving it in the "
18741874
"remaining arguments list."
18751875
msgstr ""
1876+
":ref:`前缀匹配 <prefix-matching>` 规则应用于 :meth:`parse_known_args`。 "
1877+
"一个选项即使只是已知选项的前缀部分解析器也能识别该选项,不会将其放入剩余参数列表。"
18761878

18771879
#: ../../library/argparse.rst:2012
18781880
msgid "Customizing file parsing"
@@ -1885,19 +1887,23 @@ msgid ""
18851887
"per line. :meth:`convert_arg_line_to_args` can be overridden for fancier "
18861888
"reading."
18871889
msgstr ""
1890+
"从文件读取的参数(见 :class:`ArgumentParser` 的 *fromfile_prefix_chars* "
1891+
"关键字参数)将是一行读取一个参数。 :meth:`convert_arg_line_to_args` 可被重载以使用更复杂的读取方式。"
18881892

18891893
#: ../../library/argparse.rst:2021
18901894
msgid ""
18911895
"This method takes a single argument *arg_line* which is a string read from "
18921896
"the argument file. It returns a list of arguments parsed from this string. "
18931897
"The method is called once per line read from the argument file, in order."
18941898
msgstr ""
1899+
"此方法接受从参数文件读取的字符串形式的单个参数 *arg_line*。 它返回从该字符串解析出的参数列表。 "
1900+
"此方法将在每次按顺序从参数文件读取一行时被调用一次。"
18951901

18961902
#: ../../library/argparse.rst:2025
18971903
msgid ""
18981904
"A useful override of this method is one that treats each space-separated "
18991905
"word as an argument. The following example demonstrates how to do this::"
1900-
msgstr ""
1906+
msgstr "此方法的一个有用的重载是将每个以空格分隔的单词视为一个参数。 下面的例子演示了如何实现此重载::"
19011907

19021908
#: ../../library/argparse.rst:2034
19031909
msgid "Exiting methods"

library/syslog.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ msgid ""
9595
" keyword argument (default is :const:`LOG_USER`) sets the default facility "
9696
"for messages which do not have a facility explicitly encoded."
9797
msgstr ""
98+
"可选的 *ident* 关键字参数是在每条消息前添加的字符串,默认为 ``sys.argv[0]`` 去除打头的路径部分。 可选的 "
99+
"*logoption* 关键字参数(默认为 0)是一个位字段 -- 请参见下文了解可能的组合值。 可选的 *facility* 关键字参数 (默认为 "
100+
":const:`LOG_USER`) 为没有显式编码 facility 的消息设置默认的 facility。"
98101

99102
#: ../../library/syslog.rst:51
100103
msgid ""
@@ -110,6 +113,8 @@ msgid ""
110113
"required. The default for *ident* was dependent on the system libraries, "
111114
"and often was ``python`` instead of the name of the Python program file."
112115
msgstr ""
116+
"在之前的版本中,不允许关键字参数,并且要求必须有 *ident*。 *ident* 的默认值依赖于系统库,它往往为 ``python`` 而不是 "
117+
"Python 程序文件的实际名称。"
113118

114119
#: ../../library/syslog.rst:60
115120
msgid ""
@@ -123,6 +128,8 @@ msgid ""
123128
" :func:`openlog` hasn't already been called), and *ident* and other "
124129
":func:`openlog` parameters are reset to defaults."
125130
msgstr ""
131+
"这使得此模块在初始导入时行为固定。 例如,:func:`openlog` 将在首次调用 :func:`syslog` 时被调用(如果 "
132+
":func:`openlog` 还未被调用过),并且 *ident* 和其他 :func:`openlog` 形参会被重置为默认值。"
126133

127134
#: ../../library/syslog.rst:67
128135
msgid ""
@@ -139,6 +146,9 @@ msgid ""
139146
"The function ``LOG_UPTO(pri)`` calculates the mask for all priorities up to "
140147
"and including *pri*."
141148
msgstr ""
149+
"将优先级掩码设为 *maskpri* 并返回之前的掩码值。 调用 :func:`syslog` 并附带未在 *maskpri* "
150+
"中设置的优先级将会被忽略。 默认设置为记录所有优先级。 函数 ``LOG_MASK(pri)`` 可计算单个优先级 *pri* 的掩码。 函数 "
151+
"``LOG_UPTO(pri)`` 可计算包括 *pri* 在内的所有优先级的掩码。"
142152

143153
#: ../../library/syslog.rst:79
144154
msgid ""

0 commit comments

Comments
 (0)