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

Commit89f48a4

Browse files
github-actions[bot]adorilsonrffontenelle
committed
Update translation
Co-Authored-By: Marcos MoraesCo-Authored-By: Adorilson Bezerra <adorilson@gmail.com>Co-Authored-By: Gustavo ReisCo-Authored-By: Rafael Fontenelle <rffontenelle@gmail.com>
1 parent3b180b5 commit89f48a4

File tree

11 files changed

+13064
-12894
lines changed

11 files changed

+13064
-12894
lines changed

‎c-api/conversion.po‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version:Python 3.13\n"
1313
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2025-09-15 15:19+0000\n"
14+
"POT-Creation-Date:2025-11-03 15:10+0000\n"
1515
"PO-Revision-Date:2025-09-15 01:03+0000\n"
1616
"Last-Translator:python-doc bot, 2025\n"
1717
"Language-Team:Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -108,13 +108,10 @@ msgstr ""
108108

109109
#:../../c-api/conversion.rst:44
110110
msgid""
111-
"When ``rv < 0``,\"something bad happened.\"``str[size-1]`` is ``'\\0'`` in "
112-
"this case too, but the rest of *str* is undefined. The exact cause of the "
113-
"error depends on the underlying platform."
111+
"When ``rv < 0``,the output conversion failed and``str[size-1]`` is "
112+
"``'\\0'`` inthis case too, but the rest of *str* is undefined. The exact "
113+
"cause of theerror depends on the underlying platform."
114114
msgstr""
115-
"Quando ``rv < 0``,\"aconteceu algo de errado.\" ``str[size-1]`` é ``'\\0'`` "
116-
"neste caso também, mas o resto de *str* é indefinido. A causa exata do erro "
117-
"depende da plataforma subjacente."
118115

119116
#:../../c-api/conversion.rst:49
120117
msgid""

‎c-api/dict.po‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version:Python 3.13\n"
1313
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2025-09-15 15:19+0000\n"
14+
"POT-Creation-Date:2025-11-03 15:10+0000\n"
1515
"PO-Revision-Date:2025-09-15 01:03+0000\n"
1616
"Last-Translator:python-doc bot, 2025\n"
1717
"Language-Team:Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -78,13 +78,10 @@ msgstr "Esvazia um dicionário existente de todos os pares chave-valor."
7878

7979
#:../../c-api/dict.rst:53
8080
msgid""
81-
"Determine if dictionary *p* contains *key*. If an item in *p*ismatches "
81+
"Determine if dictionary *p* contains *key*. If an item in *p* matches "
8282
"*key*, return ``1``, otherwise return ``0``. On error, return ``-1``. This "
8383
"is equivalent to the Python expression ``key in p``."
8484
msgstr""
85-
"Determina se o dicionário *p* contém *key*. Se um item em *p* corresponder à "
86-
"*key*, retorna ``1``, caso contrário, retorna ``0``. Em caso de erro, "
87-
"retorna ``-1``. Isso é equivalente à expressão Python ``key in p``."
8885

8986
#:../../c-api/dict.rst:60
9087
msgid""
@@ -294,10 +291,8 @@ msgstr ""
294291
#:../../c-api/dict.rst:200
295292
msgid""
296293
"Remove *key* from dictionary *p* and optionally return the removed value. Do "
297-
"not raise :exc:`KeyError` if the key missing."
294+
"not raise :exc:`KeyError` if the keyismissing."
298295
msgstr""
299-
"Remove *key* do dicionário *p* e, opcionalmente, retorna o valor removido. "
300-
"Não levanta :exc:`KeyError` se a chave estiver ausente."
301296

302297
#:../../c-api/dict.rst:203
303298
msgid""
@@ -318,10 +313,8 @@ msgstr ""
318313
#:../../c-api/dict.rst:209
319314
msgid""
320315
"Similar to :meth:`dict.pop`, but without the default value and not raising :"
321-
"exc:`KeyError` if the key missing."
316+
"exc:`KeyError` if the keyismissing."
322317
msgstr""
323-
"Similar a :meth:`dict.pop`, mas sem o valor padrão e sem levantar :exc:"
324-
"`KeyError` se a chave estiver ausente."
325318

326319
#:../../c-api/dict.rst:217
327320
msgid""

‎c-api/init_config.po‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8+
# Gustavo Reis, 2025
89
#
910
#,fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version:Python 3.13\n"
1314
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2025-09-15 15:19+0000\n"
15+
"POT-Creation-Date:2025-11-03 15:10+0000\n"
1516
"PO-Revision-Date:2025-09-15 01:03+0000\n"
16-
"Last-Translator:python-doc bot, 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"
@@ -790,11 +791,11 @@ msgstr ""
790791

791792
#:../../c-api/init_config.rst:502
792793
msgid"Read all Python configuration."
793-
msgstr""
794+
msgstr"Leia toda a configuração do Python."
794795

795796
#:../../c-api/init_config.rst:504
796797
msgid"Fields which are already initialized are left unchanged."
797-
msgstr""
798+
msgstr"Campos que já estão inicializados permanecem inalterados."
798799

799800
#:../../c-api/init_config.rst:506
800801
msgid""
@@ -827,7 +828,7 @@ msgstr ""
827828

828829
#:../../c-api/init_config.rst:531
829830
msgid"Release configuration memory."
830-
msgstr""
831+
msgstr"Liberar memória de configuração."
831832

832833
#:../../c-api/init_config.rst:533
833834
msgid""
@@ -953,7 +954,7 @@ msgstr ""
953954

954955
#:../../c-api/init_config.rst:609
955956
msgid"See also :c:member:`PyConfig.exec_prefix`."
956-
msgstr""
957+
msgstr"Veja também :c:member:`PyConfig.exec_prefix`."
957958

958959
#:../../c-api/init_config.rst:613
959960
msgid"Python base executable: :data:`sys._base_executable`."

‎library/ctypes.po‎

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
# Translators:
77
# python-doc bot, 2025
88
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
9+
# Marcos Moraes, 2025
910
#
1011
#,fuzzy
1112
msgid ""
1213
msgstr ""
1314
"Project-Id-Version:Python 3.13\n"
1415
"Report-Msgid-Bugs-To:\n"
15-
"POT-Creation-Date:2025-09-17 03:50+0000\n"
16+
"POT-Creation-Date:2025-11-03 15:10+0000\n"
1617
"PO-Revision-Date:2025-09-15 01:04+0000\n"
17-
"Last-Translator:Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
18+
"Last-Translator:Marcos Moraes, 2025\n"
1819
"Language-Team:Portuguese (Brazil) (https://app.transifex.com/python-doc/"
1920
"teams/5390/pt_BR/)\n"
2021
"Language:pt_BR\n"
@@ -972,6 +973,10 @@ msgid ""
972973
"bytes objects have to be wrapped in their corresponding :mod:`ctypes` type, "
973974
"so that they can be converted to the required C data type::"
974975
msgstr""
976+
"Como mencionado anteriormente, todos os tipos do Python, exceto inteiros, "
977+
"strings e objetos bytes, precisam ser encapsulados em seu tipo "
978+
"correspondente de :mod:`ctypes`, para que possam ser convertidos para o tipo "
979+
"de dado C necessário."
975980

976981
#:../../library/ctypes.rst:387
977982
msgid""
@@ -993,12 +998,19 @@ msgid ""
993998
"convention for variadic functions is different than that for regular "
994999
"functions."
9951000
msgstr""
1001+
"Em muitas plataformas chamar funções variádicas por meio do ctypes é "
1002+
"exatamente o mesmo que chamar funções com um número fixo de parâmetros. Em "
1003+
"algumas plataformas, em particular no ARM64 para plataformas Apple, a "
1004+
"convenção chamada para funções variádicas é diferente daquela usada para "
1005+
"funções regulares."
9961006

9971007
#:../../library/ctypes.rst:402
9981008
msgid""
9991009
"On those platforms it is required to specify the :attr:`~_CFuncPtr.argtypes` "
10001010
"attribute for the regular, non-variadic, function arguments:"
10011011
msgstr""
1012+
"Nessas plataformas é necessário especificar o atributo :attr:`~_CFuncPtr."
1013+
"argtypes` para os argumentos de função regulares (não variádicos):"
10021014

10031015
#:../../library/ctypes.rst:405
10041016
msgid"libc.printf.argtypes = [ctypes.c_char_p]"
@@ -1009,10 +1021,13 @@ msgid ""
10091021
"Because specifying the attribute does not inhibit portability it is advised "
10101022
"to always specify :attr:`~_CFuncPtr.argtypes` for all variadic functions."
10111023
msgstr""
1024+
"Já que especificar o atributo não impede a portabilidade, recomenda-se "
1025+
"sempre especificar o :attr:`~_CFuncPtr.argtypes` para todas as funções "
1026+
"variádicas."
10121027

10131028
#:../../library/ctypes.rst:416
10141029
msgid"Calling functions with your own custom data types"
1015-
msgstr""
1030+
msgstr"Chamando funções com seus próprios tipos de dados personalizados"
10161031

10171032
#:../../library/ctypes.rst:418
10181033
msgid""
@@ -1022,6 +1037,12 @@ msgid ""
10221037
"The attribute must be an integer, string, bytes, a :mod:`ctypes` instance, "
10231038
"or an object with an :attr:`!_as_parameter_` attribute::"
10241039
msgstr""
1040+
"Você também pode personalizar a conversão de argumentos do :mod:`ctypes` "
1041+
"para permitir que instâncias das suas próprias classes sejam usadas como "
1042+
"argumento de função. O :mod:`ctypes` procura um atributo :attr:`!"
1043+
"_as_parameter_` e o utiliza como o argumento da função. O atributo deve ser "
1044+
"um inteiro, string, bytes, uma instância de :mod:`ctypes`, ou um objeto com "
1045+
"um atributo :attr:`!_as_parameter_`:: "
10251046

10261047
#:../../library/ctypes.rst:424
10271048
msgid""
@@ -1042,16 +1063,22 @@ msgid ""
10421063
"_as_parameter_` instance variable, you could define a :class:`property` "
10431064
"which makes the attribute available on request."
10441065
msgstr""
1066+
"Se você não quiser armazenar os dados da instância na variável de instância :"
1067+
"attr:`!_as_parameter_`, você pode definir uma :class:`property` que "
1068+
"disponibilize o atributo mediante solicitação."
10451069

10461070
#:../../library/ctypes.rst:442
10471071
msgid"Specifying the required argument types (function prototypes)"
10481072
msgstr""
1073+
"Especificando os tipos de argumentos necessários (protótipos de função)"
10491074

10501075
#:../../library/ctypes.rst:444
10511076
msgid""
10521077
"It is possible to specify the required argument types of functions exported "
10531078
"from DLLs by setting the :attr:`~_CFuncPtr.argtypes` attribute."
10541079
msgstr""
1080+
"É possível especificar os tipos de argumentos necessários de funções "
1081+
"exportadas de DLLs definindo o atributo :attr:`~_CFuncPtr.argtypes`."
10551082

10561083
#:../../library/ctypes.rst:447
10571084
msgid""
@@ -1061,6 +1088,11 @@ msgid ""
10611088
"string, on the other hand this is quite handy to experiment with this "
10621089
"feature)::"
10631090
msgstr""
1091+
":attr:`~_CFuncPtr.argtypes` deve ser uma sequência de tipos de dados C (a "
1092+
"função :func:`!printf` provavelmente não é um bom exemplo nesse caso, pois "
1093+
"ela aceita um número variável e diferentes tipos de parâmetros dependendo da "
1094+
"string de formato; por outro lado, ela é bastante útil para experimentar "
1095+
"esse recurso)::"
10641096

10651097
#:../../library/ctypes.rst:452
10661098
msgid""
@@ -1077,6 +1109,9 @@ msgid ""
10771109
"prototype for a C function), and tries to convert the arguments to valid "
10781110
"types::"
10791111
msgstr""
1112+
"Especificar um formato protege contra tipos de argumentos incompatíveis "
1113+
"(assim como um protótipo para uma função em C), e tenta converter os "
1114+
"argumentos para tipos válidos::"
10801115

10811116
#:../../library/ctypes.rst:461
10821117
msgid""
@@ -1104,6 +1139,16 @@ msgid ""
11041139
"bytes, a :mod:`ctypes` instance, or an object with an :attr:`!"
11051140
"_as_parameter_` attribute."
11061141
msgstr""
1142+
"Se você definiu suas próprias classes que serão passadas em chamadas de "
1143+
"função, é necessário implementar um método de classe :meth:`~_CData."
1144+
"from_param` para que elas possam ser usadas na sequência :attr:`~_CFuncPtr."
1145+
"argtypes`. O método de classe :meth:`~_CData.from_param` recebe o objeto "
1146+
"Python passado para a chamada de função; ele deve realizar um typecheck ou o "
1147+
"que for necessário para garantir que esse objeto seja aceitável, e então "
1148+
"retornar o próprio objeto, seu atributo :attr:`!_as_parameter_` ou qualquer "
1149+
"valor que você queira passar como argumento da função C nesse caso. "
1150+
"Novamente, o resultado deve ser um inteiro, string, bytes, uma instância de :"
1151+
"mod:`ctypes` ou um objeto com um atributo :attr:`!_as_parameter_`. "
11071152

11081153
#:../../library/ctypes.rst:484
11091154
msgid"Return types"
@@ -1115,13 +1160,19 @@ msgid ""
11151160
"return types can be specified by setting the :attr:`~_CFuncPtr.restype` "
11161161
"attribute of the function object."
11171162
msgstr""
1163+
"Por padrão, as funções são presumidas como retornando o tipo C :c:expr:"
1164+
"`int`. Outros retornos podem ser especificados definindo o atributo :attr:"
1165+
"`~_CFuncPtr.restype` do objeto função."
11181166

11191167
#:../../library/ctypes.rst:498
11201168
msgid""
11211169
"The C prototype of :c:func:`time` is ``time_t time(time_t *)``. Because :c:"
11221170
"type:`time_t` might be of a different type than the default return type :c:"
11231171
"expr:`int`, you should specify the :attr:`!restype` attribute::"
11241172
msgstr""
1173+
"O protótipo C de :c:func:`time` é ``time_t time(time_t *)``. Pois :c:type:"
1174+
"`time_t` pode ser de um tipo diferente do tipo de retorno padrão :c:expr:"
1175+
"`int`, você deve especificar o atributo :attr:`!restype`."
11251176

11261177
#:../../library/ctypes.rst:502
11271178
msgid">>> libc.time.restype = c_time_t"
@@ -1130,6 +1181,8 @@ msgstr ""
11301181
#:../../library/ctypes.rst:504
11311182
msgid"The argument types can be specified using :attr:`~_CFuncPtr.argtypes`::"
11321183
msgstr""
1184+
"Os tipos de argumentos podem ser especificados usando :attr:`~_CFuncPtr."
1185+
"argtypes`::"
11331186

11341187
#:../../library/ctypes.rst:506
11351188
msgid">>> libc.time.argtypes = (POINTER(c_time_t),)"
@@ -1140,6 +1193,8 @@ msgid ""
11401193
"To call the function with a ``NULL`` pointer as first argument, use "
11411194
"``None``::"
11421195
msgstr""
1196+
"Para chamar uma função com um ponteiro ``NULL`` como primeiro argumento, use "
1197+
"``None``::"
11431198

11441199
#:../../library/ctypes.rst:510
11451200
msgid""
@@ -1152,6 +1207,9 @@ msgid ""
11521207
"Here is a more advanced example, it uses the :func:`!strchr` function, which "
11531208
"expects a string pointer and a char, and returns a pointer to a string::"
11541209
msgstr""
1210+
"Aqui está um exemplo mais avançado, ele usa a função :func:`!strchr`, que "
1211+
"espera um ponteiro de string e um char, e retorna um ponteiro para uma "
1212+
"string::"
11551213

11561214
#:../../library/ctypes.rst:516
11571215
msgid""
@@ -1234,6 +1292,9 @@ msgid ""
12341292
"through the :attr:`~_CFuncPtr.errcheck` attribute; see the reference manual "
12351293
"for details."
12361294
msgstr""
1295+
"Por favor, repare que um mecanismo de checagem de erro muito mais poderoso "
1296+
"está disponível através do atributo :attr:`~_CFuncPtr.errcheck`; consulte o "
1297+
"manual de referência para mais detalhes."
12371298

12381299
#:../../library/ctypes.rst:581
12391300
msgid"Passing pointers (or: passing parameters by reference)"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp