Skip to content

Commit f28f38f

Browse files
sync with cpython efba83f9
1 parent 2331ca7 commit f28f38f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2439
-1363
lines changed

c-api/file.po

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.12\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2024-02-12 00:03+0000\n"
12+
"POT-Creation-Date: 2024-07-31 00:03+0000\n"
1313
"PO-Revision-Date: 2023-04-24 20:38+0800\n"
1414
"Last-Translator: Matt Wang <[email protected]>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -157,9 +157,8 @@ msgid "This function is safe to call before :c:func:`Py_Initialize`."
157157
msgstr "在 :c:func:`Py_Initialize` 之前呼叫此函式是安全的。"
158158

159159
#: ../../c-api/file.rst:90
160-
msgid ""
161-
"Raises an :ref:`auditing event <auditing>` ``setopencodehook`` with no "
162-
"arguments."
160+
#, fuzzy
161+
msgid "Raises an auditing event setopencodehook with no arguments."
163162
msgstr ""
164163
"不帶引數地引發一個\\ :ref:`稽核事件 (auditing event) <auditing>` "
165164
"``setopencodehook``。"

c-api/init.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-06-22 00:03+0000\n"
11+
"POT-Creation-Date: 2024-07-31 00:03+0000\n"
1212
"PO-Revision-Date: 2023-04-24 20:49+0800\n"
1313
"Last-Translator: Adrian Liaw <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -612,9 +612,9 @@ msgid ""
612612
msgstr ""
613613

614614
#: ../../c-api/init.rst:421
615+
#, fuzzy
615616
msgid ""
616-
"Raises an :ref:`auditing event <auditing>` ``cpython."
617-
"_PySys_ClearAuditHooks`` with no arguments."
617+
"Raises an auditing event cpython._PySys_ClearAuditHooks with no arguments."
618618
msgstr ""
619619
"引發一個不附帶引數的\\ :ref:`稽核事件 <auditing>` ``cpython."
620620
"_PySys_ClearAuditHooks``。"
@@ -1417,9 +1417,9 @@ msgid ""
14171417
msgstr ""
14181418

14191419
#: ../../c-api/init.rst:1227
1420+
#, fuzzy
14201421
msgid ""
1421-
"Raises an :ref:`auditing event <auditing>` ``cpython."
1422-
"PyInterpreterState_New`` with no arguments."
1422+
"Raises an auditing event cpython.PyInterpreterState_New with no arguments."
14231423
msgstr ""
14241424
"引發一個不附帶引數的\\ :ref:`稽核事件 <auditing>` ``cpython."
14251425
"PyInterpreterState_New``。"
@@ -1431,9 +1431,9 @@ msgid ""
14311431
msgstr ""
14321432

14331433
#: ../../c-api/init.rst:1235
1434+
#, fuzzy
14341435
msgid ""
1435-
"Raises an :ref:`auditing event <auditing>` ``cpython."
1436-
"PyInterpreterState_Clear`` with no arguments."
1436+
"Raises an auditing event cpython.PyInterpreterState_Clear with no arguments."
14371437
msgstr ""
14381438
"引發一個不附帶引數的\\ :ref:`稽核事件 <auditing>` ``cpython."
14391439
"PyInterpreterState_Clear``。"

c-api/sys.po

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Python 3.12\n"
1212
"Report-Msgid-Bugs-To: \n"
13-
"POT-Creation-Date: 2024-02-12 00:03+0000\n"
13+
"POT-Creation-Date: 2024-07-31 00:03+0000\n"
1414
"PO-Revision-Date: 2018-05-23 14:07+0000\n"
1515
"Last-Translator: Adrian Liaw <[email protected]>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -456,10 +456,12 @@ msgstr ""
456456

457457
#: ../../c-api/sys.rst:395
458458
msgid ""
459-
"Raises an :ref:`auditing event <auditing>` ``sys.addaudithook`` with no "
460-
"arguments."
459+
"If the interpreter is initialized, this function raises an auditing event "
460+
"sys.addaudithook with no arguments. If any existing hooks raise an exception "
461+
"derived from Exception, the new hook will not be added and the exception is "
462+
"cleared. As a result, callers cannot assume that their hook has been added "
463+
"unless they control all existing hooks."
461464
msgstr ""
462-
"引發一個不附帶引數的\\ :ref:`稽核事件 <auditing>` ``sys.addaudithook``。"
463465

464466
#: ../../c-api/sys.rst:397
465467
msgid ""
@@ -544,3 +546,9 @@ msgstr "exit(C 函式)"
544546
#: ../../c-api/sys.rst:455
545547
msgid "cleanup functions"
546548
msgstr "cleanup functions(清理函式)"
549+
550+
#~ msgid ""
551+
#~ "Raises an :ref:`auditing event <auditing>` ``sys.addaudithook`` with no "
552+
#~ "arguments."
553+
#~ msgstr ""
554+
#~ "引發一個不附帶引數的\\ :ref:`稽核事件 <auditing>` ``sys.addaudithook``。"
Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# SOME DESCRIPTIVE TITLE.
2+
# Copyright (C) 2001-2024, Python Software Foundation
3+
# This file is distributed under the same license as the Python package.
4+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5+
#
6+
#, fuzzy
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Python 3.12\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2024-07-31 00:03+0000\n"
12+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Language-Team: LANGUAGE <[email protected]>\n"
15+
"Language: zh_TW\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: 8bit\n"
19+
20+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:2
21+
msgid "Pending Removal in Python 3.14"
22+
msgstr ""
23+
24+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:4
25+
msgid ""
26+
"The ``ma_version_tag`` field in :c:type:`PyDictObject` for extension modules "
27+
"(:pep:`699`; :gh:`101193`)."
28+
msgstr ""
29+
30+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:7
31+
msgid ""
32+
"Creating :c:data:`immutable types <Py_TPFLAGS_IMMUTABLETYPE>` with mutable "
33+
"bases (:gh:`95388`)."
34+
msgstr ""
35+
36+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:10
37+
msgid ""
38+
"Functions to configure Python's initialization, deprecated in Python 3.11:"
39+
msgstr ""
40+
41+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:12
42+
msgid "``PySys_SetArgvEx()``: set :c:member:`PyConfig.argv` instead."
43+
msgstr ""
44+
45+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:13
46+
msgid "``PySys_SetArgv()``: set :c:member:`PyConfig.argv` instead."
47+
msgstr ""
48+
49+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:14
50+
msgid "``Py_SetProgramName()``: set :c:member:`PyConfig.program_name` instead."
51+
msgstr ""
52+
53+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:15
54+
msgid "``Py_SetPythonHome()``: set :c:member:`PyConfig.home` instead."
55+
msgstr ""
56+
57+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:17
58+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:45
59+
msgid ""
60+
"The :c:func:`Py_InitializeFromConfig` API should be used with :c:type:"
61+
"`PyConfig` instead."
62+
msgstr ""
63+
64+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:20
65+
msgid "Global configuration variables:"
66+
msgstr ""
67+
68+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:22
69+
msgid ":c:var:`Py_DebugFlag`: use :c:member:`PyConfig.parser_debug` instead."
70+
msgstr ""
71+
72+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:23
73+
msgid ":c:var:`Py_VerboseFlag`: use :c:member:`PyConfig.verbose` instead."
74+
msgstr ""
75+
76+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:24
77+
msgid ":c:var:`Py_QuietFlag`: use :c:member:`PyConfig.quiet` instead."
78+
msgstr ""
79+
80+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:25
81+
msgid ""
82+
":c:var:`Py_InteractiveFlag`: use :c:member:`PyConfig.interactive` instead."
83+
msgstr ""
84+
85+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:26
86+
msgid ":c:var:`Py_InspectFlag`: use :c:member:`PyConfig.inspect` instead."
87+
msgstr ""
88+
89+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:27
90+
msgid ""
91+
":c:var:`Py_OptimizeFlag`: use :c:member:`PyConfig.optimization_level` "
92+
"instead."
93+
msgstr ""
94+
95+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:28
96+
msgid ":c:var:`Py_NoSiteFlag`: use :c:member:`PyConfig.site_import` instead."
97+
msgstr ""
98+
99+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:29
100+
msgid ""
101+
":c:var:`Py_BytesWarningFlag`: use :c:member:`PyConfig.bytes_warning` instead."
102+
msgstr ""
103+
104+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:30
105+
msgid ""
106+
":c:var:`Py_FrozenFlag`: use :c:member:`PyConfig.pathconfig_warnings` instead."
107+
msgstr ""
108+
109+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:31
110+
msgid ""
111+
":c:var:`Py_IgnoreEnvironmentFlag`: use :c:member:`PyConfig.use_environment` "
112+
"instead."
113+
msgstr ""
114+
115+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:32
116+
msgid ""
117+
":c:var:`Py_DontWriteBytecodeFlag`: use :c:member:`PyConfig.write_bytecode` "
118+
"instead."
119+
msgstr ""
120+
121+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:33
122+
msgid ""
123+
":c:var:`Py_NoUserSiteDirectory`: use :c:member:`PyConfig."
124+
"user_site_directory` instead."
125+
msgstr ""
126+
127+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:34
128+
msgid ""
129+
":c:var:`Py_UnbufferedStdioFlag`: use :c:member:`PyConfig.buffered_stdio` "
130+
"instead."
131+
msgstr ""
132+
133+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:35
134+
msgid ""
135+
":c:var:`Py_HashRandomizationFlag`: use :c:member:`PyConfig.use_hash_seed` "
136+
"and :c:member:`PyConfig.hash_seed` instead."
137+
msgstr ""
138+
139+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:37
140+
msgid ":c:var:`Py_IsolatedFlag`: use :c:member:`PyConfig.isolated` instead."
141+
msgstr ""
142+
143+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:38
144+
msgid ""
145+
":c:var:`Py_LegacyWindowsFSEncodingFlag`: use :c:member:`PyPreConfig."
146+
"legacy_windows_fs_encoding` instead."
147+
msgstr ""
148+
149+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:39
150+
msgid ""
151+
":c:var:`Py_LegacyWindowsStdioFlag`: use :c:member:`PyConfig."
152+
"legacy_windows_stdio` instead."
153+
msgstr ""
154+
155+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:40
156+
msgid ""
157+
":c:var:`!Py_FileSystemDefaultEncoding`: use :c:member:`PyConfig."
158+
"filesystem_encoding` instead."
159+
msgstr ""
160+
161+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:41
162+
msgid ""
163+
":c:var:`!Py_HasFileSystemDefaultEncoding`: use :c:member:`PyConfig."
164+
"filesystem_encoding` instead."
165+
msgstr ""
166+
167+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:42
168+
msgid ""
169+
":c:var:`!Py_FileSystemDefaultEncodeErrors`: use :c:member:`PyConfig."
170+
"filesystem_errors` instead."
171+
msgstr ""
172+
173+
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:43
174+
msgid ""
175+
":c:var:`!Py_UTF8Mode`: use :c:member:`PyPreConfig.utf8_mode` instead. (see :"
176+
"c:func:`Py_PreInitialize`)"
177+
msgstr ""
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# SOME DESCRIPTIVE TITLE.
2+
# Copyright (C) 2001-2024, Python Software Foundation
3+
# This file is distributed under the same license as the Python package.
4+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5+
#
6+
#, fuzzy
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Python 3.12\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2024-07-31 00:03+0000\n"
12+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Language-Team: LANGUAGE <[email protected]>\n"
15+
"Language: zh_TW\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: 8bit\n"
19+
20+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:2
21+
msgid "Pending Removal in Python 3.15"
22+
msgstr ""
23+
24+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:4
25+
msgid "The bundled copy of ``libmpdecimal``."
26+
msgstr ""
27+
28+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:5
29+
msgid ""
30+
":c:func:`PyImport_ImportModuleNoBlock`: use :c:func:`PyImport_ImportModule` "
31+
"instead."
32+
msgstr ""
33+
34+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:6
35+
msgid ""
36+
":c:func:`PyWeakref_GET_OBJECT`: use :c:func:`!PyWeakref_GetRef` instead."
37+
msgstr ""
38+
39+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:7
40+
msgid ":c:func:`PyWeakref_GetObject`: use :c:func:`!PyWeakref_GetRef` instead."
41+
msgstr ""
42+
43+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:8
44+
msgid ":c:type:`!Py_UNICODE_WIDE` type: use :c:type:`wchar_t` instead."
45+
msgstr ""
46+
47+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:9
48+
msgid ":c:type:`Py_UNICODE` type: use :c:type:`wchar_t` instead."
49+
msgstr ""
50+
51+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:10
52+
msgid "Python initialization functions:"
53+
msgstr ""
54+
55+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:12
56+
msgid ""
57+
":c:func:`PySys_ResetWarnOptions`: clear :data:`sys.warnoptions` and :data:`!"
58+
"warnings.filters` instead."
59+
msgstr ""
60+
61+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:14
62+
msgid ":c:func:`Py_GetExecPrefix`: get :data:`sys.exec_prefix` instead."
63+
msgstr ""
64+
65+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:15
66+
msgid ":c:func:`Py_GetPath`: get :data:`sys.path` instead."
67+
msgstr ""
68+
69+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:16
70+
msgid ":c:func:`Py_GetPrefix`: get :data:`sys.prefix` instead."
71+
msgstr ""
72+
73+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:17
74+
msgid ":c:func:`Py_GetProgramFullPath`: get :data:`sys.executable` instead."
75+
msgstr ""
76+
77+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:18
78+
msgid ":c:func:`Py_GetProgramName`: get :data:`sys.executable` instead."
79+
msgstr ""
80+
81+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:19
82+
msgid ""
83+
":c:func:`Py_GetPythonHome`: get :c:member:`PyConfig.home` or the :envvar:"
84+
"`PYTHONHOME` environment variable instead."
85+
msgstr ""

0 commit comments

Comments
 (0)