Skip to content

Commit b73c44e

Browse files
[po] auto sync
1 parent 5d9ceff commit b73c44e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

library/optparse.po

+8-1
Original file line numberDiff line numberDiff line change
@@ -1203,12 +1203,13 @@ msgid ""
12031203
"acceptable to :func:`make_option` (i.e., to the Option constructor), and it "
12041204
"will create the Option instance for you"
12051205
msgstr ""
1206+
"传入 :func:`make_option` 可接受的(即与 Option 构造器相同的)任意位置和关键字参数组合,它将为你创建 Option 实例"
12061207

12071208
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:874
12081209
msgid ""
12091210
"The other alternative is to pass a list of pre-constructed Option instances "
12101211
"to the OptionParser constructor, as in::"
1211-
msgstr ""
1212+
msgstr "另一种方式是将由预先构造的 Option 实例组成的列表传给 OptionParser 构造器,如下所示::"
12121213

12131214
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:885
12141215
msgid ""
@@ -1218,6 +1219,9 @@ msgid ""
12181219
":func:`make_option` will pick the right class to instantiate. Do not "
12191220
"instantiate Option directly.)"
12201221
msgstr ""
1222+
"(:func:`make_option` 是一个用于创建 Option 实例的工厂函数;目前它是 Option 构造器的一个别名。 未来的 "
1223+
":mod:`optparse` 版本可能会将 Option 拆分为多个类,而 :func:`make_option` 将选择适当的类来实例化。 "
1224+
"请不要直接实例化 Option。)"
12211225

12221226
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:894
12231227
msgid "Defining options"
@@ -1230,12 +1234,15 @@ msgid ""
12301234
" long option strings, but you must specify at least one overall option "
12311235
"string."
12321236
msgstr ""
1237+
"每个 Option 实例代表一组同义的命令行选项字符串,例如 ``-f`` 和 ``--file``。 "
1238+
"你可以指定任意数量的短和长选项字符串,但你必须指定总计至少一个选项字符串。"
12331239

12341240
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:900
12351241
msgid ""
12361242
"The canonical way to create an :class:`Option` instance is with the "
12371243
":meth:`add_option` method of :class:`OptionParser`."
12381244
msgstr ""
1245+
"创建 :class:`Option` 的正规方式是使用 :class:`OptionParser` 的 :meth:`add_option` 方法。"
12391246

12401247
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:906
12411248
msgid "To define an option with only a short option string::"

0 commit comments

Comments
 (0)