Skip to content

Commit b5d2086

Browse files
[po] auto sync
1 parent 24a2400 commit b5d2086

7 files changed

Lines changed: 1002 additions & 1014 deletions

File tree

‎.stat.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "99.29%", "updated_at": "2026-11-13T08:24:16Z"}
1+
{"translation": "99.25%", "updated_at": "2026-11-13T22:18:26Z"}

‎faq/design.po‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.14\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2026-11-10 00:04+0000\n"
15+
"POT-Creation-Date: 2026-11-13 21:41+0000\n"
1616
"PO-Revision-Date: 2026-05-08 17:17+0000\n"
1717
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2026\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -737,9 +737,9 @@ msgstr ""
737737

738738
#: ../../faq/design.rst:404
739739
msgid ""
740-
"If you want to force Python to delete certain things on deallocation use the"
741-
" :mod:`atexit` module to run a function that will force those deletions."
742-
msgstr "如果要强制 Python 在释放时删除某些内容,请使用 :mod:`atexit` 模块运行一个函数,强制删除这些内容。"
740+
"If you want to force Python to delete certain things when Python exits, use "
741+
"the :mod:`atexit` module to run a function that will force those deletions."
742+
msgstr ""
743743

744744
#: ../../faq/design.rst:409
745745
msgid "Why are there separate tuple and list data types?"

‎faq/extending.po‎

Lines changed: 28 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-11-10 00:04+0000\n"
14+
"POT-Creation-Date: 2026-11-13 21:41+0000\n"
1515
"PO-Revision-Date: 2026-05-08 17:17+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2026\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -375,63 +375,51 @@ msgstr "如何调试扩展?"
375375

376376
#: ../../faq/extending.rst:212
377377
msgid ""
378-
"When using GDB with dynamically loaded extensions, you can't set a "
379-
"breakpoint in your extension until your extension is loaded."
380-
msgstr "将 GDB 与动态加载的扩展一起使用时,在加载扩展之前,不能在扩展中设置断点。"
381-
382-
#: ../../faq/extending.rst:215
383-
msgid "In your ``.gdbinit`` file (or interactively), add the command:"
384-
msgstr "在您的 ``.gdbinit`` 文件中(或交互式)添加命令:"
385-
386-
#: ../../faq/extending.rst:217
387-
msgid "br _PyImport_LoadDynamicModule"
388-
msgstr "br _PyImport_LoadDynamicModule"
378+
"When using GDB with dynamically loaded extensions, enable pending "
379+
"breakpoints to set a breakpoint before the extension is loaded. For "
380+
"example, to stop in a function named ``myfunction``:"
381+
msgstr ""
389382

390-
#: ../../faq/extending.rst:221
391-
msgid "Then, when you run GDB:"
392-
msgstr "然后运行 GDB:"
383+
#: ../../faq/extending.rst:216
384+
msgid ""
385+
"$ gdb /local/bin/python\n"
386+
"(gdb) set breakpoint pending on\n"
387+
"(gdb) break myfunction\n"
388+
"(gdb) run myscript.py"
389+
msgstr ""
393390

394391
#: ../../faq/extending.rst:223
395392
msgid ""
396-
"$ gdb /local/bin/python\n"
397-
"gdb) run myscript.py\n"
398-
"gdb) continue # repeat until your extension is loaded\n"
399-
"gdb) finish # so that your extension is loaded\n"
400-
"gdb) br myfunction.c:50\n"
401-
"gdb) continue"
393+
"GDB resolves the breakpoint when the extension is loaded and stops when the "
394+
"function is called. You can also set a pending breakpoint directly in your "
395+
"extension's source code, for example with ``break myfunction.c:50``."
402396
msgstr ""
403-
"$ gdb /local/bin/python\n"
404-
"gdb) run myscript.py\n"
405-
"gdb) continue # 重复直到你的扩展被载入\n"
406-
"gdb) finish # 你的扩展已被载入\n"
407-
"gdb) br myfunction.c:50\n"
408-
"gdb) continue"
409397

410-
#: ../../faq/extending.rst:233
398+
#: ../../faq/extending.rst:228
411399
msgid ""
412400
"I want to compile a Python module on my Linux system, but some files are "
413401
"missing. Why?"
414402
msgstr "我想在 Linux 系统上编译一个 Python 模块,但是缺少一些文件。为什么?"
415403

416-
#: ../../faq/extending.rst:235
404+
#: ../../faq/extending.rst:230
417405
msgid ""
418406
"Most packaged versions of Python omit some files required for compiling "
419407
"Python extensions."
420408
msgstr "大多数打包的 Python 版本都会省略一些编译 Python 扩展所必需的文件。"
421409

422-
#: ../../faq/extending.rst:238
410+
#: ../../faq/extending.rst:233
423411
msgid "For Red Hat, install the python3-devel RPM to get the necessary files."
424412
msgstr "对于 Red Hat,请安装 python3-devel RPM 来获取必需的文件。"
425413

426-
#: ../../faq/extending.rst:240
414+
#: ../../faq/extending.rst:235
427415
msgid "For Debian, run ``apt-get install python3-dev``."
428416
msgstr "对于 Debian,请运行 ``apt-get install python3-dev``。"
429417

430-
#: ../../faq/extending.rst:243
418+
#: ../../faq/extending.rst:238
431419
msgid "How do I tell \"incomplete input\" from \"invalid input\"?"
432420
msgstr "如何区分“输入不完整”和“输入无效”?"
433421

434-
#: ../../faq/extending.rst:245
422+
#: ../../faq/extending.rst:240
435423
msgid ""
436424
"Sometimes you want to emulate the Python interactive interpreter's behavior,"
437425
" where it gives you a continuation prompt when the input is incomplete (e.g."
@@ -442,13 +430,13 @@ msgstr ""
442430
"有时,希望模仿 Python "
443431
"交互式解释器的行为,在输入不完整时(例如,您键入了\"if\"语句的开头,或者没有关闭括号或三引号字符串),给出一个续行提示,但当输入无效时,立即给出一条语法错误消息。"
444432

445-
#: ../../faq/extending.rst:251
433+
#: ../../faq/extending.rst:246
446434
msgid ""
447435
"In Python you can use the :mod:`codeop` module, which approximates the "
448436
"parser's behavior sufficiently. IDLE uses this, for example."
449437
msgstr "在 Python 中,您可以使用 :mod:`codeop` 模块,该模块非常接近解析器的行为。例如,IDLE 就使用了这个。"
450438

451-
#: ../../faq/extending.rst:254
439+
#: ../../faq/extending.rst:249
452440
msgid ""
453441
"The easiest way to do it in C is to call :c:func:`PyRun_InteractiveLoop` "
454442
"(perhaps in a separate thread) and let the Python interpreter handle the "
@@ -460,11 +448,11 @@ msgstr ""
460448
"解释器为您处理输入。 您还可以设置 :c:func:`PyOS_ReadlineFunctionPointer` 指向您的自定义输入函数。 "
461449
"有关更多提示,请参阅 ``Modules/readline.c`` 和 ``Parser/myreadline.c``。"
462450

463-
#: ../../faq/extending.rst:261
451+
#: ../../faq/extending.rst:256
464452
msgid "How do I find undefined g++ symbols __builtin_new or __pure_virtual?"
465453
msgstr "如何找到未定义的 g++ 符号 __builtin_new 或 __pure_virtual?"
466454

467-
#: ../../faq/extending.rst:263
455+
#: ../../faq/extending.rst:258
468456
msgid ""
469457
"To dynamically load g++ extension modules, you must recompile Python, relink"
470458
" it using g++ (change LINKCC in the Python Modules Makefile), and link your "
@@ -474,19 +462,19 @@ msgstr ""
474462
"要动态加载 g++ 扩展模块,必须重新编译 Python,要使用 g++ 重新链接(在 Python Modules Makefile 中更改 "
475463
"LINKCC),及链接扩展模块 (例如 ``g++ -shared -o mymodule.so mymodule.o``)。"
476464

477-
#: ../../faq/extending.rst:269
465+
#: ../../faq/extending.rst:264
478466
msgid ""
479467
"Can I create an object class with some methods implemented in C and others "
480468
"in Python (e.g. through inheritance)?"
481469
msgstr "能否创建一个对象类,其中部分方法在 C 中实现,而其他方法在 Python 中实现(例如通过继承)?"
482470

483-
#: ../../faq/extending.rst:271
471+
#: ../../faq/extending.rst:266
484472
msgid ""
485473
"Yes, you can inherit from built-in classes such as :class:`int`, "
486474
":class:`list`, :class:`dict`, etc."
487475
msgstr "是的,您可以继承内置类,例如 :class:`int`, :class:`list`, :class:`dict` 等。"
488476

489-
#: ../../faq/extending.rst:274
477+
#: ../../faq/extending.rst:269
490478
msgid ""
491479
"The Boost Python Library (BPL, "
492480
"https://www.boost.org/libs/python/doc/index.html) provides a way of doing "

0 commit comments

Comments
 (0)