Skip to content

Commit 8870286

Browse files
sync with cpython 3b0747af
1 parent 89b392b commit 8870286

File tree

1 file changed

+75
-66
lines changed

1 file changed

+75
-66
lines changed

library/wave.po

Lines changed: 75 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-09-24 00:21+0000\n"
10+
"POT-Creation-Date: 2023-06-01 00:43+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:15+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -28,66 +28,65 @@ msgstr "**原始碼:**\\ :source:`Lib/wave.py`"
2828

2929
#: ../../library/wave.rst:14
3030
msgid ""
31-
"The :mod:`wave` module provides a convenient interface to the WAV sound "
32-
"format. Only files using ``WAVE_FORMAT_PCM`` are supported. Note that this "
33-
"does not include files using ``WAVE_FORMAT_EXTENSIBLE`` even if the "
34-
"subformat is PCM."
31+
"The :mod:`wave` module provides a convenient interface to the Waveform Audio "
32+
"\"WAVE\" (or \"WAV\") file format. Only files using ``WAVE_FORMAT_PCM`` are "
33+
"supported. Note that this does not include files using "
34+
"``WAVE_FORMAT_EXTENSIBLE`` even if the subformat is PCM."
3535
msgstr ""
3636

37-
#: ../../library/wave.rst:18
37+
#: ../../library/wave.rst:19
3838
msgid "The :mod:`wave` module defines the following function and exception:"
3939
msgstr ""
4040

41-
#: ../../library/wave.rst:23
41+
#: ../../library/wave.rst:24
4242
msgid ""
4343
"If *file* is a string, open the file by that name, otherwise treat it as a "
4444
"file-like object. *mode* can be:"
4545
msgstr ""
4646

47-
#: ../../library/wave.rst:27
47+
#: ../../library/wave.rst:28
4848
msgid "``'rb'``"
4949
msgstr "``'rb'``"
5050

51-
#: ../../library/wave.rst:27
51+
#: ../../library/wave.rst:28
5252
msgid "Read only mode."
5353
msgstr ""
5454

55-
#: ../../library/wave.rst:30
55+
#: ../../library/wave.rst:31
5656
msgid "``'wb'``"
5757
msgstr "``'wb'``"
5858

59-
#: ../../library/wave.rst:30
59+
#: ../../library/wave.rst:31
6060
msgid "Write only mode."
6161
msgstr ""
6262

63-
#: ../../library/wave.rst:32
63+
#: ../../library/wave.rst:33
6464
msgid "Note that it does not allow read/write WAV files."
6565
msgstr ""
6666

67-
#: ../../library/wave.rst:34
67+
#: ../../library/wave.rst:35
6868
msgid ""
6969
"A *mode* of ``'rb'`` returns a :class:`Wave_read` object, while a *mode* of "
7070
"``'wb'`` returns a :class:`Wave_write` object. If *mode* is omitted and a "
7171
"file-like object is passed as *file*, ``file.mode`` is used as the default "
7272
"value for *mode*."
7373
msgstr ""
7474

75-
#: ../../library/wave.rst:39
75+
#: ../../library/wave.rst:40
7676
msgid ""
7777
"If you pass in a file-like object, the wave object will not close it when "
78-
"its :meth:`close` method is called; it is the caller's responsibility to "
79-
"close the file object."
78+
"its ``close()`` method is called; it is the caller's responsibility to close "
79+
"the file object."
8080
msgstr ""
8181

82-
#: ../../library/wave.rst:43
82+
#: ../../library/wave.rst:44
8383
msgid ""
8484
"The :func:`.open` function may be used in a :keyword:`with` statement. When "
85-
"the :keyword:`!with` block completes, the :meth:`Wave_read.close() <wave."
86-
"Wave_read.close>` or :meth:`Wave_write.close() <wave.Wave_write.close()>` "
87-
"method is called."
85+
"the :keyword:`!with` block completes, the :meth:`Wave_read.close()` or :meth:"
86+
"`Wave_write.close()` method is called."
8887
msgstr ""
8988

90-
#: ../../library/wave.rst:48 ../../library/wave.rst:164
89+
#: ../../library/wave.rst:48 ../../library/wave.rst:172
9190
msgid "Added support for unseekable files."
9291
msgstr ""
9392

@@ -101,178 +100,188 @@ msgstr ""
101100
msgid "Wave_read Objects"
102101
msgstr "Wave_read 物件"
103102

104-
#: ../../library/wave.rst:62
103+
#: ../../library/wave.rst:64
104+
msgid "Read a WAV file."
105+
msgstr ""
106+
107+
#: ../../library/wave.rst:66
105108
msgid ""
106109
"Wave_read objects, as returned by :func:`.open`, have the following methods:"
107110
msgstr ""
108111

109-
#: ../../library/wave.rst:67
112+
#: ../../library/wave.rst:71
110113
msgid ""
111114
"Close the stream if it was opened by :mod:`wave`, and make the instance "
112115
"unusable. This is called automatically on object collection."
113116
msgstr ""
114117

115-
#: ../../library/wave.rst:73
118+
#: ../../library/wave.rst:77
116119
msgid "Returns number of audio channels (``1`` for mono, ``2`` for stereo)."
117120
msgstr ""
118121

119-
#: ../../library/wave.rst:78
122+
#: ../../library/wave.rst:82
120123
msgid "Returns sample width in bytes."
121124
msgstr ""
122125

123-
#: ../../library/wave.rst:83
126+
#: ../../library/wave.rst:87
124127
msgid "Returns sampling frequency."
125128
msgstr ""
126129

127-
#: ../../library/wave.rst:88
130+
#: ../../library/wave.rst:92
128131
msgid "Returns number of audio frames."
129132
msgstr ""
130133

131-
#: ../../library/wave.rst:93
134+
#: ../../library/wave.rst:97
132135
msgid "Returns compression type (``'NONE'`` is the only supported type)."
133136
msgstr ""
134137

135-
#: ../../library/wave.rst:98
138+
#: ../../library/wave.rst:102
136139
msgid ""
137140
"Human-readable version of :meth:`getcomptype`. Usually ``'not compressed'`` "
138141
"parallels ``'NONE'``."
139142
msgstr ""
140143

141-
#: ../../library/wave.rst:104
144+
#: ../../library/wave.rst:108
142145
msgid ""
143146
"Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, "
144-
"framerate, nframes, comptype, compname)``, equivalent to output of the :meth:"
145-
"`get\\*` methods."
147+
"framerate, nframes, comptype, compname)``, equivalent to output of the "
148+
"``get*()`` methods."
146149
msgstr ""
147150

148-
#: ../../library/wave.rst:111
151+
#: ../../library/wave.rst:115
149152
msgid ""
150153
"Reads and returns at most *n* frames of audio, as a :class:`bytes` object."
151154
msgstr ""
152155

153-
#: ../../library/wave.rst:116
156+
#: ../../library/wave.rst:120
154157
msgid "Rewind the file pointer to the beginning of the audio stream."
155158
msgstr ""
156159

157-
#: ../../library/wave.rst:118
160+
#: ../../library/wave.rst:122
158161
msgid ""
159162
"The following two methods are defined for compatibility with the :mod:`aifc` "
160163
"module, and don't do anything interesting."
161164
msgstr ""
162165

163-
#: ../../library/wave.rst:124
166+
#: ../../library/wave.rst:128
164167
msgid "Returns ``None``."
165168
msgstr ""
166169

167-
#: ../../library/wave.rst:129
170+
#: ../../library/wave.rst:133
168171
msgid "Raise an error."
169172
msgstr ""
170173

171-
#: ../../library/wave.rst:131
174+
#: ../../library/wave.rst:135
172175
msgid ""
173176
"The following two methods define a term \"position\" which is compatible "
174177
"between them, and is otherwise implementation dependent."
175178
msgstr ""
176179

177-
#: ../../library/wave.rst:137
180+
#: ../../library/wave.rst:141
178181
msgid "Set the file pointer to the specified position."
179182
msgstr ""
180183

181-
#: ../../library/wave.rst:142
184+
#: ../../library/wave.rst:146
182185
msgid "Return current file pointer position."
183186
msgstr ""
184187

185-
#: ../../library/wave.rst:148
188+
#: ../../library/wave.rst:152
186189
msgid "Wave_write Objects"
187190
msgstr "Wave_write 物件"
188191

189-
#: ../../library/wave.rst:150
192+
#: ../../library/wave.rst:156
193+
msgid "Write a WAV file."
194+
msgstr ""
195+
196+
#: ../../library/wave.rst:158
197+
msgid "Wave_write objects, as returned by :func:`.open`."
198+
msgstr ""
199+
200+
#: ../../library/wave.rst:160
190201
msgid ""
191202
"For seekable output streams, the ``wave`` header will automatically be "
192203
"updated to reflect the number of frames actually written. For unseekable "
193204
"streams, the *nframes* value must be accurate when the first frame data is "
194205
"written. An accurate *nframes* value can be achieved either by calling :"
195-
"meth:`~Wave_write.setnframes` or :meth:`~Wave_write.setparams` with the "
196-
"number of frames that will be written before :meth:`~Wave_write.close` is "
197-
"called and then using :meth:`~Wave_write.writeframesraw` to write the frame "
198-
"data, or by calling :meth:`~Wave_write.writeframes` with all of the frame "
199-
"data to be written. In the latter case :meth:`~Wave_write.writeframes` will "
200-
"calculate the number of frames in the data and set *nframes* accordingly "
201-
"before writing the frame data."
206+
"meth:`setnframes` or :meth:`setparams` with the number of frames that will "
207+
"be written before :meth:`close` is called and then using :meth:"
208+
"`writeframesraw` to write the frame data, or by calling :meth:`writeframes` "
209+
"with all of the frame data to be written. In the latter case :meth:"
210+
"`writeframes` will calculate the number of frames in the data and set "
211+
"*nframes* accordingly before writing the frame data."
202212
msgstr ""
203213

204-
#: ../../library/wave.rst:162
205-
msgid ""
206-
"Wave_write objects, as returned by :func:`.open`, have the following methods:"
214+
#: ../../library/wave.rst:175
215+
msgid "Wave_write objects have the following methods:"
207216
msgstr ""
208217

209-
#: ../../library/wave.rst:170
218+
#: ../../library/wave.rst:179
210219
msgid ""
211220
"Make sure *nframes* is correct, and close the file if it was opened by :mod:"
212221
"`wave`. This method is called upon object collection. It will raise an "
213222
"exception if the output stream is not seekable and *nframes* does not match "
214223
"the number of frames actually written."
215224
msgstr ""
216225

217-
#: ../../library/wave.rst:178
226+
#: ../../library/wave.rst:187
218227
msgid "Set the number of channels."
219228
msgstr ""
220229

221-
#: ../../library/wave.rst:183
230+
#: ../../library/wave.rst:192
222231
msgid "Set the sample width to *n* bytes."
223232
msgstr ""
224233

225-
#: ../../library/wave.rst:188
234+
#: ../../library/wave.rst:197
226235
msgid "Set the frame rate to *n*."
227236
msgstr ""
228237

229-
#: ../../library/wave.rst:190
238+
#: ../../library/wave.rst:199
230239
msgid "A non-integral input to this method is rounded to the nearest integer."
231240
msgstr ""
232241

233-
#: ../../library/wave.rst:197
242+
#: ../../library/wave.rst:206
234243
msgid ""
235244
"Set the number of frames to *n*. This will be changed later if the number "
236245
"of frames actually written is different (this update attempt will raise an "
237246
"error if the output stream is not seekable)."
238247
msgstr ""
239248

240-
#: ../../library/wave.rst:204
249+
#: ../../library/wave.rst:213
241250
msgid ""
242251
"Set the compression type and description. At the moment, only compression "
243252
"type ``NONE`` is supported, meaning no compression."
244253
msgstr ""
245254

246-
#: ../../library/wave.rst:210
255+
#: ../../library/wave.rst:219
247256
msgid ""
248257
"The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, "
249-
"compname)``, with values valid for the :meth:`set\\*` methods. Sets all "
258+
"compname)``, with values valid for the ``set*()`` methods. Sets all "
250259
"parameters."
251260
msgstr ""
252261

253-
#: ../../library/wave.rst:217
262+
#: ../../library/wave.rst:226
254263
msgid ""
255264
"Return current position in the file, with the same disclaimer for the :meth:"
256265
"`Wave_read.tell` and :meth:`Wave_read.setpos` methods."
257266
msgstr ""
258267

259-
#: ../../library/wave.rst:223
268+
#: ../../library/wave.rst:232
260269
msgid "Write audio frames, without correcting *nframes*."
261270
msgstr ""
262271

263-
#: ../../library/wave.rst:225 ../../library/wave.rst:236
272+
#: ../../library/wave.rst:234 ../../library/wave.rst:245
264273
msgid "Any :term:`bytes-like object` is now accepted."
265274
msgstr ""
266275

267-
#: ../../library/wave.rst:231
276+
#: ../../library/wave.rst:240
268277
msgid ""
269278
"Write audio frames and make sure *nframes* is correct. It will raise an "
270279
"error if the output stream is not seekable and the total number of frames "
271280
"that have been written after *data* has been written does not match the "
272281
"previously set value for *nframes*."
273282
msgstr ""
274283

275-
#: ../../library/wave.rst:240
284+
#: ../../library/wave.rst:248
276285
msgid ""
277286
"Note that it is invalid to set any parameters after calling :meth:"
278287
"`writeframes` or :meth:`writeframesraw`, and any attempt to do so will "

0 commit comments

Comments
 (0)