Skip to content

Commit 56ea016

Browse files
Update translations
1 parent 923a0ac commit 56ea016

File tree

4 files changed

+87
-9
lines changed

4 files changed

+87
-9
lines changed

library/dataclasses.po

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@ msgid ""
376376
"__match_args__` is already defined in the class, then :attr:`!"
377377
"__match_args__` will not be generated."
378378
msgstr ""
379+
"*match_args*: Se verdadeiro (o padrão é ``True``), a tupla :attr:`~object."
380+
"__match_args__` será criada a partir da lista de parâmetros não-somente-"
381+
"nomeado para o método :meth:`~object.__init__` gerado (mesmo se :meth:`!"
382+
"__init__` não for gerado, veja acima). Se falso, ou se :attr:`!"
383+
"__match_args__` já estiver definido na classe, então :attr:`!__match_args__` "
384+
"não será gerado."
379385

380386
#: ../../library/dataclasses.rst:174
381387
msgid ""
@@ -386,10 +392,16 @@ msgid ""
386392
"is called. See the :term:`parameter` glossary entry for details. Also see "
387393
"the :const:`KW_ONLY` section."
388394
msgstr ""
395+
"*kw_only*: Se verdadeiro (o valor padrão é ``False``), então todos os campos "
396+
"serão marcados como somente-nomeado. Se um campo for marcado como somente-"
397+
"nomeado, então o único efeito é que o parâmetro :meth:`~object.__init__` "
398+
"gerado a partir de um campo somente-nomeado deve ser especificado com um "
399+
"campo quando :meth:`!__init__` é chamado. Veja a entrada :term:`parâmetro` "
400+
"do glossário para detalhes. Veja também a seção :const:`KW_ONLY`."
389401

390402
#: ../../library/dataclasses.rst:182
391403
msgid "Keyword-only fields are not included in :attr:`!__match_args__`."
392-
msgstr ""
404+
msgstr "Campos somente-nomeados não são incluídos em :attr:`!__match_args__`."
393405

394406
#: ../../library/dataclasses.rst:186
395407
msgid ""
@@ -398,6 +410,10 @@ msgid ""
398410
"original one. If :attr:`!__slots__` is already defined in the class, then :"
399411
"exc:`TypeError` is raised."
400412
msgstr ""
413+
"*slots*: Se true (o padrão é ``False``), o atributo :attr:`~object."
414+
"__slots__` será gerado e uma nova classe será retornada no lugar da "
415+
"original. Se :attr:`!__slots__` já estiver definido na classe, então :exc:"
416+
"`TypeError` será levantada."
401417

402418
#: ../../library/dataclasses.rst:192
403419
msgid ""
@@ -414,6 +430,10 @@ msgid ""
414430
"``__init_subclass__`` with no parameters or use default values as a "
415431
"workaround. See :gh:`91126` for full details."
416432
msgstr ""
433+
"Passar parâmetros para uma classe base :meth:`~object.__init_subclass__` ao "
434+
"usar ``slots=True`` resultará em um :exc:`TypeError`. Use "
435+
"``__init_subclass__`` sem parâmetros ou use valores padrão como solução "
436+
"alternativa. Consulte :gh:`91126` para obter detalhes completos."
417437

418438
#: ../../library/dataclasses.rst:207
419439
msgid ""
@@ -424,6 +444,12 @@ msgid ""
424444
"`fields` instead. To be able to determine inherited slots, base class :attr:"
425445
"`!__slots__` may be any iterable, but *not* an iterator."
426446
msgstr ""
447+
"Se um nome de campo já estiver incluído no :attr:`!__slots__` de uma classe "
448+
"base, ele não será incluído no :attr:`!__slots__` gerado para evitar :ref:"
449+
"`substitui-los <datamodel-note-slots>`. Portanto, não use :attr:`!__slots__` "
450+
"para recuperar os nomes dos campos de uma classe de dados. Use :func:"
451+
"`fields` em vez disso. Para poder determinar os slots herdados, a classe "
452+
"base :attr:`!__slots__` pode ser qualquer iterável, mas *não* um iterador."
427453

428454
#: ../../library/dataclasses.rst:217
429455
msgid ""
@@ -432,6 +458,10 @@ msgid ""
432458
"<weakref.ref>`. It is an error to specify ``weakref_slot=True`` without also "
433459
"specifying ``slots=True``."
434460
msgstr ""
461+
"*weakref_slot*: Se verdadeiro (o padrão é ``False``), adicione um slot "
462+
"chamado \"__weakref__\", que é necessário para tornar uma instância :func:"
463+
"`fraca <weakref.ref>`. É um erro especificar ``weakref_slot=True`` sem "
464+
"também especificar ``slots=True``."
435465

436466
#: ../../library/dataclasses.rst:225
437467
msgid ""
@@ -448,16 +478,22 @@ msgid ""
448478
" a: int # 'a' has no default value\n"
449479
" b: int = 0 # assign a default value for 'b'"
450480
msgstr ""
481+
"@dataclass\n"
482+
"class C:\n"
483+
" a: int # 'a' tem nenhum valor mínimo\n"
484+
" b: int = 0 # atribui um valor padrão para 'b'"
451485

452486
#: ../../library/dataclasses.rst:233
453487
msgid ""
454488
"In this example, both :attr:`!a` and :attr:`!b` will be included in the "
455489
"added :meth:`~object.__init__` method, which will be defined as::"
456490
msgstr ""
491+
"Nesse exemplo, :attr:`!a` e :attr:`!b` serão incluídos no método :meth:"
492+
"`~object.__init__` adicionado, que será definido como::"
457493

458494
#: ../../library/dataclasses.rst:236
459495
msgid "def __init__(self, a: int, b: int = 0):"
460-
msgstr ""
496+
msgstr "def __init__(self, a: int, b: int = 0):"
461497

462498
#: ../../library/dataclasses.rst:238
463499
msgid ""
@@ -477,6 +513,11 @@ msgid ""
477513
"replace the default field value with a call to the provided :func:`!field` "
478514
"function. For example::"
479515
msgstr ""
516+
"Para casos de uso comuns e simples, nenhuma outra funcionalidade é "
517+
"necessária. Existem, no entanto, alguns recursos que requerem informações "
518+
"adicionais por campo. Para satisfazer essa necessidade de informações "
519+
"adicionais, você pode substituir o valor do campo padrão por uma chamada "
520+
"para a função :func:`!field` fornecida. Por exemplo::"
480521

481522
#: ../../library/dataclasses.rst:250
482523
msgid ""
@@ -487,6 +528,12 @@ msgid ""
487528
"c = C()\n"
488529
"c.mylist += [1, 2, 3]"
489530
msgstr ""
531+
"@dataclass\n"
532+
"class C:\n"
533+
" mylist: list[int] = field(default_factory=list)\n"
534+
"\n"
535+
"c = C()\n"
536+
"c.mylist += [1, 2, 3]"
490537

491538
#: ../../library/dataclasses.rst:257
492539
msgid ""
@@ -503,14 +550,17 @@ msgstr ""
503550

504551
#: ../../library/dataclasses.rst:262
505552
msgid "The parameters to :func:`!field` are:"
506-
msgstr ""
553+
msgstr "Os parâmetros de :func:`!field` são:"
507554

508555
#: ../../library/dataclasses.rst:264
509556
msgid ""
510557
"*default*: If provided, this will be the default value for this field. This "
511558
"is needed because the :func:`!field` call itself replaces the normal "
512559
"position of the default value."
513560
msgstr ""
561+
"*default*: Se fornecido, este será o valor padrão para este campo. Isso é "
562+
"necessário porque a própria chamada :func:`!field` substitui a posição "
563+
"normal do valor padrão."
514564

515565
#: ../../library/dataclasses.rst:268
516566
msgid ""
@@ -520,18 +570,27 @@ msgid ""
520570
"discussed below. It is an error to specify both *default* and "
521571
"*default_factory*."
522572
msgstr ""
573+
"*default_factory*: Se fornecido, deve ser um chamável sem argumento que será "
574+
"chamado quando um valor padrão for necessário para este campo. Entre outras "
575+
"finalidades, isso pode ser usado para especificar campos com valores padrão "
576+
"mutáveis, conforme discutido abaixo. É um erro especificar ambos *default* e "
577+
"*default_factory*."
523578

524579
#: ../../library/dataclasses.rst:274
525580
msgid ""
526581
"*init*: If true (the default), this field is included as a parameter to the "
527582
"generated :meth:`~object.__init__` method."
528583
msgstr ""
584+
"*init*: Se verdadeiro (o padrão), este campo é incluído como um parâmetro "
585+
"para o método :meth:`~object.__init__` gerado."
529586

530587
#: ../../library/dataclasses.rst:277
531588
msgid ""
532589
"*repr*: If true (the default), this field is included in the string returned "
533590
"by the generated :meth:`~object.__repr__` method."
534591
msgstr ""
592+
"*repr*: Se verdadeiro (o padrão), este campo é incluído na string retornada "
593+
"pelo método :meth:`~object.__repr__` gerado."
535594

536595
#: ../../library/dataclasses.rst:280
537596
msgid ""
@@ -543,6 +602,12 @@ msgid ""
543602
"comparisons. Setting this value to anything other than ``None`` is "
544603
"discouraged."
545604
msgstr ""
605+
"*hash*: Pode ser um bool ou ``None``. Se verdadeiro, este campo é incluído "
606+
"no método :meth:`~object.__hash__` gerado. Se false, este campo é excluído "
607+
"do :meth:`~object.__hash__` gerado. Se ``None`` (o padrão), usa o valor de "
608+
"*compare*: este seria normalmente o comportamento esperado, já que um campo "
609+
"deve ser incluído no hash se for usado para comparações. Definir este valor "
610+
"para algo diferente de ``None`` é desencorajado."
546611

547612
#: ../../library/dataclasses.rst:288
548613
msgid ""
@@ -564,6 +629,9 @@ msgid ""
564629
"equality and comparison methods (:meth:`~object.__eq__`, :meth:`~object."
565630
"__gt__`, et al.)."
566631
msgstr ""
632+
"*compare*: Se verdadeiro (o padrão), este campo é incluído nos métodos de "
633+
"igualdade e comparação gerados (:meth:`~object.__eq__`, :meth:`~object."
634+
"__gt__`, etc.)."
567635

568636
#: ../../library/dataclasses.rst:298
569637
msgid ""
@@ -574,16 +642,26 @@ msgid ""
574642
"mechanism. Multiple third-parties can each have their own key, to use as a "
575643
"namespace in the metadata."
576644
msgstr ""
645+
"*metadata*: Pode ser um mapeamento ou ``None``. ``None`` é tratado como um "
646+
"dicionário vazio. Este valor é agrupado em :func:`~types.MappingProxyType` "
647+
"para torná-lo somente leitura e exposto no objeto :class:`Field`. Ele não é "
648+
"usado por Data Classes e é fornecido como um mecanismo de extensão de "
649+
"terceiros. Vários terceiros podem ter sua própria chave, para usar como um "
650+
"espaço de nomes nos metadados."
577651

578652
#: ../../library/dataclasses.rst:306
579653
msgid ""
580654
"*kw_only*: If true, this field will be marked as keyword-only. This is used "
581655
"when the generated :meth:`~object.__init__` method's parameters are computed."
582656
msgstr ""
657+
"*kw_only*: Se verdadeiro, este campo será marcado como somente-nomeado. Isso "
658+
"é usado quando os parâmetros do método :meth:`~object.__init__` gerados são "
659+
"calculados."
583660

584661
#: ../../library/dataclasses.rst:310
585662
msgid "Keyword-only fields are also not included in :attr:`!__match_args__`."
586663
msgstr ""
664+
"Campos somente-nomeados também não são incluídos em :attr:`!__match_args__`."
587665

588666
#: ../../library/dataclasses.rst:314
589667
msgid ""

library/zoneinfo.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-05-30 15:38+0000\n"
14+
"POT-Creation-Date: 2025-06-20 15:39+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:34+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -244,7 +244,7 @@ msgstr ""
244244

245245
#: ../../library/zoneinfo.rst:106
246246
msgid "Configuring the data sources"
247-
msgstr "Configuring the data sources"
247+
msgstr "Configurando as fontes de dados"
248248

249249
#: ../../library/zoneinfo.rst:108
250250
msgid ""

potodo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070

7171

72-
# library (64.11% done)
72+
# library (64.17% done)
7373

7474
- 2to3.po 121 / 132 ( 91.0% translated).
7575
- array.po 78 / 84 ( 92.0% translated).
@@ -99,7 +99,7 @@
9999
- crypt.po 6 / 36 ( 16.0% translated).
100100
- ctypes.po 103 / 523 ( 19.0% translated).
101101
- curses.po 64 / 484 ( 13.0% translated).
102-
- dataclasses.po 49 / 153 ( 32.0% translated).
102+
- dataclasses.po 71 / 153 ( 46.0% translated).
103103
- datetime.po 633 / 637 ( 99.0% translated).
104104
- dbm.po 85 / 87 ( 97.0% translated).
105105
- difflib.po 14 / 140 ( 10.0% translated).
@@ -247,5 +247,5 @@
247247
- 3.7.po 252 / 568 ( 44.0% translated).
248248

249249

250-
# TOTAL (68.78% done)
250+
# TOTAL (68.82% done)
251251

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "68.78%", "translated": 42653, "entries": 62011, "updated_at": "2025-06-23T23:39:20+00:00Z"}
1+
{"completion": "68.82%", "translated": 42675, "entries": 62011, "updated_at": "2025-06-24T23:40:28+00:00Z"}

0 commit comments

Comments
 (0)