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

Commitcdbfdaa

Browse files
Update translation
Co-Authored-By: Rafael Fontenelle <rffontenelle@gmail.com>
1 parentdcc6b4b commitcdbfdaa

File tree

3 files changed

+101
-10
lines changed

3 files changed

+101
-10
lines changed

‎library/html.parser.po‎

Lines changed: 96 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ msgstr ""
140140
"\n"
141141
"class MyHTMLParser(HTMLParser):\n"
142142
" def handle_starttag(self, tag, attrs):\n"
143-
" print(\"Encontrada a tag de abertura:\", tag)\n"
143+
" print(\"Encontrada a tag de abertura:\", tag)\n"
144144
"\n"
145145
" def handle_endtag(self, tag):\n"
146146
" print(\"Encontrada a tag de fechamento:\", tag)\n"
147147
"\n"
148148
" def handle_data(self, data):\n"
149-
" print(\"Encontrados alguns dados :\", data)\n"
149+
" print(\"Encontrados alguns dados:\", data)\n"
150150
"\n"
151151
"parser = MyHTMLParser()\n"
152152
"parser.feed('<html><head><title>Teste</title></head>'\n"
@@ -171,21 +171,37 @@ msgid ""
171171
"Encountered an end tag : body\n"
172172
"Encountered an end tag : html"
173173
msgstr""
174+
"Encontrada a tag de abertura : html\n"
175+
"Encontrada a tag de abertura : head\n"
176+
"Encontrada a tag de abertura : title\n"
177+
"Encontrados alguns dados : Teste\n"
178+
"Encontrada a tag de fechamento: title\n"
179+
"Encontrada a tag de fechamento: head\n"
180+
"Encontrada a tag de abertura : body\n"
181+
"Encontrada a tag de abertura : h1\n"
182+
"Encontrados alguns dados : Me analise!\n"
183+
"Encontrada a tag de fechamento: h1\n"
184+
"Encontrada a tag de fechamento: body\n"
185+
"Encontrada a tag de fechamento: html"
174186

175187
#:../../library/html.parser.rst:92
176188
msgid":class:`.HTMLParser` Methods"
177-
msgstr""
189+
msgstr"Métodos :class:`.HTMLParser`"
178190

179191
#:../../library/html.parser.rst:94
180192
msgid":class:`HTMLParser` instances have the following methods:"
181-
msgstr""
193+
msgstr"Instâncias de :class:`HTMLParser` têm os seguintes métodos:"
182194

183195
#:../../library/html.parser.rst:99
184196
msgid""
185197
"Feed some text to the parser. It is processed insofar as it consists of "
186198
"complete elements; incomplete data is buffered until more data is fed or :"
187199
"meth:`close` is called. *data* must be :class:`str`."
188200
msgstr""
201+
"Fornece algum texto ao analisador. Ele será processado na medida em que "
202+
"consistir em elementos completos; dados incompletos serão armazenados em "
203+
"buffer até que mais dados sejam fornecidos ou que o método :meth:`close` "
204+
"seja chamado. Os dados devem ser do tipo :class:`str`."
189205

190206
#:../../library/html.parser.rst:106
191207
msgid""
@@ -194,16 +210,23 @@ msgid ""
194210
"additional processing at the end of the input, but the redefined version "
195211
"should always call the :class:`HTMLParser` base class method :meth:`close`."
196212
msgstr""
213+
"Força o processamento de todos os dados em buffer como se fossem seguidos "
214+
"por uma marca de fim de arquivo. Este método pode ser redefinido por uma "
215+
"classe derivada para definir processamento adicional no final da entrada, "
216+
"mas a versão redefinida deve sempre chamar o método :meth:`close` da classe "
217+
"base :class:`HTMLParser`."
197218

198219
#:../../library/html.parser.rst:114
199220
msgid""
200221
"Reset the instance. Loses all unprocessed data. This is called implicitly "
201222
"at instantiation time."
202223
msgstr""
224+
"Reinicializa a instância. Perde todos os dados não processados. Este método "
225+
"é chamado implicitamente no momento da instanciação."
203226

204227
#:../../library/html.parser.rst:120
205228
msgid"Return current line number and offset."
206-
msgstr""
229+
msgstr"Retorna o número da linha atual e o deslocamento."
207230

208231
#:../../library/html.parser.rst:125
209232
msgid""
@@ -212,6 +235,11 @@ msgid ""
212235
"with HTML\"as deployed\" or for re-generating input with minimal changes "
213236
"(whitespace between attributes can be preserved, etc.)."
214237
msgstr""
238+
"Retorna o texto da tag de abertura aberta mais recentemente. Normalmente, "
239+
"isso não é necessário para processamento estruturado, mas pode ser útil ao "
240+
"lidar com HTML\"como implantado\" ou para regenerar a entrada com "
241+
"alterações mínimas (o espaço em branco entre os atributos pode ser "
242+
"preservado, etc.)."
215243

216244
#:../../library/html.parser.rst:131
217245
msgid""
@@ -220,12 +248,18 @@ msgid ""
220248
"class implementations do nothing (except for :meth:`~HTMLParser."
221249
"handle_startendtag`):"
222250
msgstr""
251+
"Os seguintes métodos são chamados quando elementos de dados ou de marcação "
252+
"são encontrados e devem ser sobrescritos em uma subclasse. As implementações "
253+
"da classe base não fazem nada (exceto por :meth:`~HTMLParser."
254+
"handle_startendtag`):"
223255

224256
#:../../library/html.parser.rst:138
225257
msgid""
226258
"This method is called to handle the start tag of an element (e.g. ``<div "
227259
"id=\"main\">``)."
228260
msgstr""
261+
"Este método é chamado para manipular a tag de abertura de um elemento (por "
262+
"exemplo, ``<div id=\"main\">``)."
229263

230264
#:../../library/html.parser.rst:140
231265
msgid""
@@ -235,28 +269,41 @@ msgid ""
235269
"translated to lower case, and quotes in the *value* have been removed, and "
236270
"character and entity references have been replaced."
237271
msgstr""
272+
"O argumento *tag* é o nome da tag convertido para minúsculas. O argumento "
273+
"*attrs* é uma lista de pares ``(nome, valor)`` contendo os atributos "
274+
"encontrados dentro dos colchetes ``<>`` da tag. O *nome* será traduzido para "
275+
"minúsculas, as aspas no *valor* foram removidas e as referências a "
276+
"caracteres e entidades foram substituídas."
238277

239278
#:../../library/html.parser.rst:146
240279
msgid""
241280
"For instance, for the tag ``<A HREF=\"https://www.cwi.nl/\">``, this method "
242281
"would be called as ``handle_starttag('a', [('href', 'https://www.cwi."
243282
"nl/')])``."
244283
msgstr""
284+
"Por exemplo, para a tag ``<A HREF=\"https://www.cwi.nl/\">``, este método "
285+
"seria chamado como ``handle_starttag('a', [('href', 'https://www.cwi."
286+
"nl/')])``."
245287

246288
#:../../library/html.parser.rst:149
247289
msgid""
248290
"All entity references from :mod:`html.entities` are replaced in the "
249291
"attribute values."
250292
msgstr""
293+
"Todas as referências de entidade de :mod:`html.entities` são substituídas "
294+
"nos valores dos atributos."
251295

252296
#:../../library/html.parser.rst:155
253297
msgid""
254298
"This method is called to handle the end tag of an element (e.g. ``</div>``)."
255299
msgstr""
300+
"Este método é chamado para manipular a tag de fechamento de um elemento (por "
301+
"exemplo, ``</div>``)."
256302

257303
#:../../library/html.parser.rst:157
258304
msgid"The *tag* argument is the name of the tag converted to lower case."
259305
msgstr""
306+
"O argumento *tag* é o nome da etiqueta convertido para letras minúsculas."
260307

261308
#:../../library/html.parser.rst:162
262309
msgid""
@@ -266,19 +313,30 @@ msgid ""
266313
"implementation simply calls :meth:`handle_starttag` and :meth:"
267314
"`handle_endtag`."
268315
msgstr""
316+
"Similar a :meth:`handle_starttag`, mas chamado quando o analisador sintático "
317+
"encontra uma tag vazia no estilo XHTML (``<img ... />``). Este método pode "
318+
"ser substituído por subclasses que requerem essa informação lexical "
319+
"específica; a implementação padrão simplesmente chama :meth:"
320+
"`handle_starttag` e :meth:`handle_endtag`."
269321

270322
#:../../library/html.parser.rst:170
271323
msgid""
272324
"This method is called to process arbitrary data (e.g. text nodes and the "
273325
"content of elements like ``script`` and ``style``)."
274326
msgstr""
327+
"Este método é chamado para processar dados arbitrários (por exemplo, nós de "
328+
"texto e o conteúdo de elementos como ``script`` e ``style``)."
275329

276330
#:../../library/html.parser.rst:176
277331
msgid""
278332
"This method is called to process a named character reference of the form "
279333
"``&name;`` (e.g. ``&gt;``), where *name* is a general entity reference (e.g. "
280334
"``'gt'``). This method is only called if *convert_charrefs* is false."
281335
msgstr""
336+
"Este método é chamado para processar uma referência de caractere nomeada no "
337+
"formato ``&name;`` (por exemplo, ``&gt;``), onde *name* é uma referência de "
338+
"entidade genérica (por exemplo, ``'gt'``). Este método só é chamado se "
339+
"*convert_charrefs* for falso."
282340

283341
#:../../library/html.parser.rst:184
284342
msgid""
@@ -288,18 +346,27 @@ msgid ""
288346
"``&#x3E;``; in this case the method will receive ``'62'`` or ``'x3E'``. This "
289347
"method is only called if *convert_charrefs* is false."
290348
msgstr""
349+
"Este método é chamado para processar referências de caracteres numéricos "
350+
"decimais e hexadecimais no formato :samp:`&#{NNN};` e :samp:`&#x{NNN};`. Por "
351+
"exemplo, o equivalente decimal para ``&gt;`` é ``&#62;``, enquanto o "
352+
"hexadecimal é ``&#x3E;``; neste caso, o método receberá ``'62'`` ou "
353+
"``'x3E'``. Este método só é chamado se *convert_charrefs* for falso."
291354

292355
#:../../library/html.parser.rst:193
293356
msgid""
294357
"This method is called when a comment is encountered (e.g. ``<!--comment--"
295358
">``)."
296359
msgstr""
360+
"Este método é chamado quando um comentário é encontrado (por exemplo, ``<!--"
361+
"comentário-->``)."
297362

298363
#:../../library/html.parser.rst:195
299364
msgid""
300365
"For example, the comment ``<!-- comment -->`` will cause this method to be "
301366
"called with the argument ``' comment '``."
302367
msgstr""
368+
"Por exemplo, o comentário ``<!-- comentário -->`` fará com que este método "
369+
"seja chamado com o argumento ``' comentário '``."
303370

304371
#:../../library/html.parser.rst:198
305372
msgid""
@@ -308,18 +375,26 @@ msgid ""
308375
"[endif]-->``, this method will receive ``'[if IE 9]>IE9-specific content<!"
309376
"[endif]'``."
310377
msgstr""
378+
"O conteúdo dos comentários condicionais do Internet Explorer (condcoms) "
379+
"também será enviado para este método, portanto, para ``<!--[if IE "
380+
"9]>conteúdo específico do IE9<![endif]-->``, este método receberá ``'[if IE "
381+
"9]>conteúdo específico do IE9<![endif]'``."
311382

312383
#:../../library/html.parser.rst:205
313384
msgid""
314385
"This method is called to handle an HTML doctype declaration (e.g. ``<!"
315386
"DOCTYPE html>``)."
316387
msgstr""
388+
"Este método é chamado para lidar com uma declaração de doctype HTML (por "
389+
"exemplo, ``<!DOCTYPE html>``)."
317390

318391
#:../../library/html.parser.rst:208
319392
msgid""
320393
"The *decl* parameter will be the entire contents of the declaration inside "
321394
"the ``<!...>`` markup (e.g. ``'DOCTYPE html'``)."
322395
msgstr""
396+
"O parâmetro *decl* será todo o conteúdo da declaração dentro da marcação "
397+
"``<!...>`` (por exemplo, ``'DOCTYPE html'``)."
323398

324399
#:../../library/html.parser.rst:214
325400
msgid""
@@ -329,25 +404,39 @@ msgid ""
329404
"called as ``handle_pi(\"proc color='red'\")``. It is intended to be "
330405
"overridden by a derived class; the base class implementation does nothing."
331406
msgstr""
407+
"Método chamado quando uma instrução de processamento é encontrada. O "
408+
"parâmetro *data* conterá a instrução de processamento completa. Por exemplo, "
409+
"para a instrução de processamento ``<?proc color='red'>``, este método seria "
410+
"chamado como ``handle_pi(\"proc color='red'\")``. Ele foi projetado para ser "
411+
"substituído por uma classe derivada; a implementação da classe base não faz "
412+
"nada."
332413

333414
#:../../library/html.parser.rst:222
334415
msgid""
335416
"The :class:`HTMLParser` class uses the SGML syntactic rules for processing "
336417
"instructions. An XHTML processing instruction using the trailing ``'?'`` "
337418
"will cause the ``'?'`` to be included in *data*."
338419
msgstr""
420+
"A classe :class:`HTMLParser` usa as regras sintáticas SGML para processar "
421+
"instruções. Uma instrução de processamento XHTML que usa o caractere ``'?'`` "
422+
"no final fará com que o ``'?'`` seja incluído em *data*."
339423

340424
#:../../library/html.parser.rst:229
341425
msgid""
342426
"This method is called when an unrecognized declaration is read by the parser."
343427
msgstr""
428+
"Este método é chamado quando uma declaração não reconhecida é lida pelo "
429+
"analisador sintático."
344430

345431
#:../../library/html.parser.rst:231
346432
msgid""
347433
"The *data* parameter will be the entire contents of the declaration inside "
348434
"the ``<![...]>`` markup. It is sometimes useful to be overridden by a "
349435
"derived class. The base class implementation does nothing."
350436
msgstr""
437+
"O parâmetro *data* será todo o conteúdo da declaração dentro da marcação ``<!"
438+
"[...]>``. Às vezes, é útil que ele seja sobrescrito por uma classe derivada. "
439+
"A implementação da classe base não faz nada."
351440

352441
#:../../library/html.parser.rst:239
353442
msgid"Examples"
@@ -358,6 +447,8 @@ msgid ""
358447
"The following class implements a parser that will be used to illustrate more "
359448
"examples:"
360449
msgstr""
450+
"A classe a seguir implementa um analisador sintático que será usado para "
451+
"ilustrar mais exemplos:"
361452

362453
#:../../library/html.parser.rst:244
363454
msgid""

‎potodo.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
1 directory 60.61% done
2-
└── 3.14/ 60.61% done
1+
1 directory 60.65% done
2+
└── 3.14/ 60.65% done
33
├── installing/ 100.00% done
44
├── distributing/ 100.00% done
55
├── faq/ 100.00% done
@@ -8,7 +8,7 @@
88
│ └── windows.po 508 / 532 ( 95.0% translated)
99
├── reference/ 99.38% done
1010
│ └── compound_stmts.po 474 / 480 ( 98.0% translated)
11-
├── library/ 60.53% done
11+
├── library/ 60.63% done
1212
│ ├── asyncio-dev.po 16 / 54 ( 29.0% translated)
1313
│ ├── asyncio-eventloop.po 307 / 416 ( 73.0% translated)
1414
│ ├── asyncio-future.po 9 / 64 ( 14.0% translated)
@@ -53,7 +53,7 @@
5353
│ ├── functools.po 19 / 126 ( 15.0% translated)
5454
│ ├── hashlib.po 93 / 170 ( 54.0% translated)
5555
│ ├── heapq.po 48 / 67 ( 71.0% translated)
56-
│ ├── html.parser.po17 / 62 (27.0% translated)
56+
│ ├── html.parser.po46 / 62 (74.0% translated)
5757
│ ├── http.client.po 45 / 117 ( 38.0% translated)
5858
│ ├── http.cookiejar.po 9 / 159 ( 5.0% translated)
5959
│ ├── http.cookies.po 7 / 52 ( 13.0% translated)

‎stats.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion":"60.61%","translated":52282,"entries":81388,"updated_at":"2025-11-04T15:46:19+00:00Z"}
1+
{"completion":"60.65%","translated":52311,"entries":81388,"updated_at":"2025-11-04T23:12:05+00:00Z"}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp