Skip to content

Commit 62c4a7b

Browse files
Update translation
Co-Authored-By: Rafael Fontenelle <rffontenelle@gmail.com>
1 parent f70f0b7 commit 62c4a7b

7 files changed

Lines changed: 236 additions & 159 deletions

File tree

extending/newtypes_tutorial.po

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.14\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2025-11-21 14:14+0000\n"
16+
"POT-Creation-Date: 2025-11-23 14:12+0000\n"
1717
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1818
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1919
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -1231,6 +1231,16 @@ msgid ""
12311231
"correctly. (Specifically, you may not be able to create instances of such "
12321232
"subclasses without getting a :exc:`TypeError`.)"
12331233
msgstr ""
1234+
"Se você estiver criando um :c:member:`~PyTypeObject.tp_new` cooperativo (um "
1235+
"que chama o :c:member:`~PyTypeObject.tp_new` ou :meth:`~object.__new__` de "
1236+
"um tipo base), você *não* deve tentar determinar qual método chamar usando a "
1237+
"ordem de resolução de métodos em tempo de execução. Sempre determine "
1238+
"estaticamente qual tipo você vai chamar e chame seu :c:member:`~PyTypeObject."
1239+
"tp_new` diretamente ou via ``type->tp_base->tp_new``. Se você não fizer "
1240+
"isso, as subclasses Python do seu tipo que também herdam de outras classes "
1241+
"definidas em Python podem não funcionar corretamente. (Especificamente, você "
1242+
"pode não conseguir criar instâncias dessas subclasses sem receber um :exc:"
1243+
"`TypeError`.)"
12341244

12351245
#: ../../extending/newtypes_tutorial.rst:374
12361246
msgid ""
@@ -1335,6 +1345,12 @@ msgid ""
13351345
"<attached thread state>` and let arbitrary code run in other threads that "
13361346
"accesses and modifies our object."
13371347
msgstr ""
1348+
"Mas isso seria arriscado. Nosso tipo não restringe o tipo do membro "
1349+
"``first``, então ele poderia ser qualquer tipo de objeto. Ele poderia ter um "
1350+
"destrutor que executasse código que tentasse acessar o membro ``first``; ou "
1351+
"esse destrutor poderia desanexar o :term:`estado de thread <attached thread "
1352+
"state>` e permitir que código arbitrário fosse executado em outras threads, "
1353+
"acessando e modificando nosso objeto."
13381354

13391355
#: ../../extending/newtypes_tutorial.rst:434
13401356
msgid ""
@@ -1357,6 +1373,9 @@ msgid ""
13571373
"term:`thread state <attached thread state>` nor cause any calls back into "
13581374
"our type's code;"
13591375
msgstr ""
1376+
"quando sabemos que a desalocação do objeto [#]_ não desvinculará o :term:"
1377+
"`estado de thread <attached thread state>` nem causará quaisquer chamadas de "
1378+
"volta no código do nosso tipo;"
13601379

13611380
#: ../../extending/newtypes_tutorial.rst:443
13621381
msgid ""
@@ -2252,6 +2271,10 @@ msgid ""
22522271
"can identify unneeded objects even when their reference counts are not zero. "
22532272
"This can happen when objects are involved in cycles. For example, consider:"
22542273
msgstr ""
2274+
"O Python possui um :term:`coletor de lixo (GC) cíclico <garbage collection>` "
2275+
"que pode identificar objetos que não são mais necessários mesmo quando suas "
2276+
"contagens de referências não são zero. Isso pode acontecer quando os objetos "
2277+
"participam de ciclos. Por exemplo, considere:"
22552278

22562279
#: ../../extending/newtypes_tutorial.rst:684
22572280
msgid ""

library/html.parser.po

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.14\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2025-11-19 14:14+0000\n"
15+
"POT-Creation-Date: 2025-11-23 14:12+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1717
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1818
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -522,7 +522,7 @@ msgstr ""
522522

523523
#: ../../library/html.parser.rst:280
524524
msgid "Parsing a doctype:"
525-
msgstr ""
525+
msgstr "Analisando um doctype:"
526526

527527
#: ../../library/html.parser.rst:282
528528
msgid ""
@@ -538,7 +538,7 @@ msgstr ""
538538

539539
#: ../../library/html.parser.rst:288
540540
msgid "Parsing an element with a few attributes and a title:"
541-
msgstr ""
541+
msgstr "Analisando um elemento com alguns atributos e um título:"
542542

543543
#: ../../library/html.parser.rst:290
544544
msgid ""
@@ -567,6 +567,8 @@ msgid ""
567567
"The content of elements like ``script`` and ``style`` is returned as is, "
568568
"without further parsing:"
569569
msgstr ""
570+
"O conteúdo de elementos como ``script`` e ``style`` é retornado como está, "
571+
"sem mais análises:"
570572

571573
#: ../../library/html.parser.rst:305
572574
msgid ""
@@ -600,7 +602,7 @@ msgstr ""
600602

601603
#: ../../library/html.parser.rst:320
602604
msgid "Parsing comments:"
603-
msgstr ""
605+
msgstr "Analisando comentários:"
604606

605607
#: ../../library/html.parser.rst:322
606608
msgid ""
@@ -609,12 +611,19 @@ msgid ""
609611
"Comment : a comment\n"
610612
"Comment : [if IE 9]>IE-specific content<![endif]"
611613
msgstr ""
614+
">>> parser.feed('<!-- a comment -->'\n"
615+
"... '<!--[if IE 9]>IE-specific content<![endif]-->')\n"
616+
"Comentário : a comment\n"
617+
"Comentário : [if IE 9]>IE-specific content<![endif]"
612618

613619
#: ../../library/html.parser.rst:329
614620
msgid ""
615621
"Parsing named and numeric character references and converting them to the "
616622
"correct char (note: these 3 references are all equivalent to ``'>'``):"
617623
msgstr ""
624+
"Analisando referências de caracteres nomeadas e numéricas e convertendo-as "
625+
"para o caractere correto (nota: essas 3 referências são todas equivalentes a "
626+
"``'>'``):"
618627

619628
#: ../../library/html.parser.rst:332
620629
msgid ""
@@ -635,6 +644,9 @@ msgid ""
635644
"`~HTMLParser.handle_data` might be called more than once if "
636645
"*convert_charrefs* is false:"
637646
msgstr ""
647+
"Alimentar o :meth:`~HTMLParser.feed` com blocos incompletos funciona, mas :"
648+
"meth:`~HTMLParser.handle_data` pode ser chamado mais de uma vez se "
649+
"*convert_charrefs* for falso:"
638650

639651
#: ../../library/html.parser.rst:348
640652
msgid ""
@@ -651,6 +663,7 @@ msgstr ""
651663
#: ../../library/html.parser.rst:359
652664
msgid "Parsing invalid HTML (e.g. unquoted attributes) also works:"
653665
msgstr ""
666+
"Analisando HTML inválido (por exemplo, atributos sem aspas) também funciona:"
654667

655668
#: ../../library/html.parser.rst:361
656669
msgid ""

library/stdtypes.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8295,6 +8295,14 @@ msgid ""
82958295
"be altered after it is created; it can therefore be used as a dictionary key "
82968296
"or as an element of another set."
82978297
msgstr ""
8298+
"Existem atualmente dois tipos de conjuntos embutidos, :class:`set` e :class:"
8299+
"`frozenset`. O tipo :class:`set` é mutável -- o conteúdo pode ser alterado "
8300+
"usando métodos como :meth:`add <frozenset.add>` e :meth:`remove <frozenset."
8301+
"add>`. Como ele é mutável, ele não tem valor hash e não pode ser usado como "
8302+
"chave de dicionário ou um elemento de um outro conjunto. O tipo :class:"
8303+
"`frozenset` é imutável e :term:`hasheável` --- seu conteúdo não pode ser "
8304+
"alterado depois de ter sido criado; ele pode então ser usado como chave de "
8305+
"dicionário ou como um elemento de outro conjunto."
82988306

82998307
#: ../../library/stdtypes.rst:4741
83008308
msgid ""

library/tarfile.po

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.14\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2025-11-17 14:14+0000\n"
15+
"POT-Creation-Date: 2025-11-23 14:12+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1717
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1818
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -885,18 +885,27 @@ msgid ""
885885
"get as many members as possible. This is only useful for reading "
886886
"concatenated or damaged archives."
887887
msgstr ""
888+
"Se *ignore_zeros* for :const:`False`, trata um bloco vazio como o fim do "
889+
"arquivo. Se for :const:`True`, ignora blocos vazios (e inválidos) e tenta "
890+
"obter o máximo de membros possível. Isso só é útil para ler arquivos "
891+
"concatenados ou corrompidos."
888892

889893
#: ../../library/tarfile.rst:456
890894
msgid ""
891895
"*debug* can be set from ``0`` (no debug messages) up to ``3`` (all debug "
892896
"messages). The messages are written to ``sys.stderr``."
893897
msgstr ""
898+
"O parâmetro *debug* pode ser configurado de ``0`` (nenhuma mensagem de "
899+
"depuração) até ``3`` (todas as mensagens de depuração). As mensagens são "
900+
"gravadas em ``sys.stderr``."
894901

895902
#: ../../library/tarfile.rst:459
896903
msgid ""
897904
"*errorlevel* controls how extraction errors are handled, see :attr:`the "
898905
"corresponding attribute <TarFile.errorlevel>`."
899906
msgstr ""
907+
"*errorlevel* controla como os erros de extração são tratados, veja :attr:`o "
908+
"atributo correspondente <TarFile.errorlevel>`."
900909

901910
#: ../../library/tarfile.rst:462
902911
msgid ""
@@ -905,44 +914,60 @@ msgid ""
905914
"to be handled. The default settings will work for most users. See section :"
906915
"ref:`tar-unicode` for in-depth information."
907916
msgstr ""
917+
"Os argumentos *encoding* e *errors* definem a codificação de caracteres a "
918+
"ser usada para leitura ou gravação do arquivo e como os erros de conversão "
919+
"serão tratados. As configurações padrão funcionarão para a maioria dos "
920+
"usuários. Consulta a seção :ref:`tar-unicode` para obter informações "
921+
"detalhadas."
908922

909923
#: ../../library/tarfile.rst:467
910924
msgid ""
911925
"The *pax_headers* argument is an optional dictionary of strings which will "
912926
"be added as a pax global header if *format* is :const:`PAX_FORMAT`."
913927
msgstr ""
928+
"O argumento *pax_headers* é um dicionário opcional de strings que será "
929+
"adicionado como um cabeçalho global pax se *format* for :const:`PAX_FORMAT`."
914930

915931
#: ../../library/tarfile.rst:470
916932
msgid ""
917933
"If *stream* is set to :const:`True` then while reading the archive info "
918934
"about files in the archive are not cached, saving memory."
919935
msgstr ""
936+
"Se *stream* estiver definido como :const:`True`, então, durante a leitura do "
937+
"arquivo, as informações sobre os arquivos no arquivo não serão armazenadas "
938+
"em cache, economizando memória."
920939

921940
#: ../../library/tarfile.rst:473 ../../library/tarfile.rst:796
922941
msgid "Use ``'surrogateescape'`` as the default for the *errors* argument."
923-
msgstr ""
942+
msgstr "Usa ``'surrogateescape'`` como padrão para o argumento *errors*."
924943

925944
#: ../../library/tarfile.rst:482
926945
msgid "Add the *stream* parameter."
927-
msgstr ""
946+
msgstr "Adiciona o parâmetro *stream*."
928947

929948
#: ../../library/tarfile.rst:487
930949
msgid ""
931950
"Alternative constructor. The :func:`tarfile.open` function is actually a "
932951
"shortcut to this classmethod."
933952
msgstr ""
953+
"Construtor alternativo. A função :func:`tarfile.open` é, na verdade, um "
954+
"atalho para este método de classe."
934955

935956
#: ../../library/tarfile.rst:493
936957
msgid ""
937958
"Return a :class:`TarInfo` object for member *name*. If *name* can not be "
938959
"found in the archive, :exc:`KeyError` is raised."
939960
msgstr ""
961+
"Retorna um objeto :class:`TarInfo` para o membro *name*. Se *name* não for "
962+
"encontrado no arquivo, uma exceção :exc:`KeyError` será levantada."
940963

941964
#: ../../library/tarfile.rst:498
942965
msgid ""
943966
"If a member occurs more than once in the archive, its last occurrence is "
944967
"assumed to be the most up-to-date version."
945968
msgstr ""
969+
"Se um membro aparecer mais de uma vez no arquivo, presume-se que sua última "
970+
"ocorrência seja a versão mais atualizada."
946971

947972
#: ../../library/tarfile.rst:504
948973
msgid ""
@@ -957,6 +982,8 @@ msgid ""
957982
"Return the members as a list of their names. It has the same order as the "
958983
"list returned by :meth:`getmembers`."
959984
msgstr ""
985+
"Retorna os membros como uma lista com seus nomes. A lista está na mesma "
986+
"ordem que a lista retornada por :meth:`getmembers`."
960987

961988
#: ../../library/tarfile.rst:516
962989
msgid ""
@@ -965,17 +992,25 @@ msgid ""
965992
"similar to that of :program:`ls -l` is produced. If optional *members* is "
966993
"given, it must be a subset of the list returned by :meth:`getmembers`."
967994
msgstr ""
995+
"Envia um índice para ``sys.stdout``. Se *verbose* for :const:`False`, apenas "
996+
"os nomes dos membros serão exibidos. Se for :const:`True`, a saída será "
997+
"semelhante à do comando :program:`ls -l`. Se o parâmetro opcional *members* "
998+
"for fornecido, ele deverá ser um subconjunto da lista retornada pelo método :"
999+
"meth:`getmembers`."
9681000

9691001
#: ../../library/tarfile.rst:521
9701002
msgid "Added the *members* parameter."
971-
msgstr ""
1003+
msgstr "Adicionado o parâmetro *members*."
9721004

9731005
#: ../../library/tarfile.rst:527
9741006
msgid ""
9751007
"Return the next member of the archive as a :class:`TarInfo` object, when :"
9761008
"class:`TarFile` is opened for reading. Return :const:`None` if there is no "
9771009
"more available."
9781010
msgstr ""
1011+
"Retorna o próximo membro do arquivo como um objeto :class:`TarInfo`, quando :"
1012+
"class:`TarFile` é aberto para leitura. Retorna :const:`None` se não houver "
1013+
"mais nenhum disponível."
9791014

9801015
#: ../../library/tarfile.rst:534
9811016
msgid ""

0 commit comments

Comments
 (0)