Skip to content

Commit bc5f03f

Browse files
Update translation
Co-Authored-By: Rainer Terroso
1 parent 54cce40 commit bc5f03f

3 files changed

Lines changed: 132 additions & 18 deletions

File tree

library/logging.handlers.po

Lines changed: 127 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-12-09 14:17+0000\n"
15+
"POT-Creation-Date: 2025-12-11 14:18+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1717
"Last-Translator: Rainer Terroso, 2025\n"
1818
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -241,31 +241,38 @@ msgid ""
241241
"does not do any formatting or output. It is essentially a 'no-op' handler "
242242
"for use by library developers."
243243
msgstr ""
244+
"A classe :class:`NullHandler`, localizada no pacote principal :mod:"
245+
"`logging`, não realiza qualquer formatação ou saída. Ela é essencialmente um "
246+
"manipulador 'no-op', destinado ao uso por desenvolvedores de bibliotecas."
244247

245248
#: ../../library/logging.handlers.rst:137
246249
msgid "Returns a new instance of the :class:`NullHandler` class."
247-
msgstr ""
250+
msgstr "Retorna uma nova instância da classe :class:`NullHandler`."
248251

249252
#: ../../library/logging.handlers.rst:141
250253
#: ../../library/logging.handlers.rst:145
251254
msgid "This method does nothing."
252-
msgstr ""
255+
msgstr "Esse método não faz nada."
253256

254257
#: ../../library/logging.handlers.rst:149
255258
msgid ""
256259
"This method returns ``None`` for the lock, since there is no underlying I/O "
257260
"to which access needs to be serialized."
258261
msgstr ""
262+
"Este método retorna ``None`` para a trava, pois não há E/S subjacente cujo "
263+
"acesso precise ser serializado."
259264

260265
#: ../../library/logging.handlers.rst:153
261266
msgid ""
262267
"See :ref:`library-config` for more information on how to use :class:"
263268
"`NullHandler`."
264269
msgstr ""
270+
"Consulte :ref:`library-config` para obter mais informações sobre como usar :"
271+
"class:`NullHandler`."
265272

266273
#: ../../library/logging.handlers.rst:159
267274
msgid "WatchedFileHandler"
268-
msgstr ""
275+
msgstr "WatchedFileHandler"
269276

270277
#: ../../library/logging.handlers.rst:163
271278
msgid ""
@@ -274,6 +281,10 @@ msgid ""
274281
"logging to. If the file changes, it is closed and reopened using the file "
275282
"name."
276283
msgstr ""
284+
"A classe :class:`WatchedFileHandler`, localizada no módulo :mod:`logging."
285+
"handlers`, é um :class:`FileHandler` que monitora o arquivo no qual está "
286+
"registrando logs. Se o arquivo for alterado, ele é fechado e reaberto usando "
287+
"o nome do arquivo."
277288

278289
#: ../../library/logging.handlers.rst:167
279290
msgid ""
@@ -284,6 +295,13 @@ msgid ""
284295
"changed.) If the file has changed, the old file stream is closed, and the "
285296
"file opened to get a new stream."
286297
msgstr ""
298+
"Uma alteração no arquivo pode ocorrer devido ao modo de usar de programas "
299+
"como *newsyslog* e *logrotate*, que realizam a rotação de arquivos de log. "
300+
"Este manipulador, destinado ao uso em Unix/Linux, monitora o arquivo para "
301+
"verificar se ele foi alterado desde a última chamada a emit. (Considera-se "
302+
"que um arquivo foi alterado se o seu dispositivo ou nó-i tiverem mudado.) Se "
303+
"o arquivo tiver sido alterado, o fluxo do arquivo antigo é fechado, e o "
304+
"arquivo é aberto novamente para obter um novo fluxo."
287305

288306
#: ../../library/logging.handlers.rst:174
289307
msgid ""
@@ -293,6 +311,11 @@ msgid ""
293311
"*ST_INO* is not supported under Windows; :func:`~os.stat` always returns "
294312
"zero for this value."
295313
msgstr ""
314+
"Este manipulador não é apropriado para uso no Windows, porque, nesse "
315+
"sistema, arquivos de log abertos não podem ser movidos ou renomeados — o "
316+
"logging abre os arquivos com travas exclusivas — e, portanto, não há "
317+
"necessidade desse tipo de manipulador. Além disso, *ST_INO* não é suportado "
318+
"no Windows; :func:`~os.stat` sempre retorna zero para esse valor."
296319

297320
#: ../../library/logging.handlers.rst:183
298321
msgid ""
@@ -304,23 +327,35 @@ msgid ""
304327
"grows indefinitely. If *errors* is provided, it determines how encoding "
305328
"errors are handled."
306329
msgstr ""
330+
"Retorna uma nova instância da classe :class:`WatchedFileHandler`. O arquivo "
331+
"especificado é aberto e usado como o fluxo para registro de logs. Se *mode* "
332+
"não for especificado, ``'a'`` será usado. Se encoding não for ``None``, ele "
333+
"será usado para abrir o arquivo com essa codificação. Se *delay* for "
334+
"verdadeiro, a abertura do arquivo é adiada até a primeira chamada a :meth:"
335+
"`emit`. Por padrão, o arquivo cresce indefinidamente. Se *errors* for "
336+
"fornecido, ele determina como erros de codificação são tratados."
307337

308338
#: ../../library/logging.handlers.rst:199
309339
msgid ""
310340
"Checks to see if the file has changed. If it has, the existing stream is "
311341
"flushed and closed and the file opened again, typically as a precursor to "
312342
"outputting the record to the file."
313343
msgstr ""
344+
"Verifica se o arquivo foi alterado. Se tiver sido, o fluxo existente é "
345+
"descarregado e fechado, e o arquivo é aberto novamente, normalmente como um "
346+
"passo preliminar antes de enviar o registro para o arquivo."
314347

315348
#: ../../library/logging.handlers.rst:208
316349
msgid ""
317350
"Outputs the record to the file, but first calls :meth:`reopenIfNeeded` to "
318351
"reopen the file if it has changed."
319352
msgstr ""
353+
"Emite o registro para o arquivo, mas antes chama :meth:`reopenIfNeeded` para "
354+
"reabrir o arquivo caso ele tenha sido alterado."
320355

321356
#: ../../library/logging.handlers.rst:214
322357
msgid "BaseRotatingHandler"
323-
msgstr ""
358+
msgstr "BaseRotatingHandler"
324359

325360
#: ../../library/logging.handlers.rst:216
326361
msgid ""
@@ -330,17 +365,25 @@ msgid ""
330365
"need to instantiate this class, but it has attributes and methods you may "
331366
"need to override."
332367
msgstr ""
368+
"A classe :class:`BaseRotatingHandler`, localizada no módulo :mod:`logging."
369+
"handlers`, é a classe base para os tratadores de arquivos com rotação, :"
370+
"class:`RotatingFileHandler` e :class:`TimedRotatingFileHandler` Em geral, "
371+
"não é necessário instanciar essa classe, mas ela possui atributos e métodos "
372+
"que podem precisar ser substituídos."
333373

334374
#: ../../library/logging.handlers.rst:224
335375
msgid "The parameters are as for :class:`FileHandler`. The attributes are:"
336-
msgstr ""
376+
msgstr "Os parâmetros são os mesmos de :class:`FileHandler`. Os atributos são:"
337377

338378
#: ../../library/logging.handlers.rst:228
339379
msgid ""
340380
"If this attribute is set to a callable, the :meth:`rotation_filename` method "
341381
"delegates to this callable. The parameters passed to the callable are those "
342382
"passed to :meth:`rotation_filename`."
343383
msgstr ""
384+
"Se esse atributo for definido como um chamável, o método :meth:"
385+
"`rotation_filename` delega a ele. Os parâmetros passados ao chamável são os "
386+
"mesmos passados para :meth:`rotation_filename`."
344387

345388
#: ../../library/logging.handlers.rst:232
346389
msgid ""
@@ -349,6 +392,10 @@ msgid ""
349392
"every time for a given input, otherwise the rollover behaviour may not work "
350393
"as expected."
351394
msgstr ""
395+
"A função namer é chamada muitas vezes durante a rotação, portanto deve ser a "
396+
"mais simples e rápida possível. Ela também deve retornar sempre o mesmo "
397+
"resultado para uma dada entrada; caso contrário, o comportamento da rotação "
398+
"pode não funcionar como esperado."
352399

353400
#: ../../library/logging.handlers.rst:237
354401
msgid ""
@@ -366,36 +413,58 @@ msgid ""
366413
"`~TimedRotatingFileHandler.getFilesToDelete` method to fit in with the "
367414
"custom naming scheme.)"
368415
msgstr ""
416+
"Também vale observar que é preciso ter cuidado ao usar um namer para "
417+
"preservar certos atributo no nome do arquivo que são usados durante a "
418+
"rotação. Por exemplo, :class:`RotatingFileHandler` espera ter um conjunto de "
419+
"arquivos de log cujos nomes contenham inteiros sucessivos, para que a "
420+
"rotação funcione como esperado, e :class:`TimedRotatingFileHandler` remova "
421+
"arquivos de log antigos (com base no parâmetro ``backupCount`` passado ao "
422+
"inicializador do manipulador) determinando quais são os arquivos mais "
423+
"antigos a serem excluídos. Para que isso funcione, os nomes dos arquivos "
424+
"devem ser ordenáveis usando a porção de data/hora do nome, e um namer "
425+
"precisa respeitar isso. (Se for desejado um namer que não respeite esse "
426+
"esquema, ele deverá ser usado em uma subclasse de :class:"
427+
"`TimedRotatingFileHandler` que substitua o método :meth:"
428+
"`~TimedRotatingFileHandler.getFilesToDelete` para se adequar ao esquema de "
429+
"nomeação personalizado.)"
369430

370431
#: ../../library/logging.handlers.rst:255
371432
msgid ""
372433
"If this attribute is set to a callable, the :meth:`rotate` method delegates "
373434
"to this callable. The parameters passed to the callable are those passed "
374435
"to :meth:`rotate`."
375436
msgstr ""
437+
"Se este atributo estiver definido como um chamável, o método :meth:`rotate` "
438+
"delega a esse chamável. Os parâmetros passados ao chamável são os mesmos "
439+
"passados para :meth:`rotate`."
376440

377441
#: ../../library/logging.handlers.rst:263
378442
msgid "Modify the filename of a log file when rotating."
379-
msgstr ""
443+
msgstr "Modifica o nome do arquivo de log durante a rotação."
380444

381445
#: ../../library/logging.handlers.rst:265
382446
msgid "This is provided so that a custom filename can be provided."
383447
msgstr ""
448+
"Isso é fornecido para que um nome de arquivo personalizado possa ser "
449+
"providenciado."
384450

385451
#: ../../library/logging.handlers.rst:267
386452
msgid ""
387453
"The default implementation calls the 'namer' attribute of the handler, if "
388454
"it's callable, passing the default name to it. If the attribute isn't "
389455
"callable (the default is ``None``), the name is returned unchanged."
390456
msgstr ""
457+
"A implementação padrão chama o atributo namer do manipulador, se ele for "
458+
"chamável, passando o nome padrão para ele. Se o atributo não for chamável (o "
459+
"padrão é ``None``), o nome é devolvido sem alterações."
391460

392461
#: ../../library/logging.handlers.rst:271
393462
msgid "The default name for the log file."
394-
msgstr ""
463+
msgstr "O nome padrão para o arquivo de log."
395464

396465
#: ../../library/logging.handlers.rst:278
397466
msgid "When rotating, rotate the current log."
398-
msgstr ""
467+
msgstr "Quando ocorre a rotação, rotaciona o log atual."
399468

400469
#: ../../library/logging.handlers.rst:280
401470
msgid ""
@@ -404,17 +473,25 @@ msgid ""
404473
"isn't callable (the default is ``None``), the source is simply renamed to "
405474
"the destination."
406475
msgstr ""
476+
"A implementação padrão chama o atributo rotator do manipulador, se ele for "
477+
"chamável, passando os argumentos source e dest para ele. Se o atributo não "
478+
"for chamável (o padrão é ``None``), o arquivo de origem é simplesmente "
479+
"renomeado para o destino."
407480

408481
#: ../../library/logging.handlers.rst:285
409482
msgid ""
410483
"The source filename. This is normally the base filename, e.g. 'test.log'."
411484
msgstr ""
485+
"O nome do arquivo de origem. Normalmente, este é o nome base do arquivo, por "
486+
"exemplo, 'test.log'."
412487

413488
#: ../../library/logging.handlers.rst:287
414489
msgid ""
415490
"The destination filename. This is normally what the source is rotated to, e."
416491
"g. 'test.log.1'."
417492
msgstr ""
493+
"O nome do arquivo de destino. Normalmente, é para onde o arquivo de origem é "
494+
"rotacionado, por exemplo, 'test.log.1'."
418495

419496
#: ../../library/logging.handlers.rst:292
420497
msgid ""
@@ -425,26 +502,36 @@ msgid ""
425502
"exception during an :meth:`emit` call, i.e. via the :meth:`handleError` "
426503
"method of the handler."
427504
msgstr ""
505+
"O motivo da existência desses atributos é evitar que você precise criar "
506+
"subclasses — é possível usar os mesmos chamáveis para instâncias de :class:"
507+
"`RotatingFileHandler` e :class:`TimedRotatingFileHandler`. Se o chamável "
508+
"namer ou rotator levantar uma exceção, ela será tratada da mesma forma que "
509+
"qualquer outra exceção durante uma chamada a :meth:`emit`, isto é, por meio "
510+
"do método :meth:`handleError` do manipulador."
428511

429512
#: ../../library/logging.handlers.rst:299
430513
msgid ""
431514
"If you need to make more significant changes to rotation processing, you can "
432515
"override the methods."
433516
msgstr ""
517+
"Se precisar fazer alterações mais significativas no processamento de "
518+
"rotação, você pode substituir os métodos."
434519

435520
#: ../../library/logging.handlers.rst:302
436521
msgid "For an example, see :ref:`cookbook-rotator-namer`."
437-
msgstr ""
522+
msgstr "Para um exemplo, consulte :ref:`cookbook-rotator-namer`."
438523

439524
#: ../../library/logging.handlers.rst:308
440525
msgid "RotatingFileHandler"
441-
msgstr ""
526+
msgstr "RotatingFileHandler"
442527

443528
#: ../../library/logging.handlers.rst:310
444529
msgid ""
445530
"The :class:`RotatingFileHandler` class, located in the :mod:`logging."
446531
"handlers` module, supports rotation of disk log files."
447532
msgstr ""
533+
"A classe :class:`RotatingFileHandler`, localizada no módulo :mod:`logging."
534+
"handlers`, oferece suporte à rotação de arquivos de log em disco."
448535

449536
#: ../../library/logging.handlers.rst:316
450537
msgid ""
@@ -456,6 +543,13 @@ msgid ""
456543
"grows indefinitely. If *errors* is provided, it determines how encoding "
457544
"errors are handled."
458545
msgstr ""
546+
"Retorna uma nova instância da classe :class:`RotatingFileHandler`. O arquivo "
547+
"especificado é aberto e usado como o stream para logging. Se *mode* não for "
548+
"especificado, ``'a'`` é usado. Se *encoding* não for ``None``, ele é usado "
549+
"para abrir o arquivo com essa codificação. Se *delay* for verdadeiro, a "
550+
"abertura do arquivo é adiada até a primeira chamada a :meth:`emit`. Por "
551+
"padrão, o arquivo cresce indefinidamente. Se *errors* for fornecido, ele é "
552+
"usado para determinar como erros de codificação são tratados."
459553

460554
#: ../../library/logging.handlers.rst:323
461555
msgid ""
@@ -474,27 +568,47 @@ msgid ""
474568
"log.1`, and if files :file:`app.log.1`, :file:`app.log.2`, etc. exist, then "
475569
"they are renamed to :file:`app.log.2`, :file:`app.log.3` etc. respectively."
476570
msgstr ""
571+
"Você pode usar os valores *maxBytes* e *backupCount* para permitir que o "
572+
"arquivo faça :dfn:`rollover` em um tamanho predeterminado. Quando o tamanho "
573+
"está prestes a ser excedido, o arquivo é fechado e um novo arquivo é aberto "
574+
"silenciosamente para saída. O rollover ocorre sempre que o arquivo de log "
575+
"atual está próximo de *maxBytes* em comprimento; mas, se *maxBytes* ou "
576+
"*backupCount* for zero, o rollover nunca ocorre, portanto, em geral, você "
577+
"deve definir *backupCount* como pelo menos 1 e usar um *maxBytes* diferente "
578+
"de zero. Quando *backupCount* é diferente de zero, o sistema salva arquivos "
579+
"de log antigos acrescentando as extensões '.1', '.2' etc. ao nome do "
580+
"arquivo. Por exemplo, com um *backupCount* de 5 e um nome de arquivo base :"
581+
"file:`app.log`, você terá :file:`app.log`, :file:`app.log.1`, :file:`app."
582+
"log.2`, até :file:`app.log.5`. O arquivo no qual se escreve é sempre :file:"
583+
"`app.log`. Quando esse arquivo é preenchido, ele é fechado e renomeado para :"
584+
"file:`app.log.1` e, se existirem os arquivos :file:`app.log.1`, :file:`app."
585+
"log.2` etc., eles são renomeados para :file:`app.log.2`, :file:`app.log.3` "
586+
"etc., respectivamente."
477587

478588
#: ../../library/logging.handlers.rst:347
479589
#: ../../library/logging.handlers.rst:457
480590
msgid "Does a rollover, as described above."
481-
msgstr ""
591+
msgstr "Realiza um rollover, conforme descrito acima."
482592

483593
#: ../../library/logging.handlers.rst:352
484594
msgid ""
485595
"Outputs the record to the file, catering for rollover as described "
486596
"previously."
487597
msgstr ""
598+
"Grava o registro no arquivo, tratando a rotação conforme descrito "
599+
"anteriormente."
488600

489601
#: ../../library/logging.handlers.rst:357
490602
msgid ""
491603
"See if the supplied record would cause the file to exceed the configured "
492604
"size limit."
493605
msgstr ""
606+
"Verifica se o registro fornecido faria o arquivo exceder o limite de tamanho "
607+
"configurado."
494608

495609
#: ../../library/logging.handlers.rst:362
496610
msgid "TimedRotatingFileHandler"
497-
msgstr ""
611+
msgstr "TimedRotatingFileHandler"
498612

499613
#: ../../library/logging.handlers.rst:364
500614
msgid ""

potodo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
1 directory 62.30% done
2-
└── 3.14/ 62.30% done
1+
1 directory 62.37% done
2+
└── 3.14/ 62.37% done
33
├── c-api/ 55.08% done
44
│ ├── exceptions.po 66.0% translated 175/262
55
│ ├── frame.po 66.0% translated 34/51
@@ -34,7 +34,7 @@
3434
│ ├── sorting.po 54.0% translated 50/92
3535
│ └── unicode.po 20.0% translated 30/145
3636
├── installing/ 100.00% done
37-
├── library/ 62.37% done
37+
├── library/ 62.52% done
3838
│ ├── argparse.po 99.0% translated 399/400
3939
│ ├── asyncio-dev.po 66.0% translated 36/54
4040
│ ├── asyncio-eventloop.po 73.0% translated 308/417
@@ -87,7 +87,7 @@
8787
│ ├── io.po 21.0% translated 61/284
8888
│ ├── itertools.po 77.0% translated 155/201
8989
│ ├── logging.config.po 90.0% translated 155/172
90-
│ ├── logging.handlers.po 25.0% translated 72/277
90+
│ ├── logging.handlers.po 39.0% translated 110/277
9191
│ ├── logging.po 28.0% translated 107/371
9292
│ ├── mailbox.po 6.0% translated 21/307
9393
│ ├── marshal.po 64.0% translated 36/56

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "62.3%", "translated": 53862, "entries": 81985, "updated_at": "2025-12-11T23:09:34+00:00Z"}
1+
{"completion": "62.37%", "translated": 53900, "entries": 81985, "updated_at": "2025-12-12T23:10:00+00:00Z"}

0 commit comments

Comments
 (0)