Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7bd4c08

Browse files
[po] auto sync
1 parent2871ff8 commit7bd4c08

12 files changed

+92
-55
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"77.16%","updated_at":"2025-05-09T06:57:40Z"}
1+
{"translation":"77.25%","updated_at":"2025-05-09T08:57:19Z"}

‎c-api/init_config.po

Lines changed: 48 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ msgstr "示例"
6363
msgid""
6464
"Example of customized Python always running with the :ref:`Python "
6565
"Development Mode <devmode>` enabled; return ``-1`` on error:"
66-
msgstr""
66+
msgstr"运行时始终启用 :ref:`Python 开发模式 <devmode>` 的定制版 Python 的例子;出错时将返回 ``-1``:"
6767

6868
#:../../c-api/init_config.rst:34
6969
msgid""
@@ -101,71 +101,104 @@ msgid ""
101101
" }\n"
102102
"}"
103103
msgstr""
104+
"int init_python(void)\n"
105+
"{\n"
106+
" PyInitConfig *config = PyInitConfig_Create();\n"
107+
" if (config == NULL) {\n"
108+
" printf(\"PYTHON INIT ERROR: memory allocation failed\\n\");\n"
109+
" return -1;\n"
110+
" }\n"
111+
"\n"
112+
" // 启用 Python 开发模式\n"
113+
" if (PyInitConfig_SetInt(config,\"dev_mode\", 1) < 0) {\n"
114+
" goto error;\n"
115+
" }\n"
116+
"\n"
117+
" // 使用配置初始化 Python\n"
118+
" if (Py_InitializeFromInitConfig(config) < 0) {\n"
119+
" goto error;\n"
120+
" }\n"
121+
" PyInitConfig_Free(config);\n"
122+
" return 0;\n"
123+
"\n"
124+
"error:\n"
125+
" {\n"
126+
" // 显示错误消息\n"
127+
" //\n"
128+
" // 使用这种不常见的花括号风格,因为你不能\n"
129+
" // 将跳转目标指向变量声明。\n"
130+
" const char *err_msg;\n"
131+
" (void)PyInitConfig_GetError(config, &err_msg);\n"
132+
" printf(\"PYTHON INIT ERROR: %s\\n\", err_msg);\n"
133+
" PyInitConfig_Free(config);\n"
134+
" return -1;\n"
135+
" }\n"
136+
"}"
104137

105138
#:../../c-api/init_config.rst:71
106139
msgid"Create Config"
107-
msgstr""
140+
msgstr"创建配置"
108141

109142
#:../../c-api/init_config.rst:75
110143
msgid"Opaque structure to configure the Python initialization."
111-
msgstr""
144+
msgstr"用于配置 Python 初始化的不透明结构体。"
112145

113146
#:../../c-api/init_config.rst:80
114147
msgid""
115148
"Create a new initialization configuration using :ref:`Isolated Configuration"
116149
" <init-isolated-conf>` default values."
117-
msgstr""
150+
msgstr"使用 :ref:`隔离配置 <init-isolated-conf>` 的默认值新建一个初始化配置。"
118151

119152
#:../../c-api/init_config.rst:83
120153
msgid"It must be freed by :c:func:`PyInitConfig_Free`."
121-
msgstr""
154+
msgstr"它必须由 :c:func:`PyInitConfig_Free` 来释放。"
122155

123156
#:../../c-api/init_config.rst:85
124157
msgid"Return ``NULL`` on memory allocation failure."
125-
msgstr""
158+
msgstr"内存分配失败时返回 ``NULL``。"
126159

127160
#:../../c-api/init_config.rst:90
128161
msgid"Free memory of the initialization configuration *config*."
129-
msgstr""
162+
msgstr"释放初始化配置 *config* 的内存。"
130163

131164
#:../../c-api/init_config.rst:92
132165
msgid"If *config* is ``NULL``, no operation is performed."
133-
msgstr""
166+
msgstr"如果 *config* 为 ``NULL``,则不执行任何操作。"
134167

135168
#:../../c-api/init_config.rst:96
136169
msgid"Error Handling"
137170
msgstr"错误处理"
138171

139172
#:../../c-api/init_config.rst:100
140173
msgid"Get the *config* error message."
141-
msgstr""
174+
msgstr"获取 *config* 错误消息。"
142175

143176
#:../../c-api/init_config.rst:102
144177
msgid"Set *\\*err_msg* and return ``1`` if an error is set."
145-
msgstr""
178+
msgstr"如果设置了一个错误则设置 *\\*err_msg* 并返回 ``1``。"
146179

147180
#:../../c-api/init_config.rst:103
148181
msgid"Set *\\*err_msg* to ``NULL`` and return ``0`` otherwise."
149-
msgstr""
182+
msgstr"在其他情况下将 *\\*err_msg* 设为 ``NULL`` 并返回 ``0``。"
150183

151184
#:../../c-api/init_config.rst:105
152185
msgid"An error message is an UTF-8 encoded string."
153-
msgstr""
186+
msgstr"错误消息是一个 UTF-8 编码的字符串。"
154187

155188
#:../../c-api/init_config.rst:107
156189
msgid""
157190
"If *config* has an exit code, format the exit code as an error message."
158-
msgstr""
191+
msgstr"如果 *config* 具有一个退出码,则将退出码格式化为错误消息。"
159192

160193
#:../../c-api/init_config.rst:110
161194
msgid""
162195
"The error message remains valid until another ``PyInitConfig`` function is "
163196
"called with *config*. The caller doesn't have to free the error message."
164-
msgstr""
197+
msgstr"错误消息将保持无效直到调用另一个 ``PyInitConfig`` 并附带 *config*。 调用方不必释放错误消息。"
165198

166199
#:../../c-api/init_config.rst:117
167200
msgid"Get the *config* exit code."
168-
msgstr""
201+
msgstr"获取 *config* 退出码。"
169202

170203
#:../../c-api/init_config.rst:119
171204
msgid"Set *\\*exitcode* and return ``1`` if *config* has an exit code set."

‎deprecations/index.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ msgstr ""
224224

225225
#:../../deprecations/pending-removal-in-3.15.rst:100
226226
msgid":mod:`zipimport`:"
227-
msgstr""
227+
msgstr":mod:`zipimport`:"
228228

229229
#:../../deprecations/pending-removal-in-3.15.rst:102
230230
msgid""
@@ -280,27 +280,27 @@ msgstr ""
280280

281281
#:../../deprecations/pending-removal-in-3.16.rst:29
282282
msgid":class:`asyncio.AbstractEventLoopPolicy`"
283-
msgstr""
283+
msgstr":class:`asyncio.AbstractEventLoopPolicy`"
284284

285285
#:../../deprecations/pending-removal-in-3.16.rst:30
286286
msgid":class:`asyncio.DefaultEventLoopPolicy`"
287-
msgstr""
287+
msgstr":class:`asyncio.DefaultEventLoopPolicy`"
288288

289289
#:../../deprecations/pending-removal-in-3.16.rst:31
290290
msgid":class:`asyncio.WindowsSelectorEventLoopPolicy`"
291-
msgstr""
291+
msgstr":class:`asyncio.WindowsSelectorEventLoopPolicy`"
292292

293293
#:../../deprecations/pending-removal-in-3.16.rst:32
294294
msgid":class:`asyncio.WindowsProactorEventLoopPolicy`"
295-
msgstr""
295+
msgstr":class:`asyncio.WindowsProactorEventLoopPolicy`"
296296

297297
#:../../deprecations/pending-removal-in-3.16.rst:33
298298
msgid":func:`asyncio.get_event_loop_policy`"
299-
msgstr""
299+
msgstr":func:`asyncio.get_event_loop_policy`"
300300

301301
#:../../deprecations/pending-removal-in-3.16.rst:34
302302
msgid":func:`asyncio.set_event_loop_policy`"
303-
msgstr""
303+
msgstr":func:`asyncio.set_event_loop_policy`"
304304

305305
#:../../deprecations/pending-removal-in-3.16.rst:36
306306
msgid""

‎deprecations/pending-removal-in-3.15.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ msgstr ""
212212

213213
#:../../deprecations/pending-removal-in-3.15.rst:100
214214
msgid":mod:`zipimport`:"
215-
msgstr""
215+
msgstr":mod:`zipimport`:"
216216

217217
#:../../deprecations/pending-removal-in-3.15.rst:102
218218
msgid""

‎deprecations/pending-removal-in-3.16.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,27 +72,27 @@ msgstr ""
7272

7373
#:../../deprecations/pending-removal-in-3.16.rst:29
7474
msgid":class:`asyncio.AbstractEventLoopPolicy`"
75-
msgstr""
75+
msgstr":class:`asyncio.AbstractEventLoopPolicy`"
7676

7777
#:../../deprecations/pending-removal-in-3.16.rst:30
7878
msgid":class:`asyncio.DefaultEventLoopPolicy`"
79-
msgstr""
79+
msgstr":class:`asyncio.DefaultEventLoopPolicy`"
8080

8181
#:../../deprecations/pending-removal-in-3.16.rst:31
8282
msgid":class:`asyncio.WindowsSelectorEventLoopPolicy`"
83-
msgstr""
83+
msgstr":class:`asyncio.WindowsSelectorEventLoopPolicy`"
8484

8585
#:../../deprecations/pending-removal-in-3.16.rst:32
8686
msgid":class:`asyncio.WindowsProactorEventLoopPolicy`"
87-
msgstr""
87+
msgstr":class:`asyncio.WindowsProactorEventLoopPolicy`"
8888

8989
#:../../deprecations/pending-removal-in-3.16.rst:33
9090
msgid":func:`asyncio.get_event_loop_policy`"
91-
msgstr""
91+
msgstr":func:`asyncio.get_event_loop_policy`"
9292

9393
#:../../deprecations/pending-removal-in-3.16.rst:34
9494
msgid":func:`asyncio.set_event_loop_policy`"
95-
msgstr""
95+
msgstr":func:`asyncio.set_event_loop_policy`"
9696

9797
#:../../deprecations/pending-removal-in-3.16.rst:36
9898
msgid""

‎library/ctypes.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ msgstr ""
668668

669669
#:../../library/ctypes.rst:275
670670
msgid":c:expr:`float complex`"
671-
msgstr""
671+
msgstr":c:expr:`float complex`"
672672

673673
#:../../library/ctypes.rst:275../../library/ctypes.rst:277
674674
#:../../library/ctypes.rst:279

‎library/functions.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ msgstr ""
10091009
msgid""
10101010
"See also :meth:`complex.from_number` which only accepts a single numeric "
10111011
"argument."
1012-
msgstr""
1012+
msgstr"另请参阅仅接受单个数字参数的 :meth:`complex.from_number`。"
10131013

10141014
#:../../library/functions.rst:445
10151015
msgid"If all arguments are omitted, returns ``0j``."
@@ -2075,7 +2075,7 @@ msgstr ""
20752075

20762076
#:../../library/functions.rst:1219
20772077
msgid"Added the *strict* parameter."
2078-
msgstr""
2078+
msgstr"增加了 *strict* 形参。"
20792079

20802080
#:../../library/functions.rst:1227
20812081
msgid""

‎library/struct.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ msgstr ""
609609

610610
#:../../library/struct.rst:263
611611
msgid":c:expr:`float complex`"
612-
msgstr""
612+
msgstr":c:expr:`float complex`"
613613

614614
#:../../library/struct.rst:263../../library/struct.rst:265
615615
msgid"complex"

‎using/windows.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ msgstr ""
9999

100100
#:../../using/windows.rst:64
101101
msgid"Python Install Manager"
102-
msgstr""
102+
msgstr"Python 安装管理器"
103103

104104
#:../../using/windows.rst:67
105105
msgid"Installation"

‎whatsnew/3.12.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,7 +3017,7 @@ msgstr ""
30173017

30183018
#:../../deprecations/pending-removal-in-3.15.rst:100
30193019
msgid":mod:`zipimport`:"
3020-
msgstr""
3020+
msgstr":mod:`zipimport`:"
30213021

30223022
#:../../deprecations/pending-removal-in-3.15.rst:102
30233023
msgid""
@@ -3069,27 +3069,27 @@ msgstr ""
30693069

30703070
#:../../deprecations/pending-removal-in-3.16.rst:29
30713071
msgid":class:`asyncio.AbstractEventLoopPolicy`"
3072-
msgstr""
3072+
msgstr":class:`asyncio.AbstractEventLoopPolicy`"
30733073

30743074
#:../../deprecations/pending-removal-in-3.16.rst:30
30753075
msgid":class:`asyncio.DefaultEventLoopPolicy`"
3076-
msgstr""
3076+
msgstr":class:`asyncio.DefaultEventLoopPolicy`"
30773077

30783078
#:../../deprecations/pending-removal-in-3.16.rst:31
30793079
msgid":class:`asyncio.WindowsSelectorEventLoopPolicy`"
3080-
msgstr""
3080+
msgstr":class:`asyncio.WindowsSelectorEventLoopPolicy`"
30813081

30823082
#:../../deprecations/pending-removal-in-3.16.rst:32
30833083
msgid":class:`asyncio.WindowsProactorEventLoopPolicy`"
3084-
msgstr""
3084+
msgstr":class:`asyncio.WindowsProactorEventLoopPolicy`"
30853085

30863086
#:../../deprecations/pending-removal-in-3.16.rst:33
30873087
msgid":func:`asyncio.get_event_loop_policy`"
3088-
msgstr""
3088+
msgstr":func:`asyncio.get_event_loop_policy`"
30893089

30903090
#:../../deprecations/pending-removal-in-3.16.rst:34
30913091
msgid":func:`asyncio.set_event_loop_policy`"
3092-
msgstr""
3092+
msgstr":func:`asyncio.set_event_loop_policy`"
30933093

30943094
#:../../deprecations/pending-removal-in-3.16.rst:36
30953095
msgid""

‎whatsnew/3.13.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4000,7 +4000,7 @@ msgstr ""
40004000

40014001
#:../../deprecations/pending-removal-in-3.15.rst:100
40024002
msgid":mod:`zipimport`:"
4003-
msgstr""
4003+
msgstr":mod:`zipimport`:"
40044004

40054005
#:../../deprecations/pending-removal-in-3.15.rst:102
40064006
msgid""
@@ -4048,27 +4048,27 @@ msgstr ""
40484048

40494049
#:../../deprecations/pending-removal-in-3.16.rst:29
40504050
msgid":class:`asyncio.AbstractEventLoopPolicy`"
4051-
msgstr""
4051+
msgstr":class:`asyncio.AbstractEventLoopPolicy`"
40524052

40534053
#:../../deprecations/pending-removal-in-3.16.rst:30
40544054
msgid":class:`asyncio.DefaultEventLoopPolicy`"
4055-
msgstr""
4055+
msgstr":class:`asyncio.DefaultEventLoopPolicy`"
40564056

40574057
#:../../deprecations/pending-removal-in-3.16.rst:31
40584058
msgid":class:`asyncio.WindowsSelectorEventLoopPolicy`"
4059-
msgstr""
4059+
msgstr":class:`asyncio.WindowsSelectorEventLoopPolicy`"
40604060

40614061
#:../../deprecations/pending-removal-in-3.16.rst:32
40624062
msgid":class:`asyncio.WindowsProactorEventLoopPolicy`"
4063-
msgstr""
4063+
msgstr":class:`asyncio.WindowsProactorEventLoopPolicy`"
40644064

40654065
#:../../deprecations/pending-removal-in-3.16.rst:33
40664066
msgid":func:`asyncio.get_event_loop_policy`"
4067-
msgstr""
4067+
msgstr":func:`asyncio.get_event_loop_policy`"
40684068

40694069
#:../../deprecations/pending-removal-in-3.16.rst:34
40704070
msgid":func:`asyncio.set_event_loop_policy`"
4071-
msgstr""
4071+
msgstr":func:`asyncio.set_event_loop_policy`"
40724072

40734073
#:../../deprecations/pending-removal-in-3.16.rst:36
40744074
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp