Skip to content

Commit 3b3c085

Browse files
[po] auto sync
1 parent 3f9d125 commit 3b3c085

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

library/optparse.po

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,9 @@ msgid ""
15391539
" destination from the first short option string (e.g., ``-f`` implies "
15401540
"``f``)."
15411541
msgstr ""
1542+
"如果未提供 :attr:`~Option.dest`,则 :mod:`optparse` 会从第一个长选项字符串派生出目标 (例如 ``--foo-"
1543+
"bar`` 将对应 ``foo_bar``)。 如果不存在长选项字符串,则 :mod:`optparse` 会从第一个短选项字符串派生出目标 (例如 "
1544+
"``-f`` 将对应 ``f``)。"
15421545

15431546
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1103
15441547
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1123
@@ -1606,22 +1609,25 @@ msgid ""
16061609
"multiple arguments are consumed, and a tuple of length :attr:`~Option.nargs`"
16071610
" is appended to :attr:`~Option.dest`."
16081611
msgstr ""
1612+
"该选项必须跟一个参数,该参数将被添加到 :attr:`~Option.dest` 的列表中。 如果未提供 :attr:`~Option.dest` "
1613+
"的默认值,那么当 :mod:`optparse` 首次在命令行中遇到该选项时将自动创建一个空列表。 如果 :attr:`~Option.nargs` >"
1614+
" 1,则会读取多个参数,并将一个长度为 :attr:`~Option.nargs` 的元组添加到 :attr:`~Option.dest`。"
16091615

16101616
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1160
16111617
msgid ""
16121618
"The defaults for :attr:`~Option.type` and :attr:`~Option.dest` are the same "
16131619
"as for the ``\"store\"`` action."
1614-
msgstr ""
1620+
msgstr ":attr:`~Option.type` 和 :attr:`~Option.dest` 的默认值与 ``\"store\"`` 动作的相同。"
16151621

16161622
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1167
16171623
msgid ""
16181624
"If ``-t3`` is seen on the command-line, :mod:`optparse` does the equivalent "
16191625
"of::"
1620-
msgstr ""
1626+
msgstr "如果在命令行中遇过 ``-t3``,:mod:`optparse` 将执行这样的操作::"
16211627

16221628
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1173
16231629
msgid "If, a little later on, ``--tracks=4`` is seen, it does::"
1624-
msgstr ""
1630+
msgstr "如果,在稍后的时候,再遇到 ``--tracks=4``,它将执行::"
16251631

16261632
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1177
16271633
msgid ""
@@ -1631,12 +1637,15 @@ msgid ""
16311637
"the default elements will be present in the parsed value for the option, "
16321638
"with any values from the command line appended after those default values::"
16331639
msgstr ""
1640+
"``append`` 动作会在选项的当前值上调用 ``append`` 方法。 这意味着任何被指定的默认值必须具有 ``append`` 方法。 "
1641+
"这还意味着如果默认值非空,则其中的默认元素将存在于选项的已解析值中,而任何来自命令行的值将被添加到这些默认值之后::"
16341642

16351643
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1188
16361644
msgid ""
16371645
"``\"append_const\"`` [required: :attr:`~Option.const`; relevant: "
16381646
":attr:`~Option.dest`]"
16391647
msgstr ""
1648+
"``\"append_const\"`` [需要: :attr:`~Option.const`; 关联: :attr:`~Option.dest`]"
16401649

16411650
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1191
16421651
msgid ""
@@ -1645,17 +1654,22 @@ msgid ""
16451654
" to ``None``, and an empty list is automatically created the first time the "
16461655
"option is encountered."
16471656
msgstr ""
1657+
"与 ``\"store_const\"`` 类似,但 :attr:`~Option.const` 值将被添加到 "
1658+
":attr:`~Option.dest`;与 ``\"append\"`` 一样,:attr:`~Option.dest` 默认为 "
1659+
"``None``,并且当首次遇到该选项时将自动创建一个空列表。"
16481660

16491661
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1196
16501662
msgid "``\"count\"`` [relevant: :attr:`~Option.dest`]"
1651-
msgstr ""
1663+
msgstr "``\"count\"`` [关联: :attr:`~Option.dest`]"
16521664

16531665
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1198
16541666
msgid ""
16551667
"Increment the integer stored at :attr:`~Option.dest`. If no default value "
16561668
"is supplied, :attr:`~Option.dest` is set to zero before being incremented "
16571669
"the first time."
16581670
msgstr ""
1671+
"对保存在 :attr:`~Option.dest` 的整数执行递增。 如果未提供默认值,则 :attr:`~Option.dest` "
1672+
"会在第一次执行递增之前被设为零。"
16591673

16601674
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1206
16611675
msgid ""

0 commit comments

Comments
 (0)