Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd4e9fb

Browse files
authored
Translatelibrary/symtable.po (#573)
* feat: translate `library/symtable.po`* fix(library/symtable): modify based on review comments
1 parentb77bd3a commitdd4e9fb

File tree

1 file changed

+56
-34
lines changed

1 file changed

+56
-34
lines changed

‎library/symtable.po

Lines changed: 56 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
1+
# Copyright (C) 2001-2023, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
54
# Translators:
5+
# Matt Wang <mattwang44@gmail.com>, 2023
66
msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
1010
"POT-Creation-Date:2022-10-15 20:43+0000\n"
1111
"PO-Revision-Date:2015-12-09 17:51+0000\n"
12-
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
12+
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
1515
"Language:zh_TW\n"
@@ -20,7 +20,7 @@ msgstr ""
2020

2121
#:../../library/symtable.rst:2
2222
msgid":mod:`symtable` --- Access to the compiler's symbol tables"
23-
msgstr""
23+
msgstr":mod:`symtable` --- 存取編譯器的符號表"
2424

2525
#:../../library/symtable.rst:7
2626
msgid"**Source code:** :source:`Lib/symtable.py`"
@@ -33,175 +33,193 @@ msgid ""
3333
"every identifier in the code. :mod:`symtable` provides an interface to "
3434
"examine these tables."
3535
msgstr""
36+
"符號表 (symbol table) 是在生成位元組碼 (bytecode) 之前由編譯器從 AST 生成的。"
37+
"符號表負責計算程式碼中每個識別器 (identifier) 的範圍。:mod:`symtable` 提供了"
38+
"一個介面來檢查這些表。"
3639

3740
#:../../library/symtable.rst:22
3841
msgid"Generating Symbol Tables"
39-
msgstr""
42+
msgstr"產生符號表"
4043

4144
#:../../library/symtable.rst:26
4245
msgid""
4346
"Return the toplevel :class:`SymbolTable` for the Python source *code*. "
4447
"*filename* is the name of the file containing the code. *compile_type* is "
4548
"like the *mode* argument to :func:`compile`."
4649
msgstr""
50+
"回傳 Python 原始 *code* 的頂層 :class:`SymbolTable`。*filename* 是包含程式碼"
51+
"之檔案之名稱。*compile_type* 類似於 :func:`compile` 的 *mode* 引數。"
4752

4853
#:../../library/symtable.rst:32
4954
msgid"Examining Symbol Tables"
50-
msgstr""
55+
msgstr"檢查符號表"
5156

5257
#:../../library/symtable.rst:36
5358
msgid"A namespace table for a block. The constructor is not public."
5459
msgstr""
60+
"一個區塊 (block) 的命名空間表 (namespace table) 。建構函式 (constructor) 並不"
61+
"公開。"
5562

5663
#:../../library/symtable.rst:40
5764
msgid""
5865
"Return the type of the symbol table. Possible values are ``'class'``, "
5966
"``'module'``, and ``'function'``."
6067
msgstr""
68+
"回傳符號表的種類。可能的值為 ``'class'``、``'module'`` 和 ``'function'``。"
6169

6270
#:../../library/symtable.rst:45
6371
msgid"Return the table's identifier."
64-
msgstr""
72+
msgstr"回傳表的識別器。"
6573

6674
#:../../library/symtable.rst:49
6775
msgid""
6876
"Return the table's name. This is the name of the class if the table is for "
6977
"a class, the name of the function if the table is for a function, or "
7078
"``'top'`` if the table is global (:meth:`get_type` returns ``'module'``)."
7179
msgstr""
80+
"回傳表的名稱。如果表用於類別,則這是類別的名稱;如果表用於函式,則這是函式的"
81+
"名稱;如果表是全域的,則為 ``'top'`` (:meth:`get_type` 會回傳 "
82+
"``'module'``)。"
7283

7384
#:../../library/symtable.rst:55
7485
msgid"Return the number of the first line in the block this table represents."
75-
msgstr""
86+
msgstr"回傳此表所代表的區塊中第一行的編號。"
7687

7788
#:../../library/symtable.rst:59
7889
msgid"Return ``True`` if the locals in this table can be optimized."
79-
msgstr""
90+
msgstr"如果可以最佳化該表中的區域變數,則回傳 ``True``。"
8091

8192
#:../../library/symtable.rst:63
8293
msgid"Return ``True`` if the block is a nested class or function."
83-
msgstr""
94+
msgstr"如果區塊是巢狀類別或函式,則回傳 ``True``。"
8495

8596
#:../../library/symtable.rst:67
8697
msgid""
8798
"Return ``True`` if the block has nested namespaces within it. These can be "
8899
"obtained with :meth:`get_children`."
89100
msgstr""
101+
"如果區塊內有巢狀命名空間,則回傳 ``True``。這些可以通過 :meth:`get_children` "
102+
"獲得。"
90103

91104
#:../../library/symtable.rst:72
92105
msgid""
93106
"Return a view object containing the names of symbols in the table. See the :"
94107
"ref:`documentation of view objects <dict-views>`."
95108
msgstr""
109+
"回傳包含表中符號之名稱的視圖物件 (view object)。請參閱\\ :ref:`視圖物件的文"
110+
"件 <dict-views>`。"
96111

97112
#:../../library/symtable.rst:77
98113
msgid"Lookup *name* in the table and return a :class:`Symbol` instance."
99-
msgstr""
114+
msgstr"在表中查找 *name* 並回傳一個 :class:`Symbol` 實例。"
100115

101116
#:../../library/symtable.rst:81
102117
msgid"Return a list of :class:`Symbol` instances for names in the table."
103-
msgstr""
118+
msgstr"回傳表中名稱的 :class:`Symbol` 實例串列。"
104119

105120
#:../../library/symtable.rst:85
106121
msgid"Return a list of the nested symbol tables."
107-
msgstr""
122+
msgstr"回傳巢狀符號表的串列。"
108123

109124
#:../../library/symtable.rst:90
110125
msgid""
111126
"A namespace for a function or method. This class inherits :class:"
112127
"`SymbolTable`."
113-
msgstr""
128+
msgstr"一個函式或方法的命名空間。該類別繼承自 :class:`SymbolTable`。"
114129

115130
#:../../library/symtable.rst:95
116131
msgid"Return a tuple containing names of parameters to this function."
117-
msgstr""
132+
msgstr"回傳一個包含此函式參數名稱的元組 (tuple)。"
118133

119134
#:../../library/symtable.rst:99
120135
msgid"Return a tuple containing names of locals in this function."
121-
msgstr""
136+
msgstr"回傳一個包含此函式中區域變數 (locals) 名稱的元組。"
122137

123138
#:../../library/symtable.rst:103
124139
msgid"Return a tuple containing names of globals in this function."
125-
msgstr""
140+
msgstr"回傳一個包含此函式中全域變數 (globals) 名稱的元組。"
126141

127142
#:../../library/symtable.rst:107
128143
msgid"Return a tuple containing names of nonlocals in this function."
129-
msgstr""
144+
msgstr"回傳一個包含此函式中非區域變數 (nonlocals) 名稱的元組。"
130145

131146
#:../../library/symtable.rst:111
132147
msgid"Return a tuple containing names of free variables in this function."
133-
msgstr""
148+
msgstr"回傳一個包含此函式中自由變數 (free variables) 名稱的元組。"
134149

135150
#:../../library/symtable.rst:116
136151
msgid"A namespace of a class. This class inherits :class:`SymbolTable`."
137-
msgstr""
152+
msgstr"一個類別的命名空間。該類別繼承自 :class:`SymbolTable`。"
138153

139154
#:../../library/symtable.rst:120
140155
msgid"Return a tuple containing the names of methods declared in the class."
141-
msgstr""
156+
msgstr"回傳一個包含類別中聲明的方法名稱的元組。"
142157

143158
#:../../library/symtable.rst:125
144159
msgid""
145160
"An entry in a :class:`SymbolTable` corresponding to an identifier in the "
146161
"source. The constructor is not public."
147162
msgstr""
163+
":class:`SymbolTable` 中的條目對應於來源中的識別器。建構函式不是公開的。"
148164

149165
#:../../library/symtable.rst:130
150166
msgid"Return the symbol's name."
151-
msgstr""
167+
msgstr"回傳符號的名稱。"
152168

153169
#:../../library/symtable.rst:134
154170
msgid"Return ``True`` if the symbol is used in its block."
155-
msgstr""
171+
msgstr"如果該符號在其區塊中使用,則回傳 ``True``。"
156172

157173
#:../../library/symtable.rst:138
158174
msgid"Return ``True`` if the symbol is created from an import statement."
159-
msgstr""
175+
msgstr"如果符號是從 import 陳述式建立的,則回傳 ``True``。"
160176

161177
#:../../library/symtable.rst:142
162178
msgid"Return ``True`` if the symbol is a parameter."
163-
msgstr""
179+
msgstr"如果符號是一個參數,則回傳 ``True``。"
164180

165181
#:../../library/symtable.rst:146
166182
msgid"Return ``True`` if the symbol is global."
167-
msgstr""
183+
msgstr"如果符號是全域的,則回傳 ``True``。"
168184

169185
#:../../library/symtable.rst:150
170186
msgid"Return ``True`` if the symbol is nonlocal."
171-
msgstr""
187+
msgstr"如果符號是非區域的,則回傳 ``True``。"
172188

173189
#:../../library/symtable.rst:154
174190
msgid""
175191
"Return ``True`` if the symbol is declared global with a global statement."
176-
msgstr""
192+
msgstr"如果使用全域陳述式將符號聲明為全域的,則回傳 ``True``。"
177193

178194
#:../../library/symtable.rst:158
179195
msgid"Return ``True`` if the symbol is local to its block."
180-
msgstr""
196+
msgstr"如果符號是其區塊的區域符號,則回傳 ``True``。"
181197

182198
#:../../library/symtable.rst:162
183199
msgid"Return ``True`` if the symbol is annotated."
184-
msgstr""
200+
msgstr"如果符號有被註釋,則回傳 ``True``。"
185201

186202
#:../../library/symtable.rst:168
187203
msgid""
188204
"Return ``True`` if the symbol is referenced in its block, but not assigned "
189205
"to."
190206
msgstr""
207+
"如果該符號在其區塊中被參照 (referenced) 但未被賦值 (assigned),則回傳 "
208+
"``True``。"
191209

192210
#:../../library/symtable.rst:173
193211
msgid"Return ``True`` if the symbol is assigned to in its block."
194-
msgstr""
212+
msgstr"如果該符號被賦值到其區塊中,則回傳 ``True``。"
195213

196214
#:../../library/symtable.rst:177
197215
msgid"Return ``True`` if name binding introduces new namespace."
198-
msgstr""
216+
msgstr"如果名稱綁定引入 (introduce) 新的命名空間,則回傳 ``True``。"
199217

200218
#:../../library/symtable.rst:179
201219
msgid""
202220
"If the name is used as the target of a function or class statement, this "
203221
"will be true."
204-
msgstr""
222+
msgstr"如果名稱用作函式或類別陳述式的目標,則這將會是 true。"
205223

206224
#:../../library/symtable.rst:182
207225
msgid"For example::"
@@ -216,13 +234,17 @@ msgid ""
216234
"``True``, the name may also be bound to other objects, like an int or list, "
217235
"that does not introduce a new namespace."
218236
msgstr""
237+
"請注意,單個名稱可以綁定到多個物件。如果結果為 ``True``,則該名稱也可能被綁定"
238+
"到其他物件,例如 int 或 list,而不會引入新的命名空間。"
219239

220240
#:../../library/symtable.rst:194
221241
msgid"Return a list of namespaces bound to this name."
222-
msgstr""
242+
msgstr"回傳綁定到該名稱的命名空間的串列。"
223243

224244
#:../../library/symtable.rst:198
225245
msgid""
226246
"Return the namespace bound to this name. If more than one or no namespace is "
227247
"bound to this name, a :exc:`ValueError` is raised."
228248
msgstr""
249+
"回傳綁定到該名稱的命名空間。如果該名稱綁定了多個命名空間或沒有命名空間,則會"
250+
"引發 :exc:`ValueError`。"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp