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

Skip to content

Commit 18854fb

Browse files
[po] auto sync
1 parent e56c41c commit 18854fb

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.22%", "updated_at": "2024-01-22T02:11:55Z"}
1+
{"translation": "93.24%", "updated_at": "2024-01-23T01:19:10Z"}

c-api/init.po

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,12 +1004,15 @@ msgid ""
10041004
"into static storage; the caller should not modify its value. The value is "
10051005
"available to Python code as ``sys.platform``."
10061006
msgstr ""
1007+
"返回当前平台的平台标识符。 在 Unix 上,这将以操作系统的“官方”名称为基础,转换为小写形式,再加上主版本号;例如,对于 Solaris "
1008+
"2.x,或称 SunOS 5.x,该值将为 ``'sunos5'``。 在 macOS 上,它将为 ``'darwin'``。 在 Windows "
1009+
"上它将为 ``'win'``。 返回的字符串指向静态存储;调用方不应修改其值。 Python 代码可通过 ``sys.platform`` 获取该值。"
10071010

10081011
#: ../../c-api/init.rst:683
10091012
msgid ""
10101013
"Return the official copyright string for the current Python version, for "
10111014
"example"
1012-
msgstr ""
1015+
msgstr "返回当前 Python 版本的官方版权字符串,例如"
10131016

10141017
#: ../../c-api/init.rst:685
10151018
msgid "``'Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam'``"
@@ -1061,33 +1064,43 @@ msgid ""
10611064
"empty string. If this function fails to initialize :data:`sys.argv`, a "
10621065
"fatal condition is signalled using :c:func:`Py_FatalError`."
10631066
msgstr ""
1067+
"根据 *argc* 和 *argv* 设置 :data:`sys.argv`。 这些形参与传给程序的 :c:func:`main` "
1068+
"函数的类似,区别在于第一项应当指向要执行的脚本文件而不是 Python 解释器对应的可执行文件。 如果没有要运行的脚本,则 *argv* "
1069+
"中的第一项可以为空字符串。 如果此函数无法初始化 :data:`sys.argv`,则将使用 :c:func:`Py_FatalError` "
1070+
"发出严重情况信号。"
10641071

10651072
#: ../../c-api/init.rst:741
10661073
msgid ""
10671074
"If *updatepath* is zero, this is all the function does. If *updatepath* is "
10681075
"non-zero, the function also modifies :data:`sys.path` according to the "
10691076
"following algorithm:"
10701077
msgstr ""
1078+
"如果 *updatepath* 为零,此函数将完成操作。 如果 *updatepath* 为非零值,则此函数还将根据以下算法修改 "
1079+
":data:`sys.path`:"
10711080

10721081
#: ../../c-api/init.rst:745
10731082
msgid ""
10741083
"If the name of an existing script is passed in ``argv[0]``, the absolute "
10751084
"path of the directory where the script is located is prepended to "
10761085
":data:`sys.path`."
1077-
msgstr ""
1086+
msgstr "如果在 ``argv[0]`` 中传入一个现有脚本,则脚本所在目录的绝对路径将被添加到 :data:`sys.path` 的开头。"
10781087

10791088
#: ../../c-api/init.rst:748
10801089
msgid ""
10811090
"Otherwise (that is, if *argc* is ``0`` or ``argv[0]`` doesn't point to an "
10821091
"existing file name), an empty string is prepended to :data:`sys.path`, which"
10831092
" is the same as prepending the current working directory (``\".\"``)."
10841093
msgstr ""
1094+
"在其他情况下 (也就是说,如果 *argc* 为 ``0`` 或 ``argv[0]`` 未指向现有文件名),则将在 :data:`sys.path` "
1095+
"的开头添加一个空字符串,这等价于添加当前工作目录 (``\".\"``)。"
10851096

10861097
#: ../../c-api/init.rst:756 ../../c-api/init.rst:792
10871098
msgid ""
10881099
"See also :c:member:`PyConfig.orig_argv` and :c:member:`PyConfig.argv` "
10891100
"members of the :ref:`Python Initialization Configuration <init-config>`."
10901101
msgstr ""
1102+
"另请参阅 :ref:`Python 初始化配置 <init-config>` 的 :c:member:`PyConfig.orig_argv` 和 "
1103+
":c:member:`PyConfig.argv` 成员。"
10911104

10921105
#: ../../c-api/init.rst:760
10931106
msgid ""
@@ -1096,13 +1109,18 @@ msgid ""
10961109
"and update :data:`sys.path` themselves if desired. See `CVE-2008-5983 "
10971110
"<https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_."
10981111
msgstr ""
1112+
"建议在出于执行单个脚本以外的目的嵌入 Python 解释器的应用程序传入 ``0`` 作为 *updatepath*,并在需要时更新 "
1113+
":data:`sys.path` 本身。 参见 `CVE-2008-5983 <https://cve.mitre.org/cgi-"
1114+
"bin/cvename.cgi?name=CVE-2008-5983>`_。"
10991115

11001116
#: ../../c-api/init.rst:765
11011117
msgid ""
11021118
"On versions before 3.1.3, you can achieve the same effect by manually "
11031119
"popping the first :data:`sys.path` element after having called "
11041120
":c:func:`PySys_SetArgv`, for example using::"
11051121
msgstr ""
1122+
"在 3.1.3 之前的版本中,你可以通过在调用 :c:func:`PySys_SetArgv` 之后手动弹出第一个 :data:`sys.path` "
1123+
"元素,例如使用::"
11061124

11071125
#: ../../c-api/init.rst:781
11081126
msgid ""

0 commit comments

Comments
 (0)