3
3
# This file is distributed under the same license as the Python package.
4
4
#
5
5
# Translators:
6
+ # Dr-XYZ <dr.xyz.tw@gmail.com>, 2025
6
7
msgid ""
7
8
msgstr ""
8
9
"Project-Id-Version : Python 3.13\n "
9
10
"Report-Msgid-Bugs-To : \n "
10
11
"POT-Creation-Date : 2025-03-17 00:15+0000\n "
11
- "PO-Revision-Date : 2018 -05-23 16:15+0000 \n "
12
- "Last-Translator : Adrian Liaw <adrianliaw2000 @gmail.com>\n "
12
+ "PO-Revision-Date : 2025 -05-19 23:00+0800 \n "
13
+ "Last-Translator : Dr-XYZ <dr.xyz.tw @gmail.com>\n "
13
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
15
"tw)\n "
15
16
"Language : zh_TW\n "
@@ -20,14 +21,16 @@ msgstr ""
20
21
21
22
#: ../../library/winsound.rst:2
22
23
msgid ":mod:`!winsound` --- Sound-playing interface for Windows"
23
- msgstr ":mod:`!winsound` --- Windows 的聲音播放介面 "
24
+ msgstr ":mod:`!winsound` --- Windows 的音效播放介面 "
24
25
25
26
#: ../../library/winsound.rst:13
26
27
msgid ""
27
28
"The :mod:`winsound` module provides access to the basic sound-playing "
28
29
"machinery provided by Windows platforms. It includes functions and several "
29
30
"constants."
30
31
msgstr ""
32
+ ":mod:`winsound` 模組提供存取 Windows 平台所提供的基本音效播放機制。它包含數個"
33
+ "函式與常數。"
31
34
32
35
#: ../../library/winsound.rst:19
33
36
msgid ""
@@ -37,6 +40,9 @@ msgid ""
37
40
"last. If the system is not able to beep the speaker, :exc:`RuntimeError` is "
38
41
"raised."
39
42
msgstr ""
43
+ "讓電腦的喇叭發出嗶聲。*frequency* 參數指定音效的頻率(以赫茲為單位),範圍必"
44
+ "須介於 37 到 32,767 之間。*duration* 參數指定音效持續的時間(以毫秒為單位)。"
45
+ "若系統無法讓喇叭發出嗶聲,則會引發 :exc:`RuntimeError`。"
40
46
41
47
#: ../../library/winsound.rst:27
42
48
msgid ""
@@ -48,6 +54,11 @@ msgid ""
48
54
"waveform sound is stopped. If the system indicates an error, :exc:"
49
55
"`RuntimeError` is raised."
50
56
msgstr ""
57
+ "呼叫平台 API 中底層的 :c:func:`!PlaySound` 函式。*sound* 參數可以是檔案名稱、"
58
+ "系統音效別名、作為 :term:`bytes-like object` 的音訊資料,或 ``None``。其直譯"
59
+ "方式取決於 *flags* 的值,該值可以是以下所述常數的位元 OR 組合。若 *sound* 為 "
60
+ "``None``,則會停止任何正
E864
播放的波形音效。若系統回報錯誤,則會引發 :exc:"
61
+ "`RuntimeError`。"
51
62
52
63
#: ../../library/winsound.rst:38
53
64
msgid ""
@@ -60,12 +71,18 @@ msgid ""
60
71
"played otherwise. If the system indicates an error, :exc:`RuntimeError` is "
61
72
"raised."
62
73
msgstr ""
74
+ "呼叫平台 API 中底層的 :c:func:`!MessageBeep` 函式。此函式會播放登錄檔中指定的"
75
+ "音效。*type* 引數指定要播放的音效類型,可接受的值包括 ``-1``、"
76
+ "``MB_ICONASTERISK``、``MB_ICONEXCLAMATION``、``MB_ICONHAND``、"
77
+ "``MB_ICONQUESTION`` 與 ``MB_OK``,這些皆會在下文中說明。數值 ``-1`` 會產生"
78
+ "「簡單嗶聲」,當無法播放其他音效時即作為最終退路。若系統回報錯誤,則會引發 :"
79
+ "exc:`RuntimeError`。"
63
80
64
81
#: ../../library/winsound.rst:49
65
82
msgid ""
66
83
"The *sound* parameter is the name of a WAV file. Do not use with :const:"
67
84
"`SND_ALIAS`."
68
- msgstr ""
85
+ msgstr "*sound* 參數為 WAV 檔案名稱。請勿與 :const:`SND_ALIAS` 同時使用。 "
69
86
70
87
#: ../../library/winsound.rst:55
71
88
msgid ""
@@ -74,60 +91,63 @@ msgid ""
74
91
"`SND_NODEFAULT` is also specified. If no default sound is registered, raise :"
75
92
"exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`."
76
93
msgstr ""
94
+ "*sound* 參數為登錄檔中的音效關聯名稱。若登錄檔中找不到此名稱,則會播放系統預"
95
+ "設音效,除非同時指定了 :const:`SND_NODEFAULT`。若沒有註冊預設音效,則會引發 :"
96
+ "exc:`RuntimeError`。請勿與 :const:`SND_FILENAME` 同時使用。"
77
97
78
98
#: ../../library/winsound.rst:60
79
99
msgid ""
80
100
"All Win32 systems support at least the following; most systems support many "
81
101
"more:"
82
- msgstr ""
102
+ msgstr "所有 Win32 系統至少支援以下項目;大多數系統支援更多: "
83
103
84
104
#: ../../library/winsound.rst:64
85
105
msgid ":func:`PlaySound` *name*"
86
- msgstr ""
106
+ msgstr ":func:`PlaySound` *name* "
87
107
88
108
#: ../../library/winsound.rst:64
89
109
msgid "Corresponding Control Panel Sound name"
90
- msgstr ""
110
+ msgstr "對應的控制台音效名稱 "
91
111
92
112
#: ../../library/winsound.rst:66
93
113
msgid "``'SystemAsterisk'``"
94
114
msgstr "``'SystemAsterisk'``"
95
115
96
116
#: ../../library/winsound.rst:66
97
117
msgid "Asterisk"
98
- msgstr ""
118
+ msgstr "星號 "
99
119
100
120
#: ../../library/winsound.rst:68
101
121
msgid "``'SystemExclamation'``"
102
122
msgstr "``'SystemExclamation'``"
103
123
104
124
#: ../../library/winsound.rst:68
105
125
msgid "Exclamation"
106
- msgstr ""
126
+ msgstr "驚嘆號 "
107
127
108
128
#: ../../library/winsound.rst:70
109
129
msgid "``'SystemExit'``"
110
130
msgstr "``'SystemExit'``"
111
131
112
132
#: ../../library/winsound.rst:70
113
133
msgid "Exit Windows"
114
- msgstr ""
134
+ msgstr "離開 Windows "
115
135
116
136
#: ../../library/winsound.rst:72
117
137
msgid "``'SystemHand'``"
118
138
msgstr "``'SystemHand'``"
119
139
120
140
#: ../../library/winsound.rst:72
121
141
msgid "Critical Stop"
122
- msgstr ""
142
+ msgstr "關鍵性停止 "
123
143
124
144
#: ../../library/winsound.rst:74
125
145
msgid "``'SystemQuestion'``"
126
146
msgstr "``'SystemQuestion'``"
127
147
128
148
#: ../../library/winsound.rst:74
129
149
msgid "Question"
130
- msgstr ""
150
+ msgstr "問題 "
131
151
132
152
#: ../../library/winsound.rst:77
133
153
msgid "For example::"
@@ -143,70 +163,85 @@ msgid ""
143
163
"# \" *\" probably isn't the registered name of any sound).\n"
144
164
"winsound.PlaySound(\" *\" , winsound.SND_ALIAS)"
145
165
msgstr ""
166
+ "import winsound\n"
167
+ "# 播放 Windows 的離開音效。\n"
168
+ "winsound.PlaySound(\" SystemExit\" , winsound.SND_ALIAS)\n"
169
+ "\n"
170
+ "# 若有註冊預設音效,可能會播放該音效\n"
171
+ "# (因為 \" *\" 可能不是任何音效的註冊名稱)。\n"
172
+ "winsound.PlaySound(\" *\" , winsound.SND_ALIAS)"
146
173
147
174
#: ../../library/winsound.rst:90
148
175
msgid ""
149
176
"Play the sound repeatedly. The :const:`SND_ASYNC` flag must also be used to "
150
177
"avoid blocking. Cannot be used with :const:`SND_MEMORY`."
151
178
msgstr ""
179
+ "重複播放音效。必須同時使用 :const:`SND_ASYNC` 旗標以避免阻塞。不能與 :const:"
180
+ "`SND_MEMORY` 一同使用。"
152
181
153
182
10000
#: ../../library/winsound.rst:96
154
183
msgid ""
155
184
"The *sound* parameter to :func:`PlaySound` is a memory image of a WAV file, "
156
185
"as a :term:`bytes-like object`."
157
186
msgstr ""
187
+ "傳入 :func:`PlaySound` 的 *sound* 參數是 WAV 檔案的記憶體映像,型別為 :term:"
188
+ "`bytes-like object`。"
158
189
159
190
#: ../../library/winsound.rst:101
160
191
msgid ""
161
192
"This module does not support playing from a memory image asynchronously, so "
162
193
"a combination of this flag and :const:`SND_ASYNC` will raise :exc:"
163
194
"`RuntimeError`."
164
195
msgstr ""
196
+ "此模組不支援從記憶體映像非同步播放音效,因此若同時使用本旗標與 :const:"
197
+ "`SND_ASYNC`,將引發 :exc:`RuntimeError`。"
165
198
166
199
#: ../../library/winsound.rst:107
167
200
msgid "Stop playing all instances of the specified sound."
168
- msgstr ""
201
+ msgstr "停止播放指定音效的所有實例。 "
169
202
170
203
#: ../../library/winsound.rst:111 ../../library/winsound.rst:135
171
204
msgid "This flag is not supported on modern Windows platforms."
172
- msgstr ""
205
+ msgstr "此旗標在現代 Windows 平台上不支援。 "
173
206
174
207
#: ../../library/winsound.rst:116
175
208
msgid "Return immediately, allowing sounds to play asynchronously."
176
- msgstr ""
209
+ msgstr "立即回傳,使音效可非同步播放。 "
177
210
178
211
#: ../../library/winsound.rst:121
179
212
msgid ""
180
213
"If the specified sound cannot be found, do not play the system default sound."
181
- msgstr ""
214
+ msgstr "若找不到指定的音效,則不播放系統預設音效。 "
182
215
183
216
#: ../../library/winsound.rst:126
184
217
msgid "Do not interrupt sounds currently playing."
185
- msgstr ""
218
+ msgstr "不中斷目前正在播放的音效。 "
186
219
187
220
#: ../../library/winsound.rst:131
188
221
msgid "Return immediately if the sound driver is busy."
189
- msgstr ""
222
+ msgstr "若音效驅動程式正在忙碌,則立即回傳此。 "
190
223
191
224
#: ../../library/winsound.rst:140
192
225
msgid ""
193
226
"The *sound* parameter is an application-specific alias in the registry. This "
194
227
"flag can be combined with the :const:`SND_ALIAS` flag to specify an "
195
228
"application-defined sound alias."
196
229
msgstr ""
230
+ "*sound* 參數為登錄檔中的應用程式特定別名。此旗標可與 :const:`SND_ALIAS` 一同"
231
+ "使用,以指定應用程式自訂的音效別名。"
197
232
198
233
#: ../../library/winsound.rst:147 ../../library/winsound.rst:167
199
234
msgid "Play the ``SystemDefault`` sound."
200
- msgstr "播放 ``SystemDefault`` 聲音 。"
235
+ msgstr "播放 ``SystemDefault`` 音效 。"
201
236
202
237
#: ../../library/winsound.rst:152
203
238
msgid "Play the ``SystemExclamation`` sound."
204
- msgstr "播放 ``SystemExclamation`` 聲音 。"
239
+ msgstr "播放 ``SystemExclamation`` 音效 。"
205
240
206
241
#: ../../library/winsound.rst:157
207
242
msgid "Play the ``SystemHand`` sound."
208
- msgstr "播放 ``SystemHand`` 聲音 。"
243
+ msgstr "播放 ``SystemHand`` 音效 。"
209
244
210
245
#: ../../library/winsound.rst:162
211
246
msgid "Play the ``SystemQuestion`` sound."
212
- msgstr "播放 ``SystemQuestion`` 聲音 。"
247
+ msgstr "播放 ``SystemQuestion`` 音效 。"
0 commit comments