Skip to content

Commit 1663b93

Browse files
Update translation
Co-Authored-By: Gustavo Reis Co-Authored-By: Rafael Fontenelle <rffontenelle@gmail.com>
1 parent aac373e commit 1663b93

5 files changed

Lines changed: 100 additions & 25 deletions

File tree

c-api/exceptions.po

Lines changed: 76 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ msgstr ""
145145

146146
#: ../../c-api/exceptions.rst:69
147147
msgid "The setting of :data:`sys.last_exc` was added."
148-
msgstr ""
148+
msgstr "A configuração de :data:`sys.last_exc` foi adicionada."
149149

150150
#: ../../c-api/exceptions.rst:75
151151
msgid "Alias for ``PyErr_PrintEx(1)``."
@@ -204,12 +204,20 @@ msgid ""
204204
"is roughly equivalent to ``PyErr_FormatUnraisable(\"Exception ignored in: "
205205
"%R\", obj)``. If *format* is ``NULL``, only the traceback is printed."
206206
msgstr ""
207+
"Similar a :c:func:`PyErr_WriteUnraisable`, mas *format* e parâmetros "
208+
"subsequentes ajudam a formatar a mensagem de aviso; eles têm o mesmo "
209+
"significado e valores que em :c:func:`PyUnicode_FromFormat`. "
210+
"``PyErr_WriteUnraisable(obj)`` é aproximadamente equivalente à "
211+
"``PyErr_FormatUnraisable(\"Exception ignored in: %R\", obj)``. Se *format* é "
212+
"``NULL``, somente o rastreamento é impresso."
207213

208214
#: ../../c-api/exceptions.rst:116
209215
msgid ""
210216
"Print the standard traceback display of ``exc`` to ``sys.stderr``, including "
211217
"chained exceptions and notes."
212218
msgstr ""
219+
"Imprime a exibição padrão do traceback de ``exc`` em ``sys.stderr``, "
220+
"incluindo as exceções encadeadas e notas."
213221

214222
#: ../../c-api/exceptions.rst:123
215223
msgid "Raising exceptions"
@@ -233,6 +241,11 @@ msgid ""
233241
"reference` to it (e.g. with :c:func:`Py_INCREF`). The second argument is an "
234242
"error message; it is decoded from ``'utf-8'``."
235243
msgstr ""
244+
"Esse é o modo mais comum de definir o indicador de erro. O primeiro "
245+
"argumento especifica o tipo da exceção; é normalmente uma das exceções "
246+
"padrão, como :c:data:`PyExc_RuntimeError`. Você não precisa criar um novo :"
247+
"term:`strong reference` para ela (como em :c:func:`Py_INCREF`). O segundo "
248+
"argumento é uma mensagem de erro; ela é codificada com ``'utf-8'``."
236249

237250
#: ../../c-api/exceptions.rst:141
238251
msgid ""
@@ -249,6 +262,11 @@ msgid ""
249262
"help format the error message; they have the same meaning and values as in :"
250263
"c:func:`PyUnicode_FromFormat`. *format* is an ASCII-encoded string."
251264
msgstr ""
265+
"Essa função define o indicador de erro e retorna ``NULL``. *exception* deve "
266+
"ser uma classe Python de exceção. O *format* e parâmetros subsequentes "
267+
"ajudam a formatar a mensagem de erro; eles têm o mesmo significado e valores "
268+
"que em :c:func:`PyUnicode_FromFormat`. *format* é uma string codificada em "
269+
"ASCII."
252270

253271
#: ../../c-api/exceptions.rst:156
254272
msgid ""
@@ -268,6 +286,9 @@ msgid ""
268286
"*message* indicates that a built-in operation was invoked with an illegal "
269287
"argument. It is mostly for internal use."
270288
msgstr ""
289+
"Essa é uma abreviação de ``PyErr_SetString(PyExc_TypeError, message)``, na "
290+
"qual *message* indica que uma operação embutida foi invocada com um "
291+
"argumento ilegal. Ela é principalmente para uso interno."
271292

272293
#: ../../c-api/exceptions.rst:176
273294
msgid ""
@@ -292,6 +313,17 @@ msgid ""
292313
"returns ``NULL``, so a wrapper function around a system call can write "
293314
"``return PyErr_SetFromErrno(type);`` when the system call returns an error."
294315
msgstr ""
316+
"Esta é uma função conveniente para levantar uma exceção quando uma função da "
317+
"biblioteca C retornou um erro e definir a variável C :c:data:`errno`. Ela "
318+
"constrói um objeto tupla cujo primeiro item é o valor inteiro :c:data:"
319+
"`errno` e cujo segundo item é a mensagem de erro correspondente (obtida de :"
320+
"c:func:`!strerror`), e então chama ``PyErr_SetObject(type, object)``. No "
321+
"Unix, quando o valor :c:data:`errno` é :c:macro:`!EINTR`, indicando uma "
322+
"chamada de sistema interrompida, isso chama :c:func:`PyErr_CheckSignals`, e "
323+
"se isso definir o indicador de erro, deixa-o definido como tal. A função "
324+
"retorna sempre ``NULL``, de forma que uma função que envolve uma chamada de "
325+
"sistema pode retornar ``return PyErr_SetFromErrno(type);`` quando a chamada "
326+
"de sistema retornar um erro."
295327

296328
#: ../../c-api/exceptions.rst:199
297329
msgid ""
@@ -300,20 +332,30 @@ msgid ""
300332
"*type* as a third parameter. In the case of :exc:`OSError` exception, this "
301333
"is used to define the :attr:`!filename` attribute of the exception instance."
302334
msgstr ""
335+
"Similar à :c:func:`PyErr_SetFromErrno`, com o comportamento adicional de "
336+
"que, se *filenameObject* não é ``NULL``, ele é passado para o construtor de "
337+
"*type* como um terceiro parâmetro. No caso da exceção :exc:`OSError`, isso é "
338+
"usado para definir o atributo :attr:`!filename` da instância da exceção."
303339

304340
#: ../../c-api/exceptions.rst:208
305341
msgid ""
306342
"Similar to :c:func:`PyErr_SetFromErrnoWithFilenameObject`, but takes a "
307343
"second filename object, for raising errors when a function that takes two "
308344
"filenames fails."
309345
msgstr ""
346+
"Similar à :c:func:`PyErr_SetFromErrnoWithFilenameObject`, mas recebe um "
347+
"segundo objeto filename, para levantar erros quando uma função que recebe "
348+
"dois nomes de arquivos falha."
310349

311350
#: ../../c-api/exceptions.rst:217
312351
msgid ""
313352
"Similar to :c:func:`PyErr_SetFromErrnoWithFilenameObject`, but the filename "
314353
"is given as a C string. *filename* is decoded from the :term:`filesystem "
315354
"encoding and error handler`."
316355
msgstr ""
356+
"Similar à :c:func:`PyErr_SetFromErrnoWithFilenameObject`, mas o nome do "
357+
"arquivo é fornecido como uma string C. *filename* é decodificado do :term:"
358+
"`filesystem encoding and error handler`."
317359

318360
#: ../../c-api/exceptions.rst:224
319361
msgid ""
@@ -328,6 +370,16 @@ msgid ""
328370
"``PyErr_SetObject(PyExc_OSError, object)``. This function always returns "
329371
"``NULL``."
330372
msgstr ""
373+
"Essa é uma função conveniente para levantar :exc:`OSError`. Se chamada com "
374+
"*ierr* de ``0``, o código de erro retornado por uma chamada para :c:func:`!"
375+
"GetLastError` é usado instantaneamente. Ela chama a função Win32 :c:func:`!"
376+
"FormatMessage` para retornar a descrição Windows do código de erro dado por "
377+
"*ierr* ou :c:func:`!GetLastError`, e então constrói um objeto :exc:`OSError` "
378+
"com o atributo :attr:`~OSError.winerror` definido para o código de erro, o "
379+
"atributo :attr:`~OSError.strerror` definido para a mensagem de erro "
380+
"correspondente (lida de :c:func:`!FormatMessage`), e então chama "
381+
"``PyErr_SetObject(PyExc_OSError, object)``. Essa função sempre retorna "
382+
"``NULL``."
331383

332384
#: ../../c-api/exceptions.rst:234 ../../c-api/exceptions.rst:242
333385
#: ../../c-api/exceptions.rst:253 ../../c-api/exceptions.rst:263
@@ -340,6 +392,8 @@ msgid ""
340392
"Similar to :c:func:`PyErr_SetFromWindowsErr`, with an additional parameter "
341393
"specifying the exception type to be raised."
342394
msgstr ""
395+
"Semelhante a :c:func:`PyErr_SetFromWindowsErr`, com um parâmetro adicional "
396+
"que especifica o tipo de exceção a ser levantada."
343397

344398
#: ../../c-api/exceptions.rst:247
345399
msgid ""
@@ -578,7 +632,7 @@ msgstr ""
578632

579633
#: ../../c-api/exceptions.rst:481
580634
msgid "Use :c:func:`PyErr_GetRaisedException` instead."
581-
msgstr ""
635+
msgstr "Use :c:func:`PyErr_GetRaisedException` em vez disso."
582636

583637
#: ../../c-api/exceptions.rst:483
584638
msgid ""
@@ -609,7 +663,7 @@ msgstr ""
609663

610664
#: ../../c-api/exceptions.rst:509
611665
msgid "Use :c:func:`PyErr_SetRaisedException` instead."
612-
msgstr ""
666+
msgstr "Use :c:func:`PyErr_SetRaisedException` em vez disso."
613667

614668
#: ../../c-api/exceptions.rst:511
615669
msgid ""
@@ -636,6 +690,8 @@ msgid ""
636690
"Use :c:func:`PyErr_GetRaisedException` instead, to avoid any possible de-"
637691
"normalization."
638692
msgstr ""
693+
"Use :c:func:`PyErr_GetRaisedException` em vez disso, para evitar qualquer "
694+
"possível desnormalização."
639695

640696
#: ../../c-api/exceptions.rst:537
641697
msgid ""
@@ -660,6 +716,9 @@ msgid ""
660716
" PyException_SetTraceback(val, tb);\n"
661717
"}"
662718
msgstr ""
719+
"if (tb != NULL) {\n"
720+
"PyException_SetTraceback(val, tb);\n"
721+
"}"
663722

664723
#: ../../c-api/exceptions.rst:557
665724
msgid ""
@@ -783,6 +842,8 @@ msgid ""
783842
"Simulate the effect of a :c:macro:`!SIGINT` signal arriving. This is "
784843
"equivalent to ``PyErr_SetInterruptEx(SIGINT)``."
785844
msgstr ""
845+
"Simula o efeito de um sinal :c:macro:`!SIGINT` chegando. Isto é equivalente "
846+
"a ``PyErr_SetInterruptEx(SIGINT)``."
786847

787848
#: ../../c-api/exceptions.rst:677 ../../c-api/exceptions.rst:704
788849
msgid ""
@@ -879,7 +940,7 @@ msgstr ""
879940

880941
#: ../../c-api/exceptions.rst:759
881942
msgid "Return :c:member:`~PyTypeObject.tp_name` of the exception class *ob*."
882-
msgstr ""
943+
msgstr "Retorna :c:member:`~PyTypeObject.tp_name` da classe de exceção *ob*."
883944

884945
#: ../../c-api/exceptions.rst:763
885946
msgid "Exception Objects"
@@ -938,7 +999,7 @@ msgstr ""
938999

9391000
#: ../../c-api/exceptions.rst:814
9401001
msgid "Return :attr:`~BaseException.args` of exception *ex*."
941-
msgstr ""
1002+
msgstr "Retorna :attr:`~BaseException.args` da exceção *ex*."
9421003

9431004
#: ../../c-api/exceptions.rst:819
9441005
msgid "Set :attr:`~BaseException.args` of exception *ex* to *args*."
@@ -1071,7 +1132,7 @@ msgstr ""
10711132
msgid ""
10721133
"This function is now also available in the :ref:`limited API <limited-c-"
10731134
"api>`."
1074-
msgstr ""
1135+
msgstr "Esta função agora também está disponível na :ref:`limited API `."
10751136

10761137
#: ../../c-api/exceptions.rst:935
10771138
msgid ""
@@ -1147,25 +1208,25 @@ msgstr ""
11471208

11481209
#: ../../c-api/exceptions.rst:983
11491210
msgid "Exception types"
1150-
msgstr ""
1211+
msgstr "Tipos de exceção"
11511212

11521213
#: ../../c-api/exceptions.rst:990 ../../c-api/exceptions.rst:1136
11531214
#: ../../c-api/exceptions.rst:1166
11541215
msgid "C name"
1155-
msgstr ""
1216+
msgstr "Nome C"
11561217

11571218
#: ../../c-api/exceptions.rst:991 ../../c-api/exceptions.rst:1137
11581219
#: ../../c-api/exceptions.rst:1167
11591220
msgid "Python name"
1160-
msgstr ""
1221+
msgstr "Nome Python"
11611222

11621223
#: ../../c-api/exceptions.rst:993
11631224
msgid ":exc:`BaseException`"
11641225
msgstr ":exc:`BaseException`"
11651226

11661227
#: ../../c-api/exceptions.rst:995
11671228
msgid ":exc:`BaseExceptionGroup`"
1168-
msgstr ""
1229+
msgstr ":exc:`BaseExceptionGroup`"
11691230

11701231
#: ../../c-api/exceptions.rst:997
11711232
msgid ":exc:`Exception`"
@@ -1306,7 +1367,7 @@ msgstr ":exc:`ProcessLookupError`"
13061367

13071368
#: ../../c-api/exceptions.rst:1065
13081369
msgid ":exc:`PythonFinalizationError`"
1309-
msgstr ""
1370+
msgstr ":exc:`PythonFinalizationError`"
13101371

13111372
#: ../../c-api/exceptions.rst:1067
13121373
msgid ":exc:`RecursionError`"
@@ -1410,7 +1471,7 @@ msgstr ":c:data:`PyExc_ModuleNotFoundError`."
14101471

14111472
#: ../../c-api/exceptions.rst:1119
14121473
msgid ":c:data:`PyExc_BaseExceptionGroup`."
1413-
msgstr ""
1474+
msgstr ":c:data:`PyExc_BaseExceptionGroup`."
14141475

14151476
#: ../../c-api/exceptions.rst:1124
14161477
msgid "OSError aliases"
@@ -1430,7 +1491,7 @@ msgstr "Notas"
14301491

14311492
#: ../../c-api/exceptions.rst:1147
14321493
msgid "[win]_"
1433-
msgstr ""
1494+
msgstr "[win]_"
14341495

14351496
#: ../../c-api/exceptions.rst:1149
14361497
msgid "Notes:"
@@ -1460,7 +1521,7 @@ msgstr ":exc:`DeprecationWarning`"
14601521

14611522
#: ../../c-api/exceptions.rst:1175
14621523
msgid ":exc:`EncodingWarning`"
1463-
msgstr ""
1524+
msgstr ":exc:`EncodingWarning`"
14641525

14651526
#: ../../c-api/exceptions.rst:1177
14661527
msgid ":exc:`FutureWarning`"
@@ -1500,7 +1561,7 @@ msgstr ":c:data:`PyExc_ResourceWarning`."
15001561

15011562
#: ../../c-api/exceptions.rst:1196
15021563
msgid ":c:data:`PyExc_EncodingWarning`."
1503-
msgstr ""
1564+
msgstr ":c:data:`PyExc_EncodingWarning`."
15041565

15051566
#: ../../c-api/exceptions.rst:183
15061567
msgid "strerror (C function)"

library/threading.po

Lines changed: 5 additions & 2 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-10-29 15:09+0000\n"
1516
"PO-Revision-Date: 2025-09-15 01:04+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"
@@ -1385,6 +1386,8 @@ msgid ""
13851386
"The return value is ``True`` unless a given *timeout* expired, in which case "
13861387
"it is ``False``."
13871388
msgstr ""
1389+
"O valor de retorno é ``True`` exceto se um dado *timout* expire, no caso em "
1390+
"que é ``False``."
13881391

13891392
#: ../../library/threading.rst:984 ../../library/threading.rst:1200
13901393
msgid "Previously, the method always returned ``None``."

potodo.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55

66

7-
# c-api (49.29% done)
7+
# c-api (49.87% done)
88

9-
- exceptions.po 124 / 238 ( 52.0% translated).
9+
- exceptions.po 153 / 238 ( 64.0% translated).
1010
- frame.po 20 / 42 ( 47.0% translated).
1111
- gcsupport.po 9 / 52 ( 17.0% translated).
1212
- import.po 33 / 62 ( 53.0% translated).
@@ -63,7 +63,7 @@
6363

6464

6565

66-
# library (60.28% done)
66+
# library (60.29% done)
6767

6868
- asyncio-dev.po 16 / 54 ( 29.0% translated).
6969
- asyncio-eventloop.po 308 / 412 ( 74.0% translated).
@@ -141,7 +141,7 @@
141141
- tarfile.po 158 / 345 ( 45.0% translated).
142142
- tempfile.po 8 / 87 ( 9.0% translated).
143143
- test.po 119 / 321 ( 37.0% translated).
144-
- threading.po 38 / 274 ( 13.0% translated).
144+
- threading.po 39 / 274 ( 14.0% translated).
145145
- tkinter.ttk.po 142 / 429 ( 33.0% translated).
146146
- traceback.po 9 / 116 ( 7.0% translated).
147147
- tracemalloc.po 21 / 156 ( 13.0% translated).
@@ -179,7 +179,7 @@
179179
- windows.po 382 / 389 ( 98.0% translated).
180180

181181

182-
# whatsnew (48.15% done)
182+
# whatsnew (48.17% done)
183183

184184
- 2.3.po 327 / 387 ( 84.0% translated).
185185
- 2.4.po 266 / 319 ( 83.0% translated).
@@ -195,8 +195,8 @@
195195
- 3.5.po 128 / 578 ( 22.0% translated).
196196
- 3.6.po 233 / 544 ( 42.0% translated).
197197
- 3.7.po 249 / 568 ( 43.0% translated).
198-
- changelog.po 2676 / 12557 ( 21.0% translated).
198+
- changelog.po 2680 / 12557 ( 21.0% translated).
199199

200200

201-
# TOTAL (59.81% done)
201+
# TOTAL (59.85% done)
202202

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "59.81%", "translated": 48590, "entries": 76504, "updated_at": "2025-10-29T23:29:15+00:00Z"}
1+
{"completion": "59.85%", "translated": 48624, "entries": 76504, "updated_at": "2025-10-30T23:27:37+00:00Z"}

0 commit comments

Comments
 (0)