3
3
# This file is distributed under the same license as the Python package.
4
4
#
5
5
# Translators:
6
+ # Liang-Bo Wang <me@liang2.tw>, 2015
7
+ # Matt Wang <mattwang44@gmail.com>, 2021
8
+ #
6
9
msgid ""
7
10
msgstr ""
8
11
"Project-Id-Version : Python 3.10\n "
9
12
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2022-05-21 17:35+0000 \n "
11
- "PO-Revision-Date : 2022-05-22 02:13 +0800\n "
12
- "Last-Translator : Liang-Bo Wang <me@liang2.tw >\n "
13
+ "POT-Creation-Date : 2018-06-26 18:54+0800 \n "
14
+ "PO-Revision-Date : 2022-06-11 15:40 +0800\n "
15
+ "Last-Translator : Matt Wang <mattwang44@gmail.com >\n "
13
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
17
"tw)\n "
15
18
"Language : zh_TW\n "
16
19
"MIME-Version : 1.0\n "
17
20
"Content-Type : text/plain; charset=UTF-8\n "
18
21
"Content-Transfer-Encoding : 8bit\n "
19
22
"Plural-Forms : nplurals=1; plural=0;\n "
20
- "X-Generator : Poedit 3.0. 1\n "
23
+ "X-Generator : Poedit 3.1\n "
21
24
22
25
#: ../../library/sndhdr.rst:2
23
26
msgid ":mod:`sndhdr` --- Determine type of sound file"
24
- msgstr ":mod:`imghdr ` --- 推測音檔種類 "
27
+ msgstr ":mod:`sndhdr ` --- 判定聲音檔案的型別 "
25
28
26
29
#: ../../library/sndhdr.rst:11
27
30
msgid "**Source code:** :source:`Lib/sndhdr.py`"
@@ -33,7 +36,7 @@ msgid ""
33
36
"details and alternatives)."
34
37
msgstr ""
35
38
":mod:`sndhdr` 模組 (module) 即將被棄用(詳情與替代方案請見 :pep:`PEP 594 "
36
- "<594#sndhdr>`\\ )。"
39
+ "<594#sndhdr>`)。"
37
40
38
41
#: ../../library/sndhdr.rst:23
39
42
msgid ""
@@ -52,21 +55,36 @@ msgid ""
52
55
"the tuple, *bits_per_sample*, will either be the sample size in bits or "
53
56
"``'A'`` for A-LAW or ``'U'`` for u-LAW."
54
57
msgstr ""
58
+ ":mod:`sndhdr` 提供了企圖猜測檔案中聲音資料型別的工具函式。當這些函式可以推測"
59
+ "出儲存在檔案中聲音資料的型別,它們分別回傳一個 :func:`collections."
60
+ "namedtuple`,包含了五種屬性:(``filetype``、``framerate``、``nchannels``、"
61
+ "``nframes``、``sampwidth``)。這些 *type* 的值表示資料的型別,會是以下字串之"
62
+ "一:``'aifc'``、``'aiff'``、``'au'``、``'hcom'``、``'sndr'``、``'sndt'``、"
63
+ "``'voc'``、``'wav'``、``'8svx'``、``'sb'``、``'ub'`` 或 ``'ul'``。"
64
+ "*sampling_rate*\\ (取樣頻率)可能是實際值、或者當未知或者難以解碼時為 "
65
+ "``0``。同樣的,*channels*\\ (影像通道數)也會回傳實際值或者在無法推測或難以"
66
+ "解碼時回傳 ``0``。*frames*\\ (幀數)則是實際值或 ``-1``。tuple 的最後一項,"
67
+ "*bits_per_sample* 為位元表示的取樣大小,或者在 A-LAW 時為 ``'A'``,u-LAW 時"
68
+ "為 ``'U'``。"
55
69
56
70
#: ../../library/sndhdr.rst:40
57
71
msgid ""
58
72
"Determines the type of sound data stored in the file *filename* using :func:"
59
73
"`whathdr`. If it succeeds, returns a namedtuple as described above, "
60
74
"otherwise ``None`` is returned."
61
75
msgstr ""
76
+ "使用 :func:`whathdr` 推測儲存在 *filename* 檔案中聲音資料的型別。如果成功,回"
77
+ "傳上述的 namedtuple(附名元組),否則回傳 ``None``。"
62
78
63
79
#: ../../library/sndhdr.rst:44 ../../library/sndhdr.rst:54
64
80
msgid "Result changed from a tuple to a namedtuple."
65
- msgstr ""
81
+ msgstr "結果從 tuple 改為 namedtuple。 "
66
82
67
83
#: ../../library/sndhdr.rst:50
68
84
msgid ""
69
85
"Determines the type of sound data stored in a file based on the file "
70
86
"header. The name of the file is given by *filename*. This function returns "
71
87
"a namedtuple as described above on success, or ``None``."
72
88
msgstr ""
89
+ "根據檔案標頭 (header) 推測儲存在檔案中的聲音資料型別。檔名由 *filename* 給"
90
+ "定。這個函式在成功時回傳上述 namedtuple,或在失敗時回傳 ``None``。"
0 commit comments