Update translation · python/python-docs-pt-br@bac8592 · GitHub
Skip to content

Commit bac8592

Browse files
Update translation
Co-Authored-By: Rafael Fontenelle <rffontenelle@gmail.com>
1 parent 9a240bf commit bac8592

6 files changed

Lines changed: 91 additions & 23 deletions

File tree

c-api/init.po

Lines changed: 1 addition & 1 deletion

c-api/sys.po

Lines changed: 82 additions & 13 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-21 14:14+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1717
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1818
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -558,16 +558,22 @@ msgid ""
558558
"Return the current dictionary of :option:`-X` options, similarly to :data:"
559559
"`sys._xoptions`. On error, ``NULL`` is returned and an exception is set."
560560
msgstr ""
561+
"Retorna o dicionário atual de opções :option:`-X`, de forma semelhante a :"
562+
"data:`sys._xoptions`. Em caso de erro, retorna ``NULL`` e uma exceção é "
563+
"definida."
561564

562565
#: ../../c-api/sys.rst:345
563566
msgid ""
564567
"Raise an auditing event with any active hooks. Return zero for success and "
565568
"non-zero with an exception set on failure."
566569
msgstr ""
570+
"Levanta um evento de auditoria com todos os ganchos ativos. Retorna zero em "
571+
"caso de sucesso e um valor diferente de zero com uma exceção definida em "
572+
"caso de falha."
567573

568574
#: ../../c-api/sys.rst:348
569575
msgid "The *event* string argument must not be *NULL*."
570-
msgstr ""
576+
msgstr "O argumento de string *event* não pode ser *NULL*."
571577

572578
#: ../../c-api/sys.rst:350
573579
msgid ""
@@ -576,39 +582,55 @@ msgid ""
576582
"used in :c:func:`Py_BuildValue` are available. If the built value is not a "
577583
"tuple, it will be added into a single-element tuple."
578584
msgstr ""
585+
"Se algum gancho tiver sido adicionado, o argumento *format* e outros serão "
586+
"usados ​​para construir uma tupla a ser passada. Além de ``N``, os mesmos "
587+
"caracteres de formatação usados ​​em :c:func:`Py_BuildValue` estão "
588+
"disponíveis. Se o valor construído não for uma tupla, ele será adicionado a "
589+
"uma tupla de um único elemento."
579590

580591
#: ../../c-api/sys.rst:355
581592
msgid ""
582593
"The ``N`` format option must not be used. It consumes a reference, but since "
583594
"there is no way to know whether arguments to this function will be consumed, "
584595
"using it may cause reference leaks."
585596
msgstr ""
597+
"A opção de formato ``N`` não deve ser usada. Ela consome uma referência, mas "
598+
"como não há como saber se os argumentos dessa função serão consumidos, usá-"
599+
"la pode causar vazamentos de referência."
586600

587601
#: ../../c-api/sys.rst:359
588602
msgid ""
589603
"Note that ``#`` format characters should always be treated as :c:type:"
590604
"`Py_ssize_t`, regardless of whether ``PY_SSIZE_T_CLEAN`` was defined."
591605
msgstr ""
606+
"Observe que os caracteres de formato ``#`` devem sempre ser tratados como :c:"
607+
"type:`Py_ssize_t`, independentemente de ``PY_SSIZE_T_CLEAN`` ter sido "
608+
"definido."
592609

593610
#: ../../c-api/sys.rst:362
594611
msgid ":func:`sys.audit` performs the same function from Python code."
595-
msgstr ""
612+
msgstr ":func:`sys.audit` executa a mesma função a partir do código Python."
596613

597614
#: ../../c-api/sys.rst:364
598615
msgid "See also :c:func:`PySys_AuditTuple`."
599-
msgstr ""
616+
msgstr "Veja também :c:func:`PySys_AuditTuple`."
600617

601618
#: ../../c-api/sys.rst:370
602619
msgid ""
603620
"Require :c:type:`Py_ssize_t` for ``#`` format characters. Previously, an "
604621
"unavoidable deprecation warning was raised."
605622
msgstr ""
623+
"É necessário o tipo :c:type:`Py_ssize_t` para caracteres de formato ``#``. "
624+
"Anteriormente, um aviso de descontinuação era levantado."
606625

607626
#: ../../c-api/sys.rst:376
608627
msgid ""
609628
"Similar to :c:func:`PySys_Audit`, but pass arguments as a Python object. "
610629
"*args* must be a :class:`tuple`. To pass no arguments, *args* can be *NULL*."
611630
msgstr ""
631+
"Semelhante a :c:func:`PySys_Audit`, mas passa argumentos como um objeto "
632+
"Python. *args* deve ser uma :class:`tuple`. Para não passar argumentos, "
633+
"*args* pode ser *NULL*."
612634

613635
#: ../../c-api/sys.rst:384
614636
msgid ""
@@ -617,6 +639,11 @@ msgid ""
617639
"also set an error on failure. Hooks added through this API are called for "
618640
"all interpreters created by the runtime."
619641
msgstr ""
642+
"Adiciona o *gancho* chamável à lista de ganchos de auditoria ativos. Retorna "
643+
"zero em caso de sucesso e um valor diferente de zero em caso de falha. Se o "
644+
"ambiente de execução já tiver sido inicializado, também define um erro em "
645+
"caso de falha. Os ganchos adicionados por meio desta API são chamados para "
646+
"todos os interpretadores criados pelo ambiente de execução."
620647

621648
#: ../../c-api/sys.rst:390
622649
msgid ""
@@ -635,19 +662,30 @@ msgid ""
635662
"silently abort the operation by raising an error subclassed from :class:"
636663
"`Exception` (other errors will not be silenced)."
637664
msgstr ""
665+
"Esta função pode ser chamada com segurança antes de :c:func:`Py_Initialize`. "
666+
"Quando chamada após a inicialização em tempo de execução, os ganchos de "
667+
"auditoria existentes são notificados e podem abortar silenciosamente a "
668+
"operação, levantando um erro da classe :class:`Exception` (outros erros não "
669+
"serão silenciados)."
638670

639671
#: ../../c-api/sys.rst:399
640672
msgid ""
641673
"The hook function is always called with an :term:`attached thread state` by "
642674
"the Python interpreter that raised the event."
643675
msgstr ""
676+
"A função de gancho é sempre chamada com um :term:`estado de thread anexado` "
677+
"pelo interpretador Python que levantou o evento."
644678

645679
#: ../../c-api/sys.rst:402
646680
msgid ""
647681
"See :pep:`578` for a detailed description of auditing. Functions in the "
648682
"runtime and standard library that raise events are listed in the :ref:`audit "
649683
"events table <audit-events>`. Details are in each function's documentation."
650684
msgstr ""
685+
"Consulte a :pep:`578` para uma descrição detalhada da auditoria. As funções "
686+
"no ambiente de execução e na biblioteca padrão que levantam eventos estão "
687+
"listadas na :ref:`tabela de eventos de auditoria <audit-events>`. Os "
688+
"detalhes estão na documentação de cada função."
651689

652690
#: ../../c-api/sys.rst:407 ../../c-api/sys.rst:409
653691
msgid ""
@@ -657,6 +695,12 @@ msgid ""
657695
"and the exception is cleared. As a result, callers cannot assume that their "
658696
"hook has been added unless they control all existing hooks."
659697
msgstr ""
698+
"Se o interpretador estiver inicializado, esta função levanta um evento de "
699+
"auditoria ``sys.addaudithook`` sem argumentos. Se algum gancho existente "
700+
"levantar uma exceção derivada de :class:`Exception`, o novo gancho não será "
701+
"adicionado e a exceção será tratada. Consequentemente, os chamadores não "
702+
"podem presumir que seu gancho foi adicionado, a menos que controlem todos os "
703+
"ganchos existentes."
660704

661705
#: ../../c-api/sys.rst:418
662706
msgid ""
@@ -665,10 +709,14 @@ msgid ""
665709
"to be a :c:type:`PyTupleObject`. *userData* is the argument passed to "
666710
"PySys_AddAuditHook()."
667711
msgstr ""
712+
"O tipo da função de gancho. *event* é o argumento de evento em string C "
713+
"passado para :c:func:`PySys_Audit` ou :c:func:`PySys_AuditTuple`. *args* tem "
714+
"a garantia de ser um :c:type:`PyTupleObject`. *userData* é o argumento "
715+
"passado para PySys_AddAuditHook()."
668716

669717
#: ../../c-api/sys.rst:430
670718
msgid "Process Control"
671-
msgstr ""
719+
msgstr "Controle de processos"
672720

673721
#: ../../c-api/sys.rst:437
674722
msgid ""
@@ -679,28 +727,41 @@ msgid ""
679727
"library function :c:func:`!abort` is called which will attempt to produce a :"
680728
"file:`core` file."
681729
msgstr ""
730+
"Exibe uma mensagem de erro fatal e encerra forçadamente o processo. Nenhuma "
731+
"limpeza é realizada. Esta função só deve ser invocada quando uma condição "
732+
"for detectada que torne perigoso continuar usando o interpretador Python; "
733+
"por exemplo, quando a administração de objetos parecer estar corrompida. No "
734+
"Unix, a função da biblioteca padrão C :c:func:`!abort` é chamada, que "
735+
"tentará produzir um arquivo :file:`core`."
682736

683737
#: ../../c-api/sys.rst:444
684738
msgid ""
685739
"The ``Py_FatalError()`` function is replaced with a macro which logs "
686740
"automatically the name of the current function, unless the "
687741
"``Py_LIMITED_API`` macro is defined."
688742
msgstr ""
743+
"A função ``Py_FatalError()`` é substituída por uma macro que registra "
744+
"automaticamente o nome da função atual, a menos que a macro "
745+
"``Py_LIMITED_API`` esteja definida."
689746

690747
#: ../../c-api/sys.rst:448
691748
msgid "Log the function name automatically."
692-
msgstr ""
749+
msgstr "Registra o nome da função automaticamente."
693750

694751
#: ../../c-api/sys.rst:458
695752
msgid ""
696753
"Exit the current process. This calls :c:func:`Py_FinalizeEx` and then calls "
697754
"the standard C library function ``exit(status)``. If :c:func:"
698755
"`Py_FinalizeEx` indicates an error, the exit status is set to 120."
699756
msgstr ""
757+
"Encerra o processo atual. Isso chama :c:func:`Py_FinalizeEx` e, em seguida, "
758+
"chama a função da biblioteca padrão C ``exit(status)``. Se :c:func:"
759+
"`Py_FinalizeEx` indicar um erro, o código de status de saída será definido "
760+
"como 120."
700761

701762
#: ../../c-api/sys.rst:462
702763
msgid "Errors from finalization no longer ignored."
703-
msgstr ""
764+
msgstr "Erros da finalização não são mais ignorados."
704765

705766
#: ../../c-api/sys.rst:472
706767
msgid ""
@@ -713,27 +774,35 @@ msgid ""
713774
"finalization will have completed before the cleanup function, no Python APIs "
714775
"should be called by *func*."
715776
msgstr ""
777+
"Registra uma função de limpeza para ser chamada por :c:func:`Py_FinalizeEx`. "
778+
"A função de limpeza será chamada sem argumentos e não deve retornar nenhum "
779+
"valor. No máximo 32 funções de limpeza podem ser registradas. Quando o "
780+
"registro for bem-sucedido, :c:func:`Py_AtExit` retorna ``0``; em caso de "
781+
"falha, retorna ``-1``. A última função de limpeza registrada é chamada "
782+
"primeiro. Cada função de limpeza será chamada no máximo uma vez. Como a "
783+
"finalização interna do Python terá sido concluída antes da função de "
784+
"limpeza, nenhuma API do Python deve ser chamada por *func*."
716785

717786
#: ../../c-api/sys.rst:482
718787
msgid ":c:func:`PyUnstable_AtExit` for passing a ``void *data`` argument."
719-
msgstr ""
788+
msgstr ":c:func:`PyUnstable_AtExit` para passar um argumento ``void *data``."
720789

721790
#: ../../c-api/sys.rst:101
722791
msgid "USE_STACKCHECK (C macro)"
723-
msgstr ""
792+
msgstr "USE_STACKCHECK (macro C)"
724793

725794
#: ../../c-api/sys.rst:435
726795
msgid "abort (C function)"
727-
msgstr ""
796+
msgstr "abort (função C)"
728797

729798
#: ../../c-api/sys.rst:454 ../../c-api/sys.rst:468
730799
msgid "Py_FinalizeEx (C function)"
731-
msgstr ""
800+
msgstr "Py_FinalizeEx (função C)"
732801

733802
#: ../../c-api/sys.rst:454
734803
msgid "exit (C function)"
735-
msgstr ""
804+
msgstr "exit (função C)"
736805

737806
#: ../../c-api/sys.rst:468
738807
msgid "cleanup functions"
739-
msgstr ""
808+
msgstr "funções de limpeza"

extending/newtypes_tutorial.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ msgstr ""
20952095

20962096
#: ../../extending/newtypes_tutorial.rst:610
20972097
msgid "We create an array of :c:type:`PyGetSetDef` structures::"
2098-
msgstr "Nós criar um vetor de estruturas:: :c:type:`PyGetSetDef` "
2098+
msgstr "Nós criamos um vetor de estruturas :c:type:`PyGetSetDef`::"
20992099

21002100
#: ../../extending/newtypes_tutorial.rst:612
21012101
msgid ""

howto/isolating-extensions.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,8 @@ msgid ""
752752
"Define a traverse function using :c:data:`Py_tp_traverse`, which visits the "
753753
"type (e.g. using ``Py_VISIT(Py_TYPE(self))``)."
754754
msgstr ""
755-
"Definir uma função de travessia usando :c:data:`Py_tp_traverse`, que visita "
756-
"o tipo (por exemplo, usando ``Py_VISIT(Py_TYPE(self))``)."
755+
"Define uma função de travessia usando :c:data:`Py_tp_traverse`, que visita o "
756+
"tipo (por exemplo, usando ``Py_VISIT(Py_TYPE(self))``)."
757757

758758
#: ../../howto/isolating-extensions.rst:359
759759
msgid ""

potodo.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
1 directory 61.80% done
2-
└── 3.14/ 61.80% done
1+
1 directory 61.84% done
2+
└── 3.14/ 61.84% done
33
├── installing/ 100.00% done
44
├── distributing/ 100.00% done
55
├── faq/ 100.00% done
@@ -132,12 +132,12 @@
132132
│ ├── 3.7.po 249 / 568 ( 43.0% translated)
133133
│ └── changelog.po 3462 / 13682 ( 25.0% translated)
134134
├── deprecations/ 100.00% done
135-
└── c-api/ 52.71% done
135+
└── c-api/ 53.32% done
136136
├── exceptions.po 175 / 261 ( 67.0% translated)
137137
├── frame.po 34 / 51 ( 66.0% translated)
138138
├── gcsupport.po 18 / 67 ( 26.0% translated)
139139
├── import.po 33 / 66 ( 50.0% translated)
140-
├── init.po 184 / 520 ( 35.0% translated)
140+
├── init.po 185 / 520 ( 35.0% translated)
141141
├── init_config.po 362 / 638 ( 56.0% translated)
142142
├── long.po 46 / 174 ( 26.0% translated)
143143
├── memory.po 63 / 208 ( 30.0% translated)
@@ -146,7 +146,6 @@
146146
├── object.po 44 / 145 ( 30.0% translated)
147147
├── refcounting.po 15 / 50 ( 30.0% translated)
148148
├── structures.po 86 / 206 ( 41.0% translated)
149-
├── sys.po 58 / 87 ( 66.0% translated)
150149
├── type.po 25 / 137 ( 18.0% translated)
151150
├── typeobj.po 248 / 744 ( 33.0% translated)
152151
└── unicode.po 81 / 408 ( 19.0% translated)

stats.json

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)