8000 Translate library/winsound.po (#1048) · python/python-docs-zh-tw@d57b852 · GitHub
[go: up one dir, main page]

Skip to content

Commit d57b852

Browse files
authored
Translate library/winsound.po (#1048)
1 parent 4f401c5 commit d57b852

File tree

1 file changed

+57
-22
lines changed

1 file changed

+57
-22
lines changed

library/winsound.po

Lines changed: 57 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
# This file is distributed under the same license as the Python package.
44
#
55
# Translators:
6+
# Dr-XYZ <dr.xyz.tw@gmail.com>, 2025
67
msgid ""
78
msgstr ""
89
"Project-Id-Version: Python 3.13\n"
910
"Report-Msgid-Bugs-To: \n"
1011
"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"
1314
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1415
"tw)\n"
1516
"Language: zh_TW\n"
@@ -20,14 +21,16 @@ msgstr ""
2021

2122
#: ../../library/winsound.rst:2
2223
msgid ":mod:`!winsound` --- Sound-playing interface for Windows"
23-
msgstr ":mod:`!winsound` --- Windows 的聲音播放介面"
24+
msgstr ":mod:`!winsound` --- Windows 的音效播放介面"
2425

2526
#: ../../library/winsound.rst:13
2627
msgid ""
2728
"The :mod:`winsound` module provides access to the basic sound-playing "
2829
"machinery provided by Windows platforms. It includes functions and several "
2930
"constants."
3031
msgstr ""
32+
":mod:`winsound` 模組提供存取 Windows 平台所提供的基本音效播放機制。它包含數個"
33+
"函式與常數。"
3134

3235
#: ../../library/winsound.rst:19
3336
msgid ""
@@ -37,6 +40,9 @@ msgid ""
3740
"last. If the system is not able to beep the speaker, :exc:`RuntimeError` is "
3841
"raised."
3942
msgstr ""
43+
"讓電腦的喇叭發出嗶聲。*frequency* 參數指定音效的頻率(以赫茲為單位),範圍必"
44+
"須介於 37 到 32,767 之間。*duration* 參數指定音效持續的時間(以毫秒為單位)。"
45+
"若系統無法讓喇叭發出嗶聲,則會引發 :exc:`RuntimeError`。"
4046

4147
#: ../../library/winsound.rst:27
4248
msgid ""
@@ -48,6 +54,11 @@ msgid ""
4854
"waveform sound is stopped. If the system indicates an error, :exc:"
4955
"`RuntimeError` is raised."
5056
msgstr ""
57+
"呼叫平台 API 中底層的 :c:func:`!PlaySound` 函式。*sound* 參數可以是檔案名稱、"
58+
"系統音效別名、作為 :term:`bytes-like object` 的音訊資料,或 ``None``。其直譯"
59+
"方式取決於 *flags* 的值,該值可以是以下所述常數的位元 OR 組合。若 *sound* 為 "
60+
"``None``,則會停止任何正 E864 播放的波形音效。若系統回報錯誤,則會引發 :exc:"
61+
"`RuntimeError`。"
5162

5263
#: ../../library/winsound.rst:38
5364
msgid ""
@@ -60,12 +71,18 @@ msgid ""
6071
"played otherwise. If the system indicates an error, :exc:`RuntimeError` is "
6172
"raised."
6273
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`。"
6380

6481
#: ../../library/winsound.rst:49
6582
msgid ""
6683
"The *sound* parameter is the name of a WAV file. Do not use with :const:"
6784
"`SND_ALIAS`."
68-
msgstr ""
85+
msgstr "*sound* 參數為 WAV 檔案名稱。請勿與 :const:`SND_ALIAS` 同時使用。"
6986

7087
#: ../../library/winsound.rst:55
7188
msgid ""
@@ -74,60 +91,63 @@ msgid ""
7491
"`SND_NODEFAULT` is also specified. If no default sound is registered, raise :"
7592
"exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`."
7693
msgstr ""
94+
"*sound* 參數為登錄檔中的音效關聯名稱。若登錄檔中找不到此名稱,則會播放系統預"
95+
"設音效,除非同時指定了 :const:`SND_NODEFAULT`。若沒有註冊預設音效,則會引發 :"
96+
"exc:`RuntimeError`。請勿與 :const:`SND_FILENAME` 同時使用。"
7797

7898
#: ../../library/winsound.rst:60
7999
msgid ""
80100
"All Win32 systems support at least the following; most systems support many "
81101
"more:"
82-
msgstr ""
102+
msgstr "所有 Win32 系統至少支援以下項目;大多數系統支援更多:"
83103

84104
#: ../../library/winsound.rst:64
85105
msgid ":func:`PlaySound` *name*"
86-
msgstr ""
106+
msgstr ":func:`PlaySound` *name*"
87107

88108
#: ../../library/winsound.rst:64
89109
msgid "Corresponding Control Panel Sound name"
90-
msgstr ""
110+
msgstr "對應的控制台音效名稱"
91111

92112
#: ../../library/winsound.rst:66
93113
msgid "``'SystemAsterisk'``"
94114
msgstr "``'SystemAsterisk'``"
95115

96116
#: ../../library/winsound.rst:66
97117
msgid "Asterisk"
98-
msgstr ""
118+
msgstr "星號"
99119

100120
#: ../../library/winsound.rst:68
101121
msgid "``'SystemExclamation'``"
102122
msgstr "``'SystemExclamation'``"
103123

104124
#: ../../library/winsound.rst:68
105125
msgid "Exclamation"
106-
msgstr ""
126+
msgstr "驚嘆號"
107127

108128
#: ../../library/winsound.rst:70
109129
msgid "``'SystemExit'``"
110130
msgstr "``'SystemExit'``"
111131

112132
#: ../../library/winsound.rst:70
113133
msgid "Exit Windows"
114-
msgstr ""
134+
msgstr "離開 Windows"
115135

116136
#: ../../library/winsound.rst:72
117137
msgid "``'SystemHand'``"
118138
msgstr "``'SystemHand'``"
119139

120140
#: ../../library/winsound.rst:72
121141
msgid "Critical Stop"
122-
msgstr ""
142+
msgstr "關鍵性停止"
123143

124144
#: ../../library/winsound.rst:74
125145
msgid "``'SystemQuestion'``"
126146
msgstr "``'SystemQuestion'``"
127147

128148
#: ../../library/winsound.rst:74
129149
msgid "Question"
130-
msgstr ""
150+
msgstr "問題"
131151

132152
#: ../../library/winsound.rst:77
133153
msgid "For example::"
@@ -143,70 +163,85 @@ msgid ""
143163
"# \"*\" probably isn't the registered name of any sound).\n"
144164
"winsound.PlaySound(\"*\", winsound.SND_ALIAS)"
145165
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)"
146173

147174
#: ../../library/winsound.rst:90
148175
msgid ""
149176
"Play the sound repeatedly. The :const:`SND_ASYNC` flag must also be used to "
150177
"avoid blocking. Cannot be used with :const:`SND_MEMORY`."
151178
msgstr ""
179+
"重複播放音效。必須同時使用 :const:`SND_ASYNC` 旗標以避免阻塞。不能與 :const:"
180+
"`SND_MEMORY` 一同使用。"
152181

153182
10000 #: ../../library/winsound.rst:96
154183
msgid ""
155184
"The *sound* parameter to :func:`PlaySound` is a memory image of a WAV file, "
156185
"as a :term:`bytes-like object`."
157186
msgstr ""
187+
"傳入 :func:`PlaySound` 的 *sound* 參數是 WAV 檔案的記憶體映像,型別為 :term:"
188+
"`bytes-like object`。"
158189

159190
#: ../../library/winsound.rst:101
160191
msgid ""
161192
"This module does not support playing from a memory image asynchronously, so "
162193
"a combination of this flag and :const:`SND_ASYNC` will raise :exc:"
163194
"`RuntimeError`."
164195
msgstr ""
196+
"此模組不支援從記憶體映像非同步播放音效,因此若同時使用本旗標與 :const:"
197+
"`SND_ASYNC`,將引發 :exc:`RuntimeError`。"
165198

166199
#: ../../library/winsound.rst:107
167200
msgid "Stop playing all instances of the specified sound."
168-
msgstr ""
201+
msgstr "停止播放指定音效的所有實例。"
169202

170203
#: ../../library/winsound.rst:111 ../../library/winsound.rst:135
171204
msgid "This flag is not supported on modern Windows platforms."
172-
msgstr ""
205+
msgstr "此旗標在現代 Windows 平台上不支援。"
173206

174207
#: ../../library/winsound.rst:116
175208
msgid "Return immediately, allowing sounds to play asynchronously."
176-
msgstr ""
209+
msgstr "立即回傳,使音效可非同步播放。"
177210

178211
#: ../../library/winsound.rst:121
179212
msgid ""
180213
"If the specified sound cannot be found, do not play the system default sound."
181-
msgstr ""
214+
msgstr "若找不到指定的音效,則不播放系統預設音效。"
182215

183216
#: ../../library/winsound.rst:126
184217
msgid "Do not interrupt sounds currently playing."
185-
msgstr ""
218+
msgstr "不中斷目前正在播放的音效。"
186219

187220
#: ../../library/winsound.rst:131
188221
msgid "Return immediately if the sound driver is busy."
189-
msgstr ""
222+
msgstr "若音效驅動程式正在忙碌,則立即回傳此。"
190223

191224
#: ../../library/winsound.rst:140
192225
msgid ""
193226
"The *sound* parameter is an application-specific alias in the registry. This "
194227
"flag can be combined with the :const:`SND_ALIAS` flag to specify an "
195228
"application-defined sound alias."
196229
msgstr ""
230+
"*sound* 參數為登錄檔中的應用程式特定別名。此旗標可與 :const:`SND_ALIAS` 一同"
231+
"使用,以指定應用程式自訂的音效別名。"
197232

198233
#: ../../library/winsound.rst:147 ../../library/winsound.rst:167
199234
msgid "Play the ``SystemDefault`` sound."
200-
msgstr "播放 ``SystemDefault`` 聲音。"
235+
msgstr "播放 ``SystemDefault`` 音效。"
201236

202237
#: ../../library/winsound.rst:152
203238
msgid "Play the ``SystemExclamation`` sound."
204-
msgstr "播放 ``SystemExclamation`` 聲音。"
239+
msgstr "播放 ``SystemExclamation`` 音效。"
205240

206241
#: ../../library/winsound.rst:157
207242
msgid "Play the ``SystemHand`` sound."
208-
msgstr "播放 ``SystemHand`` 聲音。"
243+
msgstr "播放 ``SystemHand`` 音效。"
209244

210245
#: ../../library/winsound.rst:162
211246
msgid "Play the ``SystemQuestion`` sound."
212-
msgstr "播放 ``SystemQuestion`` 聲音。"
247+
msgstr "播放 ``SystemQuestion`` 音效。"

0 commit comments

Comments
 (0)
0