🌐 AI搜索 & 代理 主页
Skip to content

Commit e00baeb

Browse files
Update translation
Co-Authored-By: Rainer Terroso
1 parent ad2ab6c commit e00baeb

File tree

3 files changed

+42
-9
lines changed

3 files changed

+42
-9
lines changed

library/logging.handlers.po

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.11\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2025-12-09 16:40+0000\n"
15+
"POT-Creation-Date: 2025-12-11 17:04+0000\n"
1616
"PO-Revision-Date: 2025-09-22 16:50+0000\n"
1717
"Last-Translator: Rainer Terroso, 2025\n"
1818
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -235,31 +235,38 @@ msgid ""
235235
"does not do any formatting or output. It is essentially a 'no-op' handler "
236236
"for use by library developers."
237237
msgstr ""
238+
"A classe :class:`NullHandler`, localizada no pacote principal :mod:"
239+
"`logging`, não realiza qualquer formatação ou saída. Ela é essencialmente um "
240+
"manipulador 'no-op', destinado ao uso por desenvolvedores de bibliotecas."
238241

239242
#: ../../library/logging.handlers.rst:137
240243
msgid "Returns a new instance of the :class:`NullHandler` class."
241-
msgstr ""
244+
msgstr "Retorna uma nova instância da classe :class:`NullHandler`."
242245

243246
#: ../../library/logging.handlers.rst:141
244247
#: ../../library/logging.handlers.rst:145
245248
msgid "This method does nothing."
246-
msgstr ""
249+
msgstr "Esse método não faz nada."
247250

248251
#: ../../library/logging.handlers.rst:149
249252
msgid ""
250253
"This method returns ``None`` for the lock, since there is no underlying I/O "
251254
"to which access needs to be serialized."
252255
msgstr ""
256+
"Este método retorna ``None`` para a trava, pois não há E/S subjacente cujo "
257+
"acesso precise ser serializado."
253258

254259
#: ../../library/logging.handlers.rst:153
255260
msgid ""
256261
"See :ref:`library-config` for more information on how to use :class:"
257262
"`NullHandler`."
258263
msgstr ""
264+
"Consulte :ref:`biblioteca-config` para obter mais informações sobre como "
265+
"usar :class:`NullHandler`."
259266

260267
#: ../../library/logging.handlers.rst:159
261268
msgid "WatchedFileHandler"
262-
msgstr ""
269+
msgstr "WatchedFileHandler"
263270

264271
#: ../../library/logging.handlers.rst:163
265272
msgid ""
@@ -268,6 +275,10 @@ msgid ""
268275
"logging to. If the file changes, it is closed and reopened using the file "
269276
"name."
270277
msgstr ""
278+
"A classe :class:`WatchedFileHandler`, localizada no módulo :mod:`logging."
279+
"handlers`, é um :class:`FileHandler` que monitora o arquivo no qual está "
280+
"registrando logs. Se o arquivo for alterado, ele é fechado e reaberto usando "
281+
"o nome do arquivo."
271282

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

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

291314
#: ../../library/logging.handlers.rst:183
292315
msgid ""
@@ -298,13 +321,23 @@ msgid ""
298321
"grows indefinitely. If *errors* is provided, it determines how encoding "
299322
"errors are handled."
300323
msgstr ""
324+
"Retorna uma nova instância da classe :class:`WatchedFileHandler`. O arquivo "
325+
"especificado é aberto e usado como o fluxo para registro de logs. Se *mode* "
326+
"não for especificado, ``'a'`` será usado. Se encoding não for ``None``, ele "
327+
"será usado para abrir o arquivo com essa codificação. Se *delay* for "
328+
"verdadeiro, a abertura do arquivo é adiada até a primeira chamada a :meth:"
329+
"`emit`. Por padrão, o arquivo cresce indefinidamente. Se *errors* for "
330+
"fornecido, ele determina como erros de codificação são tratados."
301331

302332
#: ../../library/logging.handlers.rst:199
303333
msgid ""
304334
"Checks to see if the file has changed. If it has, the existing stream is "
305335
"flushed and closed and the file opened again, typically as a precursor to "
306336
"outputting the record to the file."
307337
msgstr ""
338+
"Verifica se o arquivo foi alterado. Se tiver sido, o fluxo existente é "
339+
"descarregado e fechado, e o arquivo é aberto novamente, normalmente como um "
340+
"passo preliminar antes de enviar o registro para o arquivo."
308341

309342
#: ../../library/logging.handlers.rst:208
310343
msgid ""

potodo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
1 directory 64.53% done
2-
└── 3.11/ 64.53% done
1+
1 directory 64.56% done
2+
└── 3.11/ 64.56% done
33
├── c-api/ 53.46% done
44
│ ├── exceptions.po 63.0% translated 219/347
55
│ ├── float.po 97.0% translated 34/35
@@ -54,7 +54,7 @@
5454
├── install/ 71.32% done
5555
│ └── index.po 73.0% translated 166/226
5656
├── installing/ 100.00% done
57-
├── library/ 57.76% done
57+
├── library/ 57.82% done
5858
│ ├── _thread.po 96.0% translated 49/51
5959
│ ├── abc.po 97.0% translated 48/49
6060
│ ├── argparse.po 91.0% translated 305/335
@@ -142,7 +142,7 @@
142142
│ ├── ipaddress.po 99.0% translated 155/156
143143
│ ├── itertools.po 83.0% translated 131/157
144144
│ ├── logging.config.po 87.0% translated 117/134
145-
│ ├── logging.handlers.po 25.0% translated 69/268
145+
│ ├── logging.handlers.po 29.0% translated 80/268
146146
│ ├── logging.po 28.0% translated 100/351
147147
│ ├── mailbox.po 7.0% translated 20/285
148148
│ ├── mailcap.po 13.0% translated 2/15

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "64.53%", "translated": 39282, "entries": 55824, "updated_at": "2025-12-10T23:50:25+00:00Z"}
1+
{"completion": "64.56%", "translated": 39293, "entries": 55824, "updated_at": "2025-12-11T23:54:39+00:00Z"}

0 commit comments

Comments
 (0)