Skip to content

Commit 87cbb53

Browse files
github-actions[bot]adorilsonrffontenelle
committed
Update translation
Co-Authored-By: Gustavo Reis Co-Authored-By: Marcos Moraes Co-Authored-By: Adorilson Bezerra <adorilson@gmail.com> Co-Authored-By: python-doc bot Co-Authored-By: Rafael Fontenelle <rffontenelle@gmail.com>
1 parent 3cc4bb8 commit 87cbb53

7 files changed

Lines changed: 104 additions & 24 deletions

File tree

c-api/init_config.po

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# Gustavo Reis, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.12\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-01-03 14:53+0000\n"
15+
"POT-Creation-Date: 2025-11-03 15:54+0000\n"
1516
"PO-Revision-Date: 2025-07-18 19:57+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: Gustavo Reis, 2025\n"
1718
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
1819
"teams/5390/pt_BR/)\n"
1920
"Language: pt_BR\n"
@@ -763,11 +764,11 @@ msgstr ""
763764

764765
#: ../../c-api/init_config.rst:492
765766
msgid "Read all Python configuration."
766-
msgstr ""
767+
msgstr "Leia toda a configuração do Python."
767768

768769
#: ../../c-api/init_config.rst:494
769770
msgid "Fields which are already initialized are left unchanged."
770-
msgstr ""
771+
msgstr "Campos que já estão inicializados permanecem inalterados."
771772

772773
#: ../../c-api/init_config.rst:496
773774
msgid ""
@@ -800,7 +801,7 @@ msgstr ""
800801

801802
#: ../../c-api/init_config.rst:521
802803
msgid "Release configuration memory."
803-
msgstr ""
804+
msgstr "Liberar memória de configuração."
804805

805806
#: ../../c-api/init_config.rst:523
806807
msgid ""

library/ctypes.po

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# Marcos Moraes, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.12\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-02-21 14:51+0000\n"
15+
"POT-Creation-Date: 2025-11-03 15:54+0000\n"
1516
"PO-Revision-Date: 2025-07-18 19:57+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: Marcos Moraes, 2025\n"
1718
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
1819
"teams/5390/pt_BR/)\n"
1920
"Language: pt_BR\n"
@@ -891,6 +892,10 @@ msgid ""
891892
"bytes objects have to be wrapped in their corresponding :mod:`ctypes` type, "
892893
"so that they can be converted to the required C data type::"
893894
msgstr ""
895+
"Como mencionado anteriormente, todos os tipos do Python, exceto inteiros, "
896+
"strings e objetos bytes, precisam ser encapsulados em seu tipo "
897+
"correspondente de :mod:`ctypes`, para que possam ser convertidos para o tipo "
898+
"de dado C necessário."
894899

895900
#: ../../library/ctypes.rst:371
896901
msgid ""
@@ -912,12 +917,19 @@ msgid ""
912917
"convention for variadic functions is different than that for regular "
913918
"functions."
914919
msgstr ""
920+
"Em muitas plataformas chamar funções variádicas por meio do ctypes é "
921+
"exatamente o mesmo que chamar funções com um número fixo de parâmetros. Em "
922+
"algumas plataformas, em particular no ARM64 para plataformas Apple, a "
923+
"convenção chamada para funções variádicas é diferente daquela usada para "
924+
"funções regulares."
915925

916926
#: ../../library/ctypes.rst:386
917927
msgid ""
918928
"On those platforms it is required to specify the :attr:`~_CFuncPtr.argtypes` "
919929
"attribute for the regular, non-variadic, function arguments:"
920930
msgstr ""
931+
"Nessas plataformas é necessário especificar o atributo :attr:`~_CFuncPtr."
932+
"argtypes` para os argumentos de função regulares (não variádicos):"
921933

922934
#: ../../library/ctypes.rst:389
923935
msgid "libc.printf.argtypes = [ctypes.c_char_p]"
@@ -928,10 +940,13 @@ msgid ""
928940
"Because specifying the attribute does not inhibit portability it is advised "
929941
"to always specify :attr:`~_CFuncPtr.argtypes` for all variadic functions."
930942
msgstr ""
943+
"Já que especificar o atributo não impede a portabilidade, recomenda-se "
944+
"sempre especificar o :attr:`~_CFuncPtr.argtypes` para todas as funções "
945+
"variádicas."
931946

932947
#: ../../library/ctypes.rst:400
933948
msgid "Calling functions with your own custom data types"
934-
msgstr ""
949+
msgstr "Chamando funções com seus próprios tipos de dados personalizados"
935950

936951
#: ../../library/ctypes.rst:402
937952
msgid ""
@@ -941,6 +956,12 @@ msgid ""
941956
"The attribute must be an integer, string, bytes, a :mod:`ctypes` instance, "
942957
"or an object with an :attr:`!_as_parameter_` attribute::"
943958
msgstr ""
959+
"Você também pode personalizar a conversão de argumentos do :mod:`ctypes` "
960+
"para permitir que instâncias das suas próprias classes sejam usadas como "
961+
"argumento de função. O :mod:`ctypes` procura um atributo :attr:`!"
962+
"_as_parameter_` e o utiliza como o argumento da função. O atributo deve ser "
963+
"um inteiro, string, bytes, uma instância de :mod:`ctypes`, ou um objeto com "
964+
"um atributo :attr:`!_as_parameter_`:: "
944965

945966
#: ../../library/ctypes.rst:408
946967
msgid ""
@@ -961,16 +982,22 @@ msgid ""
961982
"_as_parameter_` instance variable, you could define a :class:`property` "
962983
"which makes the attribute available on request."
963984
msgstr ""
985+
"Se você não quiser armazenar os dados da instância na variável de instância :"
986+
"attr:`!_as_parameter_`, você pode definir uma :class:`property` que "
987+
"disponibilize o atributo mediante solicitação."
964988

965989
#: ../../library/ctypes.rst:426
966990
msgid "Specifying the required argument types (function prototypes)"
967991
msgstr ""
992+
"Especificando os tipos de argumentos necessários (protótipos de função)"
968993

969994
#: ../../library/ctypes.rst:428
970995
msgid ""
971996
"It is possible to specify the required argument types of functions exported "
972997
"from DLLs by setting the :attr:`~_CFuncPtr.argtypes` attribute."
973998
msgstr ""
999+
"É possível especificar os tipos de argumentos necessários de funções "
1000+
"exportadas de DLLs definindo o atributo :attr:`~_CFuncPtr.argtypes`."
9741001

9751002
#: ../../library/ctypes.rst:431
9761003
msgid ""
@@ -980,6 +1007,11 @@ msgid ""
9801007
"string, on the other hand this is quite handy to experiment with this "
9811008
"feature)::"
9821009
msgstr ""
1010+
":attr:`~_CFuncPtr.argtypes` deve ser uma sequência de tipos de dados C (a "
1011+
"função :func:`!printf` provavelmente não é um bom exemplo nesse caso, pois "
1012+
"ela aceita um número variável e diferentes tipos de parâmetros dependendo da "
1013+
"string de formato; por outro lado, ela é bastante útil para experimentar "
1014+
"esse recurso)::"
9831015

9841016
#: ../../library/ctypes.rst:436
9851017
msgid ""
@@ -996,6 +1028,9 @@ msgid ""
9961028
"prototype for a C function), and tries to convert the arguments to valid "
9971029
"types::"
9981030
msgstr ""
1031+
"Especificar um formato protege contra tipos de argumentos incompatíveis "
1032+
"(assim como um protótipo para uma função em C), e tenta converter os "
1033+
"argumentos para tipos válidos::"
9991034

10001035
#: ../../library/ctypes.rst:445
10011036
msgid ""
@@ -1022,6 +1057,16 @@ msgid ""
10221057
"bytes, a :mod:`ctypes` instance, or an object with an :attr:`!"
10231058
"_as_parameter_` attribute."
10241059
msgstr ""
1060+
"Se você definiu suas próprias classes que serão passadas em chamadas de "
1061+
"função, é necessário implementar um método de classe :meth:`~_CData."
1062+
"from_param` para que elas possam ser usadas na sequência :attr:`~_CFuncPtr."
1063+
"argtypes`. O método de classe :meth:`~_CData.from_param` recebe o objeto "
1064+
"Python passado para a chamada de função; ele deve realizar um typecheck ou o "
1065+
"que for necessário para garantir que esse objeto seja aceitável, e então "
1066+
"retornar o próprio objeto, seu atributo :attr:`!_as_parameter_` ou qualquer "
1067+
"valor que você queira passar como argumento da função C nesse caso. "
1068+
"Novamente, o resultado deve ser um inteiro, string, bytes, uma instância de :"
1069+
"mod:`ctypes` ou um objeto com um atributo :attr:`!_as_parameter_`. "
10251070

10261071
#: ../../library/ctypes.rst:468
10271072
msgid "Return types"
@@ -1033,13 +1078,19 @@ msgid ""
10331078
"return types can be specified by setting the :attr:`~_CFuncPtr.restype` "
10341079
"attribute of the function object."
10351080
msgstr ""
1081+
"Por padrão, as funções são presumidas como retornando o tipo C :c:expr:"
1082+
"`int`. Outros retornos podem ser especificados definindo o atributo :attr:"
1083+
"`~_CFuncPtr.restype` do objeto função."
10361084

10371085
#: ../../library/ctypes.rst:482
10381086
msgid ""
10391087
"The C prototype of :c:func:`time` is ``time_t time(time_t *)``. Because :c:"
10401088
"type:`time_t` might be of a different type than the default return type :c:"
10411089
"expr:`int`, you should specify the :attr:`!restype` attribute::"
10421090
msgstr ""
1091+
"O protótipo C de :c:func:`time` é ``time_t time(time_t *)``. Pois :c:type:"
1092+
"`time_t` pode ser de um tipo diferente do tipo de retorno padrão :c:expr:"
1093+
"`int`, você deve especificar o atributo :attr:`!restype`."
10431094

10441095
#: ../../library/ctypes.rst:486
10451096
msgid ">>> libc.time.restype = c_time_t"
@@ -1048,6 +1099,8 @@ msgstr ""
10481099
#: ../../library/ctypes.rst:488
10491100
msgid "The argument types can be specified using :attr:`~_CFuncPtr.argtypes`::"
10501101
msgstr ""
1102+
"Os tipos de argumentos podem ser especificados usando :attr:`~_CFuncPtr."
1103+
"argtypes`::"
10511104

10521105
#: ../../library/ctypes.rst:490
10531106
msgid ">>> libc.time.argtypes = (POINTER(c_time_t),)"
@@ -1058,6 +1111,8 @@ msgid ""
10581111
"To call the function with a ``NULL`` pointer as first argument, use "
10591112
"``None``::"
10601113
msgstr ""
1114+
"Para chamar uma função com um ponteiro ``NULL`` como primeiro argumento, use "
1115+
"``None``::"
10611116

10621117
#: ../../library/ctypes.rst:494
10631118
msgid ""
@@ -1070,6 +1125,9 @@ msgid ""
10701125
"Here is a more advanced example, it uses the :func:`!strchr` function, which "
10711126
"expects a string pointer and a char, and returns a pointer to a string::"
10721127
msgstr ""
1128+
"Aqui está um exemplo mais avançado, ele usa a função :func:`!strchr`, que "
1129+
"espera um ponteiro de string e um char, e retorna um ponteiro para uma "
1130+
"string::"
10731131

10741132
#: ../../library/ctypes.rst:500
10751133
msgid ""
@@ -1152,6 +1210,9 @@ msgid ""
11521210
"through the :attr:`~_CFuncPtr.errcheck` attribute; see the reference manual "
11531211
"for details."
11541212
msgstr ""
1213+
"Por favor, repare que um mecanismo de checagem de erro muito mais poderoso "
1214+
"está disponível através do atributo :attr:`~_CFuncPtr.errcheck`; consulte o "
1215+
"manual de referência para mais detalhes."
11551216

11561217
#: ../../library/ctypes.rst:565
11571218
msgid "Passing pointers (or: passing parameters by reference)"

library/sysconfig.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.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-02-07 14:52+0000\n"
14+
"POT-Creation-Date: 2025-10-29 15:59+0000\n"
1515
"PO-Revision-Date: 2025-07-18 19:58+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -95,7 +95,7 @@ msgid ""
9595
"Return the value of a single variable *name*. Equivalent to "
9696
"``get_config_vars().get(name)``."
9797
msgstr ""
98-
"Retorna o valor de uma única variável *nome*. Equivalente a "
98+
"Retorna o valor de uma única variável *name*. Equivalente a "
9999
"``get_config_vars().get(name)``."
100100

101101
#: ../../library/sysconfig.rst:52

library/warnings.po

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# Adorilson Bezerra <adorilson@gmail.com>, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.12\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-10-23 15:59+0000\n"
15+
"POT-Creation-Date: 2025-11-03 15:54+0000\n"
1516
"PO-Revision-Date: 2025-07-18 19:58+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: Adorilson Bezerra <adorilson@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"
@@ -955,26 +956,43 @@ msgid ""
955956
"(which also suppresses output to ``sys.stdout``). Each object in the list "
956957
"has attributes with the same names as the arguments to :func:`showwarning`."
957958
msgstr ""
959+
"Um gerenciador de contexto que copia e, ao sair, restaura o filtro de avisos "
960+
"e a função :func:`showwarning`. Se o argumento *record* for :const:`False` "
961+
"(o padrão), o gerenciador de contexto retorna :class:`None` na entrada. Se "
962+
"*record* for :const:`True`, será retornada uma lista que é preenchida "
963+
"progressivamente com objetos conforme vistos por uma função :func:"
964+
"`showwarning` personalizada (que também suprime a saída para ``sys."
965+
"stdout``). Cada objeto na lista tem atributos com os mesmos nomes que os "
966+
"argumentos de :func:`showwarning`."
958967

959968
#: ../../library/warnings.rst:552
960969
msgid ""
961970
"The *module* argument takes a module that will be used instead of the module "
962971
"returned when you import :mod:`warnings` whose filter will be protected. "
963972
"This argument exists primarily for testing the :mod:`warnings` module itself."
964973
msgstr ""
974+
"O argumento *module* recebe um módulo que será usado em vez do módulo "
975+
"retornado quando você importar :mod:`warnings` cujo filtro será protegido. "
976+
"Esse argumento serve principalmente para testar o módulo :mod:`warnings` em "
977+
"si."
965978

966979
#: ../../library/warnings.rst:557
967980
msgid ""
968981
"If the *action* argument is not ``None``, the remaining arguments are passed "
969982
"to :func:`simplefilter` as if it were called immediately on entering the "
970983
"context."
971984
msgstr ""
985+
"Se o argumento *action* não for ``None``, os argumentos restantes serão "
986+
"passados para :func:`simplefilter` como se fossem chamados imediatamente ao "
987+
"entrar no contexto."
972988

973989
#: ../../library/warnings.rst:561
974990
msgid ""
975991
"See :ref:`warning-filter` for the meaning of the *category* and *lineno* "
976992
"parameters."
977993
msgstr ""
994+
"Consulte :ref:`warning-filter` para saber o significado de *category* e "
995+
"*lineno*."
978996

979997
#: ../../library/warnings.rst:566
980998
msgid ""
@@ -986,7 +1004,7 @@ msgstr ""
9861004

9871005
#: ../../library/warnings.rst:574
9881006
msgid "Added the *action*, *category*, *lineno*, and *append* parameters."
989-
msgstr ""
1007+
msgstr "Adicionados os parâmetros *action*, *category*, *lineno* e *append*."
9901008

9911009
#: ../../library/warnings.rst:9
9921010
msgid "warnings"

potodo.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
1 directory 64.94% done
2-
└── 3.12/ 64.94% done
1+
1 directory 65.00% done
2+
└── 3.12/ 65.00% done
33
├── installing/ 100.00% done
44
├── distributing/ 100.00% done
55
├── faq/ 99.68% done
66
│ └── library.po 157 / 162 ( 96.0% translated)
77
├── using/ 100.00% done
88
├── reference/ 100.00% done
9-
├── library/ 58.24% done
9+
├── library/ 58.33% done
1010
│ ├── 2to3.po 121 / 132 ( 91.0% translated)
1111
│ ├── array.po 80 / 84 ( 95.0% translated)
1212
│ ├── ast.po 255 / 306 ( 83.0% translated)
@@ -31,7 +31,7 @@
3131
│ ├── contextlib.po 56 / 172 ( 32.0% translated)
3232
│ ├── contextvars.po 50 / 51 ( 98.0% translated)
3333
│ ├── crypt.po 6 / 36 ( 16.0% translated)
34-
│ ├── ctypes.po 135 / 523 ( 25.0% translated)
34+
│ ├── ctypes.po 153 / 523 ( 29.0% translated)
3535
│ ├── curses.po 64 / 484 ( 13.0% translated)
3636
│ ├── dataclasses.po 71 / 153 ( 46.0% translated)
3737
│ ├── datetime.po 633 / 637 ( 99.0% translated)
@@ -116,7 +116,7 @@
116116
│ ├── unittest.po 282 / 536 ( 52.0% translated)
117117
│ ├── urllib.parse.po 110 / 167 ( 65.0% translated)
118118
│ ├── urllib.request.po 51 / 300 ( 17.0% translated)
119-
│ ├── warnings.po 77 / 131 ( 58.0% translated)
119+
│ ├── warnings.po 82 / 131 ( 62.0% translated)
120120
│ ├── wave.po 21 / 53 ( 39.0% translated)
121121
│ ├── webbrowser.po 77 / 83 ( 92.0% translated)
122122
│ ├── wsgiref.po 79 / 134 ( 58.0% translated)
@@ -158,13 +158,13 @@
158158
│ ├── 3.6.po 237 / 544 ( 43.0% translated)
159159
│ └── 3.7.po 252 / 568 ( 44.0% translated)
160160
├── deprecations/ 100.00% done
161-
└── c-api/ 49.77% done
161+
└── c-api/ 49.79% done
162162
├── exceptions.po 222 / 366 ( 60.0% translated)
163163
├── frame.po 20 / 36 ( 55.0% translated)
164164
├── gcsupport.po 9 / 52 ( 17.0% translated)
165165
├── import.po 36 / 57 ( 63.0% translated)
166166
├── init.po 150 / 434 ( 34.0% translated)
167-
├── init_config.po 133 / 410 ( 32.0% translated)
167+
├── init_config.po 136 / 410 ( 33.0% translated)
168168
├── long.po 35 / 69 ( 50.0% translated)
169169
├── memory.po 59 / 195 ( 30.0% translated)
170170
├── module.po 63 / 124 ( 50.0% translated)

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "64.94%", "translated": 43739, "entries": 62010, "updated_at": "2025-11-01T23:41:44+00:00Z"}
1+
{"completion": "65.0%", "translated": 43765, "entries": 62010, "updated_at": "2025-11-03T23:44:29+00:00Z"}

0 commit comments

Comments
 (0)