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

Commit80822b6

Browse files
Update translation
Co-Authored-By: Gustavo ReisCo-Authored-By: Marcos MoraesCo-Authored-By: python-doc botCo-Authored-By: Rafael Fontenelle <rffontenelle@gmail.com>
1 parent068602e commit80822b6

File tree

7 files changed

+352
-368
lines changed

7 files changed

+352
-368
lines changed

‎c-api/type.po‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ msgid ""
194194
":c:func:`PyType_GetSlot` can now accept all types. Previously, it was "
195195
"limited to :ref:`heap types <heap-types>`."
196196
msgstr""
197-
":c:func:`PyType_GetSlot` agora aceita todos os tipos. Antes, estava "
198-
"limitada à:ref:`heap types `."
197+
":c:func:`PyType_GetSlot` agora aceita todos os tipos. Antes, estava limitada "
198+
"a:ref:`tiposheap<heap-types>`."
199199

200200
#:../../c-api/type.rst:140
201201
msgid""

‎howto/enum.po‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ msgid ""
437437
"data type, and as many :class:`object`-based mixin classes as needed. The "
438438
"order of these base classes is::"
439439
msgstr""
440-
"Uma nova classe :class:`Enum`deve ter uma classe enum base, até um tipo de "
441-
"dado concreto, e quantas classes mixin baseadas em :class:`object`forem "
440+
"Uma nova classe :class:`Enum`deve ter uma classe enum base, até um tipo de "
441+
"dado concreto, e quantas classes mixin baseadas em :class:`object`forem "
442442
"necessárias. A ordem dessas classes base é::"
443443

444444
#:../../howto/enum.rst:447

‎library/dis.po‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version:Python 3.11\n"
1313
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2025-09-23 16:19+0000\n"
14+
"POT-Creation-Date:2025-10-13 16:41+0000\n"
1515
"PO-Revision-Date:2025-09-22 16:49+0000\n"
1616
"Last-Translator:python-doc bot, 2025\n"
1717
"Language-Team:Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -863,7 +863,7 @@ msgid ""
863863
msgstr""
864864
"Re-levanta a exceção que se encontra no topo da pilha. Se o oparg não for "
865865
"zero, remove um valor adicional do topo da pilha, o qual é atribuído ao :"
866-
"attr:`~frame.f_lasti`` do quadro atual."
866+
"attr:`~frame.f_lasti` do quadro atual."
867867

868868
#:../../library/dis.rst:694
869869
msgid""

‎library/html.parser.po‎

Lines changed: 65 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version:Python 3.11\n"
1313
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2025-09-22 20:37+0000\n"
14+
"POT-Creation-Date:2025-11-01 16:25+0000\n"
1515
"PO-Revision-Date:2025-09-22 16:50+0000\n"
1616
"Last-Translator:python-doc bot, 2025\n"
1717
"Language-Team:Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -44,105 +44,116 @@ msgstr ""
4444

4545
#:../../library/html.parser.rst:22
4646
msgid""
47-
"If *convert_charrefs* is``True`` (the default), all character references "
48-
"(except the ones in ``script``/``style`` elements) are automatically "
49-
"converted to the corresponding Unicode characters."
47+
"If *convert_charrefs* istrue (the default), all character references "
48+
"(except the ones inelements like``script`` and``style``) are "
49+
"automaticallyconverted to the corresponding Unicode characters."
5050
msgstr""
5151

5252
#:../../library/html.parser.rst:26
5353
msgid""
54+
"If *scripting* is false (the default), the content of the ``noscript`` "
55+
"element is parsed normally; if it's true, it's returned as is without being "
56+
"parsed."
57+
msgstr""
58+
59+
#:../../library/html.parser.rst:30
60+
msgid""
5461
"An :class:`.HTMLParser` instance is fed HTML data and calls handler methods "
5562
"when start tags, end tags, text, comments, and other markup elements are "
5663
"encountered. The user should subclass :class:`.HTMLParser` and override its "
5764
"methods to implement the desired behavior."
5865
msgstr""
5966

60-
#:../../library/html.parser.rst:31
67+
#:../../library/html.parser.rst:35
6168
msgid""
6269
"This parser does not check that end tags match start tags or call the end-"
6370
"tag handler for elements which are closed implicitly by closing an outer "
6471
"element."
6572
msgstr""
6673

67-
#:../../library/html.parser.rst:34
74+
#:../../library/html.parser.rst:38
6875
msgid"*convert_charrefs* keyword argument added."
6976
msgstr""
7077

71-
#:../../library/html.parser.rst:37
78+
#:../../library/html.parser.rst:41
7279
msgid"The default value for argument *convert_charrefs* is now ``True``."
7380
msgstr""
7481

75-
#:../../library/html.parser.rst:42
82+
#:../../library/html.parser.rst:44
83+
msgid"Added the *scripting* parameter."
84+
msgstr""
85+
86+
#:../../library/html.parser.rst:49
7687
msgid"Example HTML Parser Application"
7788
msgstr""
7889

79-
#:../../library/html.parser.rst:44
90+
#:../../library/html.parser.rst:51
8091
msgid""
8192
"As a basic example, below is a simple HTML parser that uses the :class:"
8293
"`HTMLParser` class to print out start tags, end tags, and data as they are "
8394
"encountered::"
8495
msgstr""
8596

86-
#:../../library/html.parser.rst:64
97+
#:../../library/html.parser.rst:71
8798
msgid"The output will then be:"
8899
msgstr""
89100

90-
#:../../library/html.parser.rst:83
101+
#:../../library/html.parser.rst:90
91102
msgid":class:`.HTMLParser` Methods"
92103
msgstr""
93104

94-
#:../../library/html.parser.rst:85
105+
#:../../library/html.parser.rst:92
95106
msgid":class:`HTMLParser` instances have the following methods:"
96107
msgstr""
97108

98-
#:../../library/html.parser.rst:90
109+
#:../../library/html.parser.rst:97
99110
msgid""
100111
"Feed some text to the parser. It is processed insofar as it consists of "
101112
"complete elements; incomplete data is buffered until more data is fed or :"
102113
"meth:`close` is called. *data* must be :class:`str`."
103114
msgstr""
104115

105-
#:../../library/html.parser.rst:97
116+
#:../../library/html.parser.rst:104
106117
msgid""
107118
"Force processing of all buffered data as if it were followed by an end-of-"
108119
"file mark. This method may be redefined by a derived class to define "
109120
"additional processing at the end of the input, but the redefined version "
110121
"should always call the :class:`HTMLParser` base class method :meth:`close`."
111122
msgstr""
112123

113-
#:../../library/html.parser.rst:105
124+
#:../../library/html.parser.rst:112
114125
msgid""
115126
"Reset the instance. Loses all unprocessed data. This is called implicitly "
116127
"at instantiation time."
117128
msgstr""
118129

119-
#:../../library/html.parser.rst:111
130+
#:../../library/html.parser.rst:118
120131
msgid"Return current line number and offset."
121132
msgstr""
122133

123-
#:../../library/html.parser.rst:116
134+
#:../../library/html.parser.rst:123
124135
msgid""
125136
"Return the text of the most recently opened start tag. This should not "
126137
"normally be needed for structured processing, but may be useful in dealing "
127138
"with HTML\"as deployed\" or for re-generating input with minimal changes "
128139
"(whitespace between attributes can be preserved, etc.)."
129140
msgstr""
130141

131-
#:../../library/html.parser.rst:122
142+
#:../../library/html.parser.rst:129
132143
msgid""
133144
"The following methods are called when data or markup elements are "
134145
"encountered and they are meant to be overridden in a subclass. The base "
135146
"class implementations do nothing (except for :meth:`~HTMLParser."
136147
"handle_startendtag`):"
137148
msgstr""
138149

139-
#:../../library/html.parser.rst:129
150+
#:../../library/html.parser.rst:136
140151
msgid""
141152
"This method is called to handle the start tag of an element (e.g. ``<div "
142153
"id=\"main\">``)."
143154
msgstr""
144155

145-
#:../../library/html.parser.rst:131
156+
#:../../library/html.parser.rst:138
146157
msgid""
147158
"The *tag* argument is the name of the tag converted to lower case. The "
148159
"*attrs* argument is a list of ``(name, value)`` pairs containing the "
@@ -151,29 +162,29 @@ msgid ""
151162
"character and entity references have been replaced."
152163
msgstr""
153164

154-
#:../../library/html.parser.rst:137
165+
#:../../library/html.parser.rst:144
155166
msgid""
156167
"For instance, for the tag ``<A HREF=\"https://www.cwi.nl/\">``, this method "
157168
"would be called as ``handle_starttag('a', [('href', 'https://www.cwi."
158169
"nl/')])``."
159170
msgstr""
160171

161-
#:../../library/html.parser.rst:140
172+
#:../../library/html.parser.rst:147
162173
msgid""
163174
"All entity references from :mod:`html.entities` are replaced in the "
164175
"attribute values."
165176
msgstr""
166177

167-
#:../../library/html.parser.rst:146
178+
#:../../library/html.parser.rst:153
168179
msgid""
169180
"This method is called to handle the end tag of an element (e.g. ``</div>``)."
170181
msgstr""
171182

172-
#:../../library/html.parser.rst:148
183+
#:../../library/html.parser.rst:155
173184
msgid"The *tag* argument is the name of the tag converted to lower case."
174185
msgstr""
175186

176-
#:../../library/html.parser.rst:153
187+
#:../../library/html.parser.rst:160
177188
msgid""
178189
"Similar to :meth:`handle_starttag`, but called when the parser encounters an "
179190
"XHTML-style empty tag (``<img ... />``). This method may be overridden by "
@@ -182,61 +193,61 @@ msgid ""
182193
"`handle_endtag`."
183194
msgstr""
184195

185-
#:../../library/html.parser.rst:161
196+
#:../../library/html.parser.rst:168
186197
msgid""
187198
"This method is called to process arbitrary data (e.g. text nodes and the "
188-
"content of``<script>...</script>`` and ``<style>...</style>``)."
199+
"content ofelements like ``script`` and ``style``)."
189200
msgstr""
190201

191-
#:../../library/html.parser.rst:167
202+
#:../../library/html.parser.rst:174
192203
msgid""
193204
"This method is called to process a named character reference of the form "
194205
"``&name;`` (e.g. ``&gt;``), where *name* is a general entity reference (e.g. "
195-
"``'gt'``).This method isnever called if *convert_charrefs* is``True``."
206+
"``'gt'``). This method isonly called if *convert_charrefs* isfalse."
196207
msgstr""
197208

198-
#:../../library/html.parser.rst:175
209+
#:../../library/html.parser.rst:182
199210
msgid""
200211
"This method is called to process decimal and hexadecimal numeric character "
201212
"references of the form :samp:`&#{NNN};` and :samp:`&#x{NNN};`. For example, "
202213
"the decimal equivalent for ``&gt;`` is ``&#62;``, whereas the hexadecimal is "
203-
"``&#x3E;``; in this case the method will receive ``'62'`` or ``'x3E'``. "
204-
"Thismethod isnever called if *convert_charrefs* is``True``."
214+
"``&#x3E;``; in this case the method will receive ``'62'`` or ``'x3E'``.This "
215+
"method isonly called if *convert_charrefs* isfalse."
205216
msgstr""
206217

207-
#:../../library/html.parser.rst:184
218+
#:../../library/html.parser.rst:191
208219
msgid""
209220
"This method is called when a comment is encountered (e.g. ``<!--comment--"
210221
">``)."
211222
msgstr""
212223

213-
#:../../library/html.parser.rst:186
224+
#:../../library/html.parser.rst:193
214225
msgid""
215226
"For example, the comment ``<!-- comment -->`` will cause this method to be "
216227
"called with the argument ``' comment '``."
217228
msgstr""
218229

219-
#:../../library/html.parser.rst:189
230+
#:../../library/html.parser.rst:196
220231
msgid""
221232
"The content of Internet Explorer conditional comments (condcoms) will also "
222233
"be sent to this method, so, for ``<!--[if IE 9]>IE9-specific content<!"
223234
"[endif]-->``, this method will receive ``'[if IE 9]>IE9-specific content<!"
224235
"[endif]'``."
225236
msgstr""
226237

227-
#:../../library/html.parser.rst:196
238+
#:../../library/html.parser.rst:203
228239
msgid""
229240
"This method is called to handle an HTML doctype declaration (e.g. ``<!"
230241
"DOCTYPE html>``)."
231242
msgstr""
232243

233-
#:../../library/html.parser.rst:199
244+
#:../../library/html.parser.rst:206
234245
msgid""
235246
"The *decl* parameter will be the entire contents of the declaration inside "
236247
"the ``<!...>`` markup (e.g. ``'DOCTYPE html'``)."
237248
msgstr""
238249

239-
#:../../library/html.parser.rst:205
250+
#:../../library/html.parser.rst:212
240251
msgid""
241252
"Method called when a processing instruction is encountered. The *data* "
242253
"parameter will contain the entire processing instruction. For example, for "
@@ -245,67 +256,67 @@ msgid ""
245256
"overridden by a derived class; the base class implementation does nothing."
246257
msgstr""
247258

248-
#:../../library/html.parser.rst:213
259+
#:../../library/html.parser.rst:220
249260
msgid""
250261
"The :class:`HTMLParser` class uses the SGML syntactic rules for processing "
251262
"instructions. An XHTML processing instruction using the trailing ``'?'`` "
252263
"will cause the ``'?'`` to be included in *data*."
253264
msgstr""
254265

255-
#:../../library/html.parser.rst:220
266+
#:../../library/html.parser.rst:227
256267
msgid""
257268
"This method is called when an unrecognized declaration is read by the parser."
258269
msgstr""
259270

260-
#:../../library/html.parser.rst:222
271+
#:../../library/html.parser.rst:229
261272
msgid""
262273
"The *data* parameter will be the entire contents of the declaration inside "
263274
"the ``<![...]>`` markup. It is sometimes useful to be overridden by a "
264275
"derived class. The base class implementation does nothing."
265276
msgstr""
266277

267-
#:../../library/html.parser.rst:230
278+
#:../../library/html.parser.rst:237
268279
msgid"Examples"
269280
msgstr"Exemplos"
270281

271-
#:../../library/html.parser.rst:232
282+
#:../../library/html.parser.rst:239
272283
msgid""
273284
"The following class implements a parser that will be used to illustrate more "
274285
"examples::"
275286
msgstr""
276287

277-
#:../../library/html.parser.rst:269
288+
#:../../library/html.parser.rst:276
278289
msgid"Parsing a doctype::"
279290
msgstr""
280291

281-
#:../../library/html.parser.rst:275
292+
#:../../library/html.parser.rst:282
282293
msgid"Parsing an element with a few attributes and a title::"
283294
msgstr""
284295

285-
#:../../library/html.parser.rst:287
296+
#:../../library/html.parser.rst:294
286297
msgid""
287-
"The content of ``script`` and ``style``elementsis returned as is, without "
288-
"further parsing::"
298+
"The content ofelements like``script`` and ``style`` is returned as is, "
299+
"withoutfurther parsing::"
289300
msgstr""
290301

291-
#:../../library/html.parser.rst:303
302+
#:../../library/html.parser.rst:310
292303
msgid"Parsing comments::"
293304
msgstr""
294305

295-
#:../../library/html.parser.rst:310
306+
#:../../library/html.parser.rst:317
296307
msgid""
297308
"Parsing named and numeric character references and converting them to the "
298309
"correct char (note: these 3 references are all equivalent to ``'>'``)::"
299310
msgstr""
300311

301-
#:../../library/html.parser.rst:318
312+
#:../../library/html.parser.rst:325
302313
msgid""
303314
"Feeding incomplete chunks to :meth:`~HTMLParser.feed` works, but :meth:"
304-
"`~HTMLParser.handle_data` might be called more than once(unless "
305-
"*convert_charrefs* isset to ``True``)::"
315+
"`~HTMLParser.handle_data` might be called more than onceif "
316+
"*convert_charrefs* isfalse::"
306317
msgstr""
307318

308-
#:../../library/html.parser.rst:331
319+
#:../../library/html.parser.rst:338
309320
msgid"Parsing invalid HTML (e.g. unquoted attributes) also works::"
310321
msgstr""
311322

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp