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

Skip to content

Commit fdd7472

Browse files
committed
[po] auto sync bot
1 parent 5f6acd8 commit fdd7472

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

using/cmdline.po

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,31 +1209,33 @@ msgstr "请参阅 :pep:`538` 了解详情。"
12091209
msgid ""
12101210
"If this environment variable is set to a non-empty string, enable the "
12111211
"CPython \"development mode\". See the :option:`-X` ``dev`` option."
1212-
msgstr ""
1212+
msgstr "如果此环境变量被设为一个非空字符串,则会启用 CPython “开发模式”。 参见 :option:`-X` ``dev`` 选项。"
12131213

12141214
#: ../../using/cmdline.rst:852
12151215
msgid ""
12161216
"If set to ``1``, enables the interpreter's UTF-8 mode, where ``UTF-8`` is "
12171217
"used as the text encoding for system interfaces, regardless of the current "
12181218
"locale setting."
1219-
msgstr ""
1219+
msgstr "如果设为 ``1``,则会启用解释器的 UTF-8 模式,将 ``UTF-8`` 用作系统接口的文本编码,无论当前区域选项如何设置。"
12201220

12211221
#: ../../using/cmdline.rst:856
12221222
msgid "This means that:"
1223-
msgstr ""
1223+
msgstr "这意味着:"
12241224

12251225
#: ../../using/cmdline.rst:858
12261226
msgid ""
12271227
":func:`sys.getfilesystemencoding()` returns ``'UTF-8'`` (the locale encoding"
12281228
" is ignored)."
1229-
msgstr ""
1229+
msgstr ":func:`sys.getfilesystemencoding()` 将返回 ``'UTF-8'`` (本地编码会被忽略)。"
12301230

12311231
#: ../../using/cmdline.rst:860
12321232
msgid ""
12331233
":func:`locale.getpreferredencoding()` returns ``'UTF-8'`` (the locale "
12341234
"encoding is ignored, and the function's ``do_setlocale`` parameter has no "
12351235
"effect)."
12361236
msgstr ""
1237+
":func:`locale.getpreferredencoding()` 将返回 ``'UTF-8'`` (本地编码会被忽略,并且该函数的 "
1238+
"``do_setlocale`` 参数不起作用)。"
12371239

12381240
#: ../../using/cmdline.rst:863
12391241
msgid ""
@@ -1243,23 +1245,27 @@ msgid ""
12431245
" (:data:`sys.stderr` continues to use ``backslashreplace`` as it does in the"
12441246
" default locale-aware mode)"
12451247
msgstr ""
1248+
":data:`sys.stdin`, :data:`sys.stdout` 和 :data:`sys.stderr` 都将 UTF-8 "
1249+
"用作它们的文本编码,并且为 :data:`sys.stdin` 和 :data:`sys.stdout` 启用 ``surrogateescape`` "
1250+
":ref:`错误处理句柄 <error-handlers>` (:data:`sys.stderr` 会继续使用 "
1251+
"``backslashreplace`` 如同在默认的局部感知模式下一样)"
12461252

12471253
#: ../../using/cmdline.rst:869
12481254
msgid ""
12491255
"As a consequence of the changes in those lower level APIs, other higher "
12501256
"level APIs also exhibit different default behaviours:"
1251-
msgstr ""
1257+
msgstr "作为低层级 API 发生改变的结果,其他高层级 API 也会表现出不同的默认行为:"
12521258

12531259
#: ../../using/cmdline.rst:872
12541260
msgid ""
12551261
"Command line arguments, environment variables and filenames are decoded to "
12561262
"text using the UTF-8 encoding."
1257-
msgstr ""
1263+
msgstr "命令行参数,环境变量和文件名会使用 UTF-8 编码来解码为文本。"
12581264

12591265
#: ../../using/cmdline.rst:874
12601266
msgid ""
12611267
":func:`os.fsdecode()` and :func:`os.fsencode()` use the UTF-8 encoding."
1262-
msgstr ""
1268+
msgstr ":func:`os.fsdecode()` 和 :func:`os.fsencode()` 会使用 UTF-8 编码。"
12631269

12641270
#: ../../using/cmdline.rst:875
12651271
msgid ""
@@ -1268,13 +1274,16 @@ msgid ""
12681274
"default so that attempting to open a binary file in text mode is likely to "
12691275
"raise an exception rather than producing nonsense data."
12701276
msgstr ""
1277+
":func:`open()`, :func:`io.open()` 和 :func:`codecs.open()` 默认会使用 UTF-8 编码。 "
1278+
"但是,它们默认仍将使用严格错误处理句柄,因此试图在文本模式下打开二进制文件将可能引发异常,而不是生成无意义的数据。"
12711279

12721280
#: ../../using/cmdline.rst:880
12731281
msgid ""
12741282
"Note that the standard stream settings in UTF-8 mode can be overridden by "
12751283
":envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware "
12761284
"mode)."
12771285
msgstr ""
1286+
"请注意 UTF-8 模式下的标准流设置可以被 :envvar:`PYTHONIOENCODING` 所覆盖(在默认的区域感知模式下也同样如此)。"
12781287

12791288
#: ../../using/cmdline.rst:884
12801289
msgid ""

0 commit comments

Comments
 (0)