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

Commitd11cb5e

Browse files
Update translation
Co-Authored-By: Rafael Fontenelle <rffontenelle@gmail.com>Co-Authored-By: Rainer Terroso
1 parent9e52908 commitd11cb5e

File tree

5 files changed

+77
-20
lines changed

5 files changed

+77
-20
lines changed

‎extending/newtypes_tutorial.po‎

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version:Python 3.10\n"
1414
"Report-Msgid-Bugs-To:\n"
15-
"POT-Creation-Date:2025-11-17 17:31+0000\n"
15+
"POT-Creation-Date:2025-11-19 18:20+0000\n"
1616
"PO-Revision-Date:2025-09-22 15:57+0000\n"
1717
"Last-Translator:Rainer Terroso, 2025\n"
1818
"Language-Team:Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -408,10 +408,13 @@ msgid ""
408408
"We want to make sure that the first and last names are initialized to empty "
409409
"strings, so we provide a ``tp_new`` implementation::"
410410
msgstr""
411+
"Queremos nos certificar de que o primeiro e o último nome sejam "
412+
"inicializados como strings vazias, portanto, fornecemos uma implementação:: "
413+
"``tp_new`` "
411414

412415
#:../../extending/newtypes_tutorial.rst:316
413416
msgid"and install it in the :c:member:`~PyTypeObject.tp_new` member::"
414-
msgstr""
417+
msgstr"e instale-o no membro:: :c:member:`~PyTypeObject.tp_new`"
415418

416419
#:../../extending/newtypes_tutorial.rst:320
417420
msgid""
@@ -433,24 +436,37 @@ msgid ""
433436
"often ignore the arguments, leaving the argument handling to initializer (a."
434437
"k.a. ``tp_init`` in C or ``__init__`` in Python) methods."
435438
msgstr""
439+
"O ``tp_new`` recebe o tipo que está sendo instanciado (não necessariamente "
440+
"``CustomType``, caso uma subclasse esteja sendo instanciada) e quaisquer "
441+
"argumentos passados quando o tipo foi chamado, e deve devolver a instância "
442+
"criada. Manipuladores ``tp_new`` sempre aceitam argumentos posicionais e "
443+
"argumentos nomeados, mas frequentemente os ignoram, deixando o tratamento "
444+
"dos argumentos para os métodos inicializadores (ou seja, ``tp_init`` em C ou "
445+
"``__init__`` em Python)."
436446

437447
#:../../extending/newtypes_tutorial.rst:336
438448
msgid""
439449
"``tp_new`` shouldn't call ``tp_init`` explicitly, as the interpreter will do "
440450
"it itself."
441451
msgstr""
452+
"``tp_new`` não deve chamar ``tp_init`` explicitamente, pois o interpretador "
453+
"fará isso por conta própria."
442454

443455
#:../../extending/newtypes_tutorial.rst:339
444456
msgid""
445457
"The ``tp_new`` implementation calls the :c:member:`~PyTypeObject.tp_alloc` "
446458
"slot to allocate memory::"
447459
msgstr""
460+
"A implementação de ``tp_new`` chama o slot :c:member:`~PyTypeObject."
461+
"tp_alloc` para alocar memória::"
448462

449463
#:../../extending/newtypes_tutorial.rst:344
450464
msgid""
451465
"Since memory allocation may fail, we must check the :c:member:`~PyTypeObject."
452466
"tp_alloc` result against ``NULL`` before proceeding."
453467
msgstr""
468+
"Como a alocação de memória pode falhar, precisamos verificar se o resultado "
469+
"de :c:member:`~PyTypeObject.tp_alloc` é ``NULL`` antes de prosseguir."
454470

455471
#:../../extending/newtypes_tutorial.rst:348
456472
msgid""
@@ -459,6 +475,10 @@ msgid ""
459475
"class, which is :class:`object` by default. Most types use the default "
460476
"allocation strategy."
461477
msgstr""
478+
"Nós não preenchemos o campo :c:member:`~PyTypeObject.tp_alloc` por conta "
479+
"própria. Em vez disso, :c:func:`PyType_Ready` o preenche herdando-o da nossa "
480+
"classe base, que por padrão é :class:`object`. A maioria dos tipos usa a "
481+
"estratégia de alocação padrão."
462482

463483
#:../../extending/newtypes_tutorial.rst:354
464484
msgid""
@@ -478,10 +498,12 @@ msgid ""
478498
"We also define an initialization function which accepts arguments to provide "
479499
"initial values for our instance::"
480500
msgstr""
501+
"Também definimos uma função de inicialização que aceita argumentos para "
502+
"fornecer valores iniciais para nosso instância::"
481503

482504
#:../../extending/newtypes_tutorial.rst:393
483505
msgid"by filling the :c:member:`~PyTypeObject.tp_init` slot. ::"
484-
msgstr""
506+
msgstr"preenchendo o campo :c:member:`~PyTypeObject.tp_init`::"
485507

486508
#:../../extending/newtypes_tutorial.rst:397
487509
msgid""
@@ -539,24 +561,33 @@ msgid ""
539561
"tp_dealloc` handler on a type which doesn't support cyclic garbage "
540562
"collection [#]_."
541563
msgstr""
564+
"quando estamos decrementando uma contagem de referências em um manipulador :"
565+
"c:member:`~PyTypeObject.tp_dealloc` de um tipo que não oferece suporte à "
566+
"coleta de lixo cíclica [#]_."
542567

543568
#:../../extending/newtypes_tutorial.rst:435
544569
msgid""
545570
"We want to expose our instance variables as attributes. There are a number "
546571
"of ways to do that. The simplest way is to define member definitions::"
547572
msgstr""
573+
"Queremos expor nossas variáveis de instância como atributos. Há várias "
574+
"maneiras de fazer isso. A forma mais simples é declarar definições de "
575+
"membros::"
548576

549577
#:../../extending/newtypes_tutorial.rst:448
550578
msgid""
551579
"and put the definitions in the :c:member:`~PyTypeObject.tp_members` slot::"
552-
msgstr""
580+
msgstr"e colocar as definições no slot :c:member:`~PyTypeObject.tp_members`::"
553581

554582
#:../../extending/newtypes_tutorial.rst:452
555583
msgid""
556584
"Each member definition has a member name, type, offset, access flags and "
557585
"documentation string. See the :ref:`Generic-Attribute-Management` section "
558586
"below for details."
559587
msgstr""
588+
"Cada definição de membro possui um nome, um tipo, um deslocamento, "
589+
"sinalizadores de acesso e uma string de documentação. Consulte a seção :ref:"
590+
"`Generic-Attribute-Management` abaixo para mais detalhes."
560591

561592
#:../../extending/newtypes_tutorial.rst:456
562593
msgid""
@@ -568,6 +599,14 @@ msgid ""
568599
"``NULL`` values, the members can be set to ``NULL`` if the attributes are "
569600
"deleted."
570601
msgstr""
602+
"Uma desvantagem dessa abordagem é que ela não fornece uma forma de "
603+
"restringir os tipos de objetos que podem ser atribuídos aos atributos em "
604+
"Python. Esperamos que os nomes first e last sejam strings, mas qualquer "
605+
"objeto Python pode ser atribuído. Além disso, os atributos podem ser "
606+
"excluídos, fazendo com que os ponteiros em C sejam definidos como ``NULL``. "
607+
"Mesmo que possamos garantir que os membros sejam inicializados com valores "
608+
"não ``NULL``, eles ainda podem acabar sendo definidos como ``NULL`` caso os "
609+
"atributos sejam apagados."
571610

572611
#:../../extending/newtypes_tutorial.rst:463
573612
msgid""
@@ -610,7 +649,7 @@ msgstr ""
610649

611650
#:../../extending/newtypes_tutorial.rst:511
612651
msgid"and assign it to the :c:member:`~PyTypeObject.tp_methods` slot::"
613-
msgstr""
652+
msgstr"e atribuí-lo para o slot:: :c:member:`~PyTypeObject.tp_methods`"
614653

615654
#:../../extending/newtypes_tutorial.rst:515
616655
msgid""

‎howto/urllib2.po‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8+
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
89
#
910
#,fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version:Python 3.10\n"
1314
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2025-09-22 21:19+0000\n"
15+
"POT-Creation-Date:2025-11-19 18:20+0000\n"
1516
"PO-Revision-Date:2025-09-22 15:57+0000\n"
16-
"Last-Translator:python-doc bot, 2025\n"
17+
"Last-Translator:Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1718
"Language-Team:Portuguese (Brazil) (https://app.transifex.com/python-doc/"
1819
"teams/5390/pt_BR/)\n"
1920
"Language:pt_BR\n"
@@ -398,6 +399,9 @@ msgid ""
398399
"of response codes in that shows all the response codes used by :rfc:`2616`. "
399400
"The dictionary is reproduced here for convenience ::"
400401
msgstr""
402+
":attr:`http.server.BaseHTTPRequestHandler.responses` é um dicionário útil de "
403+
"códigos de resposta que mostra todos os códigos de resposta usados ​​pela :rfc:"
404+
"`2616`. O dicionário é reproduzido aqui para sua conveniência."
401405

402406
#:../../howto/urllib2.rst:326
403407
msgid""

‎library/html.parser.po‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version:Python 3.10\n"
1414
"Report-Msgid-Bugs-To:\n"
15-
"POT-Creation-Date:2025-11-03 17:29+0000\n"
15+
"POT-Creation-Date:2025-11-19 18:20+0000\n"
1616
"PO-Revision-Date:2025-09-22 15:58+0000\n"
1717
"Last-Translator:Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1818
"Language-Team:Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -114,6 +114,9 @@ msgid ""
114114
"`HTMLParser` class to print out start tags, end tags, and data as they are "
115115
"encountered::"
116116
msgstr""
117+
"Como exemplo básico, abaixo está um analisador HTML simples que usa a "
118+
"classe :class:`HTMLParser` para exibir as tags de abertura, tags de "
119+
"fechamento e dados à medida que são encontrados::"
117120

118121
#:../../library/html.parser.rst:71
119122
msgid"The output will then be:"
@@ -377,38 +380,49 @@ msgid ""
377380
"The following class implements a parser that will be used to illustrate more "
378381
"examples::"
379382
msgstr""
383+
"A classe a seguir implementa um analisador sintático que será usado para "
384+
"ilustrar mais exemplos::"
380385

381386
#:../../library/html.parser.rst:276
382387
msgid"Parsing a doctype::"
383-
msgstr""
388+
msgstr"Analisando um doctype::"
384389

385390
#:../../library/html.parser.rst:282
386391
msgid"Parsing an element with a few attributes and a title::"
387-
msgstr""
392+
msgstr"Analisando um elemento com alguns atributos e um título::"
388393

389394
#:../../library/html.parser.rst:294
390395
msgid""
391396
"The content of elements like ``script`` and ``style`` is returned as is, "
392397
"without further parsing::"
393398
msgstr""
399+
"O conteúdo de elementos como ``script`` e ``style`` é retornado como está, "
400+
"sem mais análises::"
394401

395402
#:../../library/html.parser.rst:310
396403
msgid"Parsing comments::"
397-
msgstr""
404+
msgstr"Analisando comentários::"
398405

399406
#:../../library/html.parser.rst:317
400407
msgid""
401408
"Parsing named and numeric character references and converting them to the "
402409
"correct char (note: these 3 references are all equivalent to ``'>'``)::"
403410
msgstr""
411+
"Analisando referências de caracteres nomeadas e numéricas e convertendo-as "
412+
"para o caractere correto (nota: essas 3 referências são todas equivalentes a "
413+
"``'>'``)::"
404414

405415
#:../../library/html.parser.rst:325
406416
msgid""
407417
"Feeding incomplete chunks to :meth:`~HTMLParser.feed` works, but :meth:"
408418
"`~HTMLParser.handle_data` might be called more than once if "
409419
"*convert_charrefs* is false::"
410420
msgstr""
421+
"Alimentar o :meth:`~HTMLParser.feed` com blocos incompletos funciona, mas :"
422+
"meth:`~HTMLParser.handle_data` pode ser chamado mais de uma vez se "
423+
"*convert_charrefs* for falso."
411424

412425
#:../../library/html.parser.rst:338
413426
msgid"Parsing invalid HTML (e.g. unquoted attributes) also works::"
414427
msgstr""
428+
"Analisando HTML inválido (por exemplo, atributos sem aspas) também funciona::"

‎potodo.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
1 directory 59.83% done
2-
└── 3.10/ 59.83% done
1+
1 directory 59.87% done
2+
└── 3.10/ 59.87% done
33
├── distutils/ 25.79% done
44
│ ├── apiref.po 88 / 417 ( 21.0% translated)
55
│ ├── builtdist.po 53 / 131 ( 40.0% translated)
@@ -24,7 +24,7 @@
2424
│ ├── expressions.po 303 / 332 ( 91.0% translated)
2525
│ ├── import.po 165 / 184 ( 89.0% translated)
2626
│ └── lexical_analysis.po 185 / 195 ( 94.0% translated)
27-
├── library/ 54.38% done
27+
├── library/ 54.40% done
2828
│ ├──_thread.po 39 / 41 ( 95.0% translated)
2929
│ ├── argparse.po 256 / 290 ( 88.0% translated)
3030
│ ├── array.po 81 / 82 ( 98.0% translated)
@@ -101,7 +101,7 @@
101101
│ ├── hashlib.po 56 / 141 ( 39.0% translated)
102102
│ ├── heapq.po 49 / 51 ( 96.0% translated)
103103
│ ├── hmac.po 24 / 27 ( 88.0% translated)
104-
│ ├── html.parser.po39 / 50 (78.0% translated)
104+
│ ├── html.parser.po48 / 50 (96.0% translated)
105105
│ ├── http.client.po 49 / 99 ( 49.0% translated)
106106
│ ├── http.cookiejar.po 9 / 154 ( 5.0% translated)
107107
│ ├── http.cookies.po 17 / 56 ( 30.0% translated)
@@ -214,7 +214,7 @@
214214
│ ├── zipimport.po 34 / 38 ( 89.0% translated)
215215
│ ├── zlib.po 62 / 64 ( 96.0% translated)
216216
│ └── zoneinfo.po 32 / 73 ( 43.0% translated)
217-
├── howto/ 52.37% done
217+
├── howto/ 52.41% done
218218
│ ├── annotations.po 44 / 45 ( 97.0% translated)
219219
│ ├── clinic.po 101 / 424 ( 23.0% translated)
220220
│ ├── curses.po 100 / 105 ( 95.0% translated)
@@ -227,16 +227,16 @@
227227
│ ├── regex.po 283 / 286 ( 98.0% translated)
228228
│ ├── sockets.po 35 / 58 ( 60.0% translated)
229229
│ ├── unicode.po 30 / 121 ( 24.0% translated)
230-
│ └── urllib2.po72 / 85 (84.0% translated)
230+
│ └── urllib2.po73 / 85 (85.0% translated)
231231
├── install/ 72.62% done
232232
│ └── index.po 168 / 226 ( 74.0% translated)
233233
├── tutorial/ 99.78% done
234234
│ └── classes.po 114 / 115 ( 99.0% translated)
235-
├── extending/29.07% done
235+
├── extending/31.15% done
236236
│ ├── embedding.po 5 / 45 ( 11.0% translated)
237237
│ ├── extending.po 58 / 158 ( 36.0% translated)
238238
│ ├── newtypes.po 7 / 89 ( 7.0% translated)
239-
│ └── newtypes_tutorial.po42 / 123 (34.0% translated)
239+
│ └── newtypes_tutorial.po57 / 123 (46.0% translated)
240240
├── whatsnew/ 67.49% done
241241
│ ├── 2.0.po 137 / 182 ( 75.0% translated)
242242
│ ├── 2.2.po 139 / 192 ( 72.0% translated)

‎stats.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion":"59.83%","translated":34428,"entries":51677,"updated_at":"2025-11-19T00:29:33+00:00Z"}
1+
{"completion":"59.87%","translated":34453,"entries":51677,"updated_at":"2025-11-20T00:28:45+00:00Z"}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp