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

Skip to content

Commit d7aeed5

Browse files
[po] auto sync
1 parent 2038814 commit d7aeed5

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

library/argparse.po

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,12 +1985,15 @@ msgid ""
19851985
"patched, it no longer seemed practical to try to maintain the backwards "
19861986
"compatibility."
19871987
msgstr ""
1988+
"起初,:mod:`argparse` 曾经尝试通过 :mod:`optparse` 来维持兼容性。 但是,:mod:`optparse` "
1989+
"很难透明地扩展,特别是那些为支持新的 ``nargs=`` 描述方式和更好的用法消息所需的修改。当When most everything in "
1990+
":mod:`optparse` 中几乎所有内容都已被复制粘贴或打上补丁时,维持向下兼容看来已是不切实际的。"
19881991

19891992
#: ../../library/argparse.rst:2104
19901993
msgid ""
19911994
"The :mod:`argparse` module improves on the standard library :mod:`optparse` "
19921995
"module in a number of ways including:"
1993-
msgstr ""
1996+
msgstr ":mod:`argparse` 模块在许多方面对标准库的 :mod:`optparse` 模块进行了增强,包括:"
19941997

19951998
#: ../../library/argparse.rst:2107
19961999
msgid "Handling positional arguments."
@@ -2002,29 +2005,31 @@ msgstr "支持子命令。"
20022005

20032006
#: ../../library/argparse.rst:2109
20042007
msgid "Allowing alternative option prefixes like ``+`` and ``/``."
2005-
msgstr ""
2008+
msgstr "允许替代选项前缀例如 ``+`` 和 ``/``。"
20062009

20072010
#: ../../library/argparse.rst:2110
20082011
msgid "Handling zero-or-more and one-or-more style arguments."
2009-
msgstr ""
2012+
msgstr "处理零个或多个以及一个或多个风格的参数。"
20102013

20112014
#: ../../library/argparse.rst:2111
20122015
msgid "Producing more informative usage messages."
2013-
msgstr ""
2016+
msgstr "生成更具信息量的用法消息。"
20142017

20152018
#: ../../library/argparse.rst:2112
20162019
msgid "Providing a much simpler interface for custom ``type`` and ``action``."
2017-
msgstr ""
2020+
msgstr "提供用于定制 ``type`` 和 ``action`` 的更为简单的接口。"
20182021

20192022
#: ../../library/argparse.rst:2114
20202023
msgid "A partial upgrade path from :mod:`optparse` to :mod:`argparse`:"
2021-
msgstr ""
2024+
msgstr "从 :mod:`optparse` 到 :mod:`argparse` 的部分升级路径:"
20222025

20232026
#: ../../library/argparse.rst:2116
20242027
msgid ""
20252028
"Replace all :meth:`optparse.OptionParser.add_option` calls with "
20262029
":meth:`ArgumentParser.add_argument` calls."
20272030
msgstr ""
2031+
"将所有 :meth:`optparse.OptionParser.add_option` 调用替换为 "
2032+
":meth:`ArgumentParser.add_argument` 调用。"
20282033

20292034
#: ../../library/argparse.rst:2119
20302035
msgid ""
@@ -2033,13 +2038,19 @@ msgid ""
20332038
" calls for the positional arguments. Keep in mind that what was previously "
20342039
"called ``options``, now in the :mod:`argparse` context is called ``args``."
20352040
msgstr ""
2041+
"将 ``(options, args) = parser.parse_args()`` 替换为 ``args = "
2042+
"parser.parse_args()`` 并为位置参数添加额外的 :meth:`ArgumentParser.add_argument` 调用。 "
2043+
"请注意之前所谓的 ``options`` 在 :mod:`argparse` 上下文中被称为 ``args``。"
20362044

20372045
#: ../../library/argparse.rst:2124
20382046
msgid ""
20392047
"Replace :meth:`optparse.OptionParser.disable_interspersed_args` by using "
20402048
":meth:`~ArgumentParser.parse_intermixed_args` instead of "
20412049
":meth:`~ArgumentParser.parse_args`."
20422050
msgstr ""
2051+
"通过使用 :meth:`~ArgumentParser.parse_intermixed_args` 而非 "
2052+
":meth:`~ArgumentParser.parse_args` 来替换 "
2053+
":meth:`optparse.OptionParser.disable_interspersed_args`。"
20432054

20442055
#: ../../library/argparse.rst:2128
20452056
msgid ""

0 commit comments

Comments
 (0)