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

Skip to content

Commit bcba367

Browse files
[po] auto sync
1 parent b3a7050 commit bcba367

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

library/optparse.po

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,22 +2485,25 @@ msgid ""
24852485
":mod:`optparse` normally handles for you. In particular, callbacks should "
24862486
"implement the conventional rules for bare ``--`` and ``-`` arguments:"
24872487
msgstr ""
2488+
"当你想要一个选项接受可变数数量的参数时情况会变得更麻烦一点。 对于这种场景,你必须编写一个回调,因为 :mod:`optparse` "
2489+
"没有为它提供任何内置的相应功能。 而你必须处理 :mod:`optparse` 通常会为你处理的传统 Unix 命令行的某些细节问题。 "
2490+
"特别地,回调应当实现单个 ``--`` 和 ``-`` 参数的惯例规则:"
24882491

24892492
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1794
24902493
msgid "either ``--`` or ``-`` can be option arguments"
2491-
msgstr ""
2494+
msgstr "``--`` 或 ``-`` 都可以是选项参数"
24922495

24932496
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1796
24942497
msgid ""
24952498
"bare ``--`` (if not the argument to some option): halt command-line "
24962499
"processing and discard the ``--``"
2497-
msgstr ""
2500+
msgstr "单个 ``--`` (如果不是某个选项的参数): 停止命令行处理并丢弃该 ``--``"
24982501

24992502
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1799
25002503
msgid ""
25012504
"bare ``-`` (if not the argument to some option): halt command-line "
25022505
"processing but keep the ``-`` (append it to ``parser.largs``)"
2503-
msgstr ""
2506+
msgstr "单个 ``-`` (如果不是某个选项的参数): 停止命令行处理但保留 ``-`` (将其添加到 ``parser.largs``)"
25042507

25052508
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1802
25062509
msgid ""
@@ -2510,16 +2513,18 @@ msgid ""
25102513
"application (which is why :mod:`optparse` doesn't support this sort of thing"
25112514
" directly)."
25122515
msgstr ""
2516+
"如果你想要一个选项接受可变数量的参数,那么有几个微妙、棘手的问题需要考虑到。 你选择的具体实现将基于你的应用程序对于各方面利弊的权衡(这就是为什么 "
2517+
":mod:`optparse` 没有直接支持这一功能)。"
25132518

25142519
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1808
25152520
msgid ""
25162521
"Nevertheless, here's a stab at a callback for an option with variable "
25172522
"arguments::"
2518-
msgstr ""
2523+
msgstr "无论如何,下面是一个对于接受可变参数的选项的回调的尝试::"
25192524

25202525
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1842
25212526
msgid "Extending :mod:`optparse`"
2522-
msgstr ""
2527+
msgstr "扩展 :mod:`optparse`"
25232528

25242529
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1844
25252530
msgid ""

0 commit comments

Comments
 (0)