Skip to content

Commit c6a691e

Browse files
[po] auto sync
1 parent 6901956 commit c6a691e

File tree

5 files changed

+460
-412
lines changed

5 files changed

+460
-412
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.12%", "updated_at": "2023-09-08T00:45:39Z"}
1+
{"translation": "90.18%", "updated_at": "2023-09-09T03:32:15Z"}

c-api/init.po

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.10\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2023-09-01 15:12+0000\n"
15+
"POT-Creation-Date: 2023-09-08 15:14+0000\n"
1616
"PO-Revision-Date: 2022-11-05 17:21+0000\n"
1717
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -371,13 +371,13 @@ msgstr ""
371371
msgid ""
372372
"Set by the :option:`-s` and :option:`-I` options, and the "
373373
":envvar:`PYTHONNOUSERSITE` environment variable."
374-
msgstr ""
374+
msgstr "由 :option:`-s` 和 :option:`-I` 选项以及 :envvar:`PYTHONNOUSERSITE` 环境变量设置。"
375375

376376
#: ../../c-api/init.rst:196
377377
msgid ""
378378
"Set by the :option:`-O` option and the :envvar:`PYTHONOPTIMIZE` environment "
379379
"variable."
380-
msgstr ""
380+
msgstr "由 :option:`-O` 选项和 :envvar:`PYTHONOPTIMIZE` 环境变量设置。"
381381

382382
#: ../../c-api/init.rst:201
383383
msgid ""
@@ -396,7 +396,7 @@ msgstr "强制 stdout 和 stderr 流不带缓冲。"
396396
msgid ""
397397
"Set by the :option:`-u` option and the :envvar:`PYTHONUNBUFFERED` "
398398
"environment variable."
399-
msgstr ""
399+
msgstr "由 :option:`-u` 选项和 :envvar:`PYTHONUNBUFFERED` 环境变量设置。"
400400

401401
#: ../../c-api/init.rst:216
402402
msgid ""
@@ -405,12 +405,14 @@ msgid ""
405405
"to ``2``, print a message for each file that is checked for when searching "
406406
"for a module. Also provides information on module cleanup at exit."
407407
msgstr ""
408+
"每次初始化模块时打印一条消息,显示加载模块的位置(文件名或内置模块)。 如果大于或等于 ``2``,则为搜索模块时检查的每个文件打印一条消息。 "
409+
"此外还会在退出时提供模块清理信息。"
408410

409411
#: ../../c-api/init.rst:221
410412
msgid ""
411413
"Set by the :option:`-v` option and the :envvar:`PYTHONVERBOSE` environment "
412414
"variable."
413-
msgstr ""
415+
msgstr "由 :option:`-v` 选项和 :envvar:`PYTHONVERBOSE` 环境变量设置。"
414416

415417
#: ../../c-api/init.rst:226
416418
msgid "Initializing and finalizing the interpreter"
@@ -422,6 +424,8 @@ msgid ""
422424
"this should be called before using any other Python/C API functions; see "
423425
":ref:`Before Python Initialization <pre-init-safe>` for the few exceptions."
424426
msgstr ""
427+
"初始化 Python 解释器。 在嵌入 Python 的应用程序中,它应当在使用任何其他 Python/C API 函数之前被调用;请参阅 "
428+
":ref:`在 Python 初始化之前 <pre-init-safe>` 了解少数的例外情况。"
425429

426430
#: ../../c-api/init.rst:248
427431
msgid ""
@@ -432,6 +436,10 @@ msgid ""
432436
"called for a second time (without calling :c:func:`Py_FinalizeEx` first). "
433437
"There is no return value; it is a fatal error if the initialization fails."
434438
msgstr ""
439+
"这将初始化已加载模块表 (``sys.modules``),并创建基本模块 :mod:`builtins`、:mod:`__main__` 和 "
440+
":mod:`sys`。 它还会初始化模块搜索路径 (``sys.path``)。 它不会设置 ``sys.argv``;如有需要请使用 "
441+
":c:func:`PySys_SetArgvEx`。 当第二次调用时 (在未事先调用 :c:func:`Py_FinalizeEx` 的情况下) "
442+
"将不会执行任何操作。 它没有返回值;如果初始化失败则会发生致命错误。"
435443

436444
#: ../../c-api/init.rst:257
437445
msgid ""
@@ -447,13 +455,17 @@ msgid ""
447455
"*initsigs* is ``0``, it skips initialization registration of signal "
448456
"handlers, which might be useful when Python is embedded."
449457
msgstr ""
458+
"如果 *initsigs* 为 ``1`` 则该函数的工作方式与 :c:func:`Py_Initialize` 类似。 如果 *initsigs* 为"
459+
" ``0``,它将跳过信号处理句柄的初始化注册,这在嵌入 Python 时可能会很有用处。"
450460

451461
#: ../../c-api/init.rst:270
452462
msgid ""
453463
"Return true (nonzero) when the Python interpreter has been initialized, "
454464
"false (zero) if not. After :c:func:`Py_FinalizeEx` is called, this returns "
455465
"false until :c:func:`Py_Initialize` is called again."
456466
msgstr ""
467+
"如果 Python 解释器已初始化,则返回真值(非零);否则返回假值(零)。 在调用 :c:func:`Py_FinalizeEx` "
468+
"之后,此函数将返回假值直到 :c:func:`Py_Initialize` 再次被调用。"
457469

458470
#: ../../c-api/init.rst:277
459471
msgid ""
@@ -466,6 +478,10 @@ msgid ""
466478
"Normally the return value is ``0``. If there were errors during "
467479
"finalization (flushing buffered data), ``-1`` is returned."
468480
msgstr ""
481+
"撤销 :c:func:`Py_Initialize` 所做的所有初始化操作和后续对 Python/C API 函数的使用,并销毁自上次调用 "
482+
":c:func:`Py_Initialize` 以来创建但尚未销毁的所有子解释器(参见下文 :c:func:`Py_NewInterpreter` "
483+
"一节)。 在理想情况下,这会释放 Python 解释器分配的所有内存。 当第二次调用时(在未再次调用 :c:func:`Py_Initialize` "
484+
"的情况下),这将不执行任何操作。 正常情况下返回值是 ``0``。 如果在最终化(刷新缓冲数据)过程中出现错误,则返回 ``-1``。"
469485

470486
#: ../../c-api/init.rst:286
471487
msgid ""
@@ -499,41 +515,46 @@ msgid ""
499515
"Raises an :ref:`auditing event <auditing>` "
500516
"``cpython._PySys_ClearAuditHooks`` with no arguments."
501517
msgstr ""
518+
"引发一个 :ref:`审计事件 <auditing>` ``cpython._PySys_ClearAuditHooks``,不附带任何参数。"
502519

503520
#: ../../c-api/init.rst:311
504521
msgid ""
505522
"This is a backwards-compatible version of :c:func:`Py_FinalizeEx` that "
506523
"disregards the return value."
507-
msgstr ""
524+
msgstr "这是一个不考虑返回值的 :c:func:`Py_FinalizeEx` 的向下兼容版本。"
508525

509526
#: ../../c-api/init.rst:316
510527
msgid "Process-wide parameters"
511-
msgstr ""
528+
msgstr "进程级参数"
512529

513530
#: ../../c-api/init.rst:326
514531
msgid ""
515532
"This function should be called before :c:func:`Py_Initialize`, if it is "
516533
"called at all. It specifies which encoding and error handling to use with "
517534
"standard IO, with the same meanings as in :func:`str.encode`."
518535
msgstr ""
536+
"如果要调用该函数,应当在 :c:func:`Py_Initialize` 之前调用。 它指定了标准 IO 使用的编码格式和错误处理方式,其含义与 "
537+
":func:`str.encode` 中的相同。"
519538

520539
#: ../../c-api/init.rst:330
521540
msgid ""
522541
"It overrides :envvar:`PYTHONIOENCODING` values, and allows embedding code to"
523542
" control IO encoding when the environment variable does not work."
524-
msgstr ""
543+
msgstr "它覆盖了 :envvar:`PYTHONIOENCODING` 的值,并允许嵌入代码以便在环境变量不起作用时控制 IO 编码格式。"
525544

526545
#: ../../c-api/init.rst:333
527546
msgid ""
528547
"*encoding* and/or *errors* may be ``NULL`` to use :envvar:`PYTHONIOENCODING`"
529548
" and/or default values (depending on other settings)."
530549
msgstr ""
550+
"*encoding* 和/或 *errors* 可以为 ``NULL`` 以使用 :envvar:`PYTHONIOENCODING` "
551+
"和/或默认值(取决于其他设置)。"
531552

532553
#: ../../c-api/init.rst:337
533554
msgid ""
534555
"Note that :data:`sys.stderr` always uses the \"backslashreplace\" error "
535556
"handler, regardless of this (or any other) setting."
536-
msgstr ""
557+
msgstr "请注意无论是否有此设置(或任何其他设置),:data:`sys.stderr` 都会使用 \"backslashreplace\" 错误处理句柄。"
537558

538559
#: ../../c-api/init.rst:340
539560
msgid ""

c-api/sys.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
# Translators:
77
# Alpha Du <alphanow@gmail.com>, 2023
88
# Rafael Fontenelle <rffontenelle@gmail.com>, 2023
9-
# Freesand Leo <yuqinju@163.com>, 2023
9+
# Jiuh-star <jiuh.star@gmail.com>, 2023
1010
#
1111
#, fuzzy
1212
msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.10\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2023-09-01 15:12+0000\n"
16+
"POT-Creation-Date: 2023-09-08 15:14+0000\n"
1717
"PO-Revision-Date: 2022-11-05 17:21+0000\n"
18-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2023\n"
18+
"Last-Translator: Jiuh-star <jiuh.star@gmail.com>, 2023\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"

0 commit comments

Comments
 (0)