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

Skip to content

Commit 374d53c

Browse files
[po] auto sync
1 parent ef8146c commit 374d53c

10 files changed

Lines changed: 1172 additions & 1192 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.65%", "updated_at": "2024-09-27T18:54:35Z"}
1+
{"translation": "92.55%", "updated_at": "2024-10-04T15:46:52Z"}

c-api/file.po

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-09 17:14+0000\n"
14+
"POT-Creation-Date: 2024-10-04 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -101,33 +101,33 @@ msgid ""
101101
msgstr "重写 :func:`io.open_code` 的正常行为,将其形参通过所提供的处理程序来传递。"
102102

103103
#: ../../c-api/file.rst:68
104-
msgid "The handler is a function of type:"
105-
msgstr "处理器函数的类型为:"
104+
msgid "The *handler* is a function of type:"
105+
msgstr ""
106106

107-
#: ../../c-api/file.rst:72
107+
#: ../../c-api/file.rst:73
108108
msgid ""
109109
"Equivalent of :c:expr:`PyObject *(\\*)(PyObject *path, void *userData)`, "
110110
"where *path* is guaranteed to be :c:type:`PyUnicodeObject`."
111111
msgstr ""
112112
"等价于 :c:expr:`PyObject *(\\*)(PyObject *path, void *userData)`,其中 *path* 会确保为"
113113
" :c:type:`PyUnicodeObject`。"
114114

115-
#: ../../c-api/file.rst:76
115+
#: ../../c-api/file.rst:77
116116
msgid ""
117117
"The *userData* pointer is passed into the hook function. Since hook "
118118
"functions may be called from different runtimes, this pointer should not "
119119
"refer directly to Python state."
120120
msgstr "*userData* 指针会被传入钩子函数。 因于钩子函数可能由不同的运行时调用,该指针不应直接指向 Python 状态。"
121121

122-
#: ../../c-api/file.rst:80
122+
#: ../../c-api/file.rst:81
123123
msgid ""
124124
"As this hook is intentionally used during import, avoid importing new "
125125
"modules during its execution unless they are known to be frozen or available"
126126
" in ``sys.modules``."
127127
msgstr ""
128128
"鉴于这个钩子专门在导入期间使用的,请避免在新模块执行期间进行导入操作,除非已知它们为冻结状态或者是在 ``sys.modules`` 中可用。"
129129

130-
#: ../../c-api/file.rst:84
130+
#: ../../c-api/file.rst:85
131131
msgid ""
132132
"Once a hook has been set, it cannot be removed or replaced, and later calls "
133133
"to :c:func:`PyFile_SetOpenCodeHook` will fail. On failure, the function "
@@ -136,17 +136,17 @@ msgstr ""
136136
"一旦钩子被设定,它就不能被移除或替换,之后对 :c:func:`PyFile_SetOpenCodeHook` "
137137
"的调用也将失败,如果解释器已经被初始化,函数将返回 -1 并设置一个异常。"
138138

139-
#: ../../c-api/file.rst:88
139+
#: ../../c-api/file.rst:89
140140
msgid "This function is safe to call before :c:func:`Py_Initialize`."
141141
msgstr "此函数可以安全地在 :c:func:`Py_Initialize` 之前调用。"
142142

143-
#: ../../c-api/file.rst:90
143+
#: ../../c-api/file.rst:91
144144
msgid ""
145145
"Raises an :ref:`auditing event <auditing>` ``setopencodehook`` with no "
146146
"arguments."
147147
msgstr "引发一个不带参数的 :ref:`审计事件 <auditing>` ``setopencodehook``。"
148148

149-
#: ../../c-api/file.rst:100
149+
#: ../../c-api/file.rst:101
150150
msgid ""
151151
"Write object *obj* to file object *p*. The only supported flag for *flags* "
152152
"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
@@ -156,7 +156,7 @@ msgstr ""
156156
"将对象 *obj* 写入文件对象 *p*。 *flags* 唯一支持的旗标是 :c:macro:`Py_PRINT_RAW`;如果给定,则写入对象的 "
157157
":func:`str` 而不是 :func:`repr`。 成功时返回 ``0``,失败时返回 ``-1``;将设置适当的异常。"
158158

159-
#: ../../c-api/file.rst:108
159+
#: ../../c-api/file.rst:109
160160
msgid ""
161161
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
162162
"failure; the appropriate exception will be set."
@@ -174,6 +174,6 @@ msgstr "文件"
174174
msgid "EOFError (built-in exception)"
175175
msgstr "EOFError (内置异常)"
176176

177-
#: ../../c-api/file.rst:98
177+
#: ../../c-api/file.rst:99
178178
msgid "Py_PRINT_RAW (C macro)"
179179
msgstr "Py_PRINT_RAW (C 宏)"

c-api/init.po

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.12\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2024-09-27 14:50+0000\n"
15+
"POT-Creation-Date: 2024-10-04 14:53+0000\n"
1616
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1717
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1791,12 +1791,10 @@ msgstr ""
17911791
#: ../../c-api/init.rst:1271
17921792
msgid ""
17931793
"Destroy the current thread state and release the global interpreter lock. "
1794-
"Like :c:func:`PyThreadState_Delete`, the global interpreter lock need not be"
1795-
" held. The thread state must have been reset with a previous call to "
1794+
"Like :c:func:`PyThreadState_Delete`, the global interpreter lock must be "
1795+
"held. The thread state must have been reset with a previous call to "
17961796
":c:func:`PyThreadState_Clear`."
17971797
msgstr ""
1798-
"销毁当前线程状态并释放全局解释器锁。 与 :c:func:`PyThreadState_Delete` 类似,不需要持有全局解释器锁。 "
1799-
"线程状态必须已使用之前对 :c:func:`PyThreadState_Clear` 调用来重置。"
18001798

18011799
#: ../../c-api/init.rst:1279
18021800
msgid "Get the current frame of the Python thread state *tstate*."

c-api/unicode.po

Lines changed: 47 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-09-27 14:50+0000\n"
14+
"POT-Creation-Date: 2024-10-04 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1983,23 +1983,54 @@ msgid ""
19831983
":c:expr:`*p_unicode`, it sets :c:expr:`*p_unicode` to it (releasing the "
19841984
"reference to the old string object and creating a new :term:`strong "
19851985
"reference` to the interned string object), otherwise it leaves "
1986-
":c:expr:`*p_unicode` alone and interns it (creating a new :term:`strong "
1987-
"reference`). (Clarification: even though there is a lot of talk about "
1988-
"references, think of this function as reference-neutral; you own the object "
1989-
"after the call if and only if you owned it before the call.)"
1986+
":c:expr:`*p_unicode` alone and interns it."
19901987
msgstr ""
1991-
"原地内部化参数 :c:expr:`*p_unicode`。 该参数必须是一个指向 Python Unicode 字符串对象的指针变量的地址。 "
1992-
"如果已存在与 :c:expr:`*p_unicode` 相同的内部化字符串,则将其设为 :c:expr:`*p_unicode` "
1993-
"(释放对旧字符串的引用并新建一个指向内部化字符串对象的 :term:`strong reference`),否则将保持 "
1994-
":c:expr:`*p_unicode` 不变并将其内部化 (新建一个 :term:`strong reference`)。 "
1995-
"(澄清说明:虽然这里大量提及了引用,但请将此函数视为引用无关的;当且仅当你在调用之前就已拥有该对象时你才会在调用之后也拥有它。)"
19961988

1997-
#: ../../c-api/unicode.rst:1472
1989+
#: ../../c-api/unicode.rst:1466
1990+
msgid ""
1991+
"(Clarification: even though there is a lot of talk about references, think "
1992+
"of this function as reference-neutral. You must own the object you pass in; "
1993+
"after the call you no longer own the passed-in reference, but you newly own "
1994+
"the result.)"
1995+
msgstr ""
1996+
1997+
#: ../../c-api/unicode.rst:1471
1998+
msgid ""
1999+
"This function never raises an exception. On error, it leaves its argument "
2000+
"unchanged without interning it."
2001+
msgstr ""
2002+
2003+
#: ../../c-api/unicode.rst:1474
2004+
msgid ""
2005+
"Instances of subclasses of :py:class:`str` may not be interned, that is, "
2006+
":c:expr:`PyUnicode_CheckExact(*p_unicode)` must be true. If it is not, then "
2007+
"-- as with any other error -- the argument is left unchanged."
2008+
msgstr ""
2009+
2010+
#: ../../c-api/unicode.rst:1478
2011+
msgid ""
2012+
"Note that interned strings are not “immortal”. You must keep a reference to "
2013+
"the result to benefit from interning."
2014+
msgstr ""
2015+
2016+
#: ../../c-api/unicode.rst:1484
19982017
msgid ""
19992018
"A combination of :c:func:`PyUnicode_FromString` and "
2000-
":c:func:`PyUnicode_InternInPlace`, returning either a new Unicode string "
2001-
"object that has been interned, or a new (\"owned\") reference to an earlier "
2002-
"interned string object with the same value."
2019+
":c:func:`PyUnicode_InternInPlace`, meant for statically allocated strings."
2020+
msgstr ""
2021+
2022+
#: ../../c-api/unicode.rst:1487
2023+
msgid ""
2024+
"Return a new (\"owned\") reference to either a new Unicode string object "
2025+
"that has been interned, or an earlier interned string object with the same "
2026+
"value."
2027+
msgstr ""
2028+
2029+
#: ../../c-api/unicode.rst:1491
2030+
msgid ""
2031+
"Python may keep a reference to the result, or prevent it from being garbage-"
2032+
"collected promptly. For interning an unbounded number of different strings, "
2033+
"such as ones coming from user input, prefer calling "
2034+
":c:func:`PyUnicode_FromString` and :c:func:`PyUnicode_InternInPlace` "
2035+
"directly."
20032036
msgstr ""
2004-
":c:func:`PyUnicode_FromString` 和 :c:func:`PyUnicode_InternInPlace` "
2005-
"的组合操作,返回一个已内部化的新 Unicode 字符串对象,或一个指向具有相同值的原有内部化字符串对象的新的(“拥有的”)引用。"

library/ast.po

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-09-27 14:50+0000\n"
14+
"POT-Creation-Date: 2024-10-04 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -400,15 +400,14 @@ msgstr ""
400400
"``\"exec\"`` *mode* 生成的节点类型。"
401401

402402
#: ../../library/ast.rst:160
403-
msgid "*body* is a :class:`list` of the module's :ref:`ast-statements`."
404-
msgstr "*body* 是由该模块的 :ref:`ast-statements` 组成的 :class:`list`。"
403+
msgid "``body`` is a :class:`list` of the module's :ref:`ast-statements`."
404+
msgstr ""
405405

406406
#: ../../library/ast.rst:162
407407
msgid ""
408-
"*type_ignores* is a :class:`list` of the module's type ignore comments; see "
409-
":func:`ast.parse` for more details."
408+
"``type_ignores`` is a :class:`list` of the module's type ignore comments; "
409+
"see :func:`ast.parse` for more details."
410410
msgstr ""
411-
"*type_ignores* 是由该模块的类型忽略注释组成的 :class:`list`;请参阅 :func:`ast.parse` 了解更多细节。"
412411

413412
#: ../../library/ast.rst:165
414413
msgid ""
@@ -432,9 +431,9 @@ msgstr ""
432431

433432
#: ../../library/ast.rst:182
434433
msgid ""
435-
"*body* is a single node, one of the :ref:`expression types <ast-"
434+
"``body`` is a single node, one of the :ref:`expression types <ast-"
436435
"expressions>`."
437-
msgstr "*body* 为单独节点,是 :ref:`表达式类型 <ast-expressions>` 中的某一个。"
436+
msgstr ""
438437

439438
#: ../../library/ast.rst:185 ../../library/ast.rst:255
440439
msgid ""
@@ -455,8 +454,9 @@ msgstr ""
455454
"``\"single\"`` 时由 :func:`ast.parse` 所生成的节点类型。"
456455

457456
#: ../../library/ast.rst:197
458-
msgid "*body* is a :class:`list` of :ref:`statement nodes <ast-statements>`."
459-
msgstr "*body* 是由 :ref:`语句节点 <ast-statements>` 组成的 :class:`list`。"
457+
msgid ""
458+
"``body`` is a :class:`list` of :ref:`statement nodes <ast-statements>`."
459+
msgstr ""
460460

461461
#: ../../library/ast.rst:199
462462
msgid ""
@@ -509,12 +509,13 @@ msgstr ""
509509

510510
#: ../../library/ast.rst:226
511511
msgid ""
512-
"*argtypes* is a :class:`list` of :ref:`expression nodes <ast-expressions>`."
513-
msgstr "*argtypes* 是由 :ref:`表达式节点 <ast-expressions>` 组成的 :class:`list`。"
512+
"``argtypes`` is a :class:`list` of :ref:`expression nodes <ast-"
513+
"expressions>`."
514+
msgstr ""
514515

515516
#: ../../library/ast.rst:228
516-
msgid "*returns* is a single :ref:`expression node <ast-expressions>`."
517-
msgstr "*returns* 是单独的 :ref:`表达式节点 <ast-expressions>`。"
517+
msgid "``returns`` is a single :ref:`expression node <ast-expressions>`."
518+
msgstr ""
518519

519520
#: ../../library/ast.rst:230
520521
msgid ""

0 commit comments

Comments
 (0)