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

Skip to content

Commit eaf6b3e

Browse files
[po] auto sync
1 parent b73c44e commit eaf6b3e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

library/optparse.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,11 +1246,11 @@ msgstr ""
12461246

12471247
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:906
12481248
msgid "To define an option with only a short option string::"
1249-
msgstr ""
1249+
msgstr "定义只有一个短选项字符串的选项::"
12501250

12511251
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:910
12521252
msgid "And to define an option with only a long option string::"
1253-
msgstr ""
1253+
msgstr "以及定义只有一个长选项字符串的选项::"
12541254

12551255
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:914
12561256
msgid ""
@@ -1260,13 +1260,19 @@ msgid ""
12601260
"irrelevant option attributes, or fail to pass required ones, :mod:`optparse`"
12611261
" raises an :exc:`OptionError` exception explaining your mistake."
12621262
msgstr ""
1263+
"该关键字参数定义新 Option 对象的属性。 最重要的选项属性是 "
1264+
":attr:`~Option.action`,它主要负责确定其他的属性是相关的还是必须的。 "
1265+
"如果你传入了不相关的选项属性,或是未能传入必须的属性,:mod:`optparse` 将引发一个 :exc:`OptionError` "
1266+
"异常来说明你的错误。"
12631267

12641268
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:920
12651269
msgid ""
12661270
"An option's *action* determines what :mod:`optparse` does when it encounters"
12671271
" this option on the command-line. The standard option actions hard-coded "
12681272
"into :mod:`optparse` are:"
12691273
msgstr ""
1274+
"选项的 *action* 决定当 :mod:`optparse` 在命令行中遇到该选项时要做什么。 硬编码在 :mod:`optparse` "
1275+
"中的标准选项动作有:"
12701276

12711277
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:925
12721278
msgid "``\"store\"``"

0 commit comments

Comments
 (0)