Skip to content

Commit a9ec7a9

Browse files
Update translations
1 parent de939f8 commit a9ec7a9

7 files changed

Lines changed: 133 additions & 17 deletions

File tree

glossary.po

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# Vinicius Gubiani Ferreira <vini.g.fer@gmail.com>, 2021
1313
# yyyyyyyan <contact@yyyyyyyan.tech>, 2021
1414
# David Macedo, 2022
15-
# Rafael Fontenelle <rffontenelle@gmail.com>, 2024
1615
# Adorilson Bezerra <adorilson@gmail.com>, 2024
16+
# Rafael Fontenelle <rffontenelle@gmail.com>, 2024
1717
#
1818
#, fuzzy
1919
msgid ""
@@ -22,7 +22,7 @@ msgstr ""
2222
"Report-Msgid-Bugs-To: \n"
2323
"POT-Creation-Date: 2024-09-27 14:17+0000\n"
2424
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
25-
"Last-Translator: Adorilson Bezerra <adorilson@gmail.com>, 2024\n"
25+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
2626
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
2727
"teams/5390/pt_BR/)\n"
2828
"MIME-Version: 1.0\n"
@@ -850,6 +850,12 @@ msgid ""
850850
"enclosing class, function or module. Since it is available via "
851851
"introspection, it is the canonical place for documentation of the object."
852852
msgstr ""
853+
"Abreviatura de \"documentation string\" (string de documentação). Uma string "
854+
"literal que aparece como primeira expressão numa classe, função ou módulo. "
855+
"Ainda que sejam ignoradas quando a suíte é executada, é reconhecida pelo "
856+
"compilador que a coloca no atributo :attr:`~definition.__doc__` da classe, "
857+
"função ou módulo que a encapsula. Como ficam disponíveis por meio de "
858+
"introspecção, docstrings são o lugar canônico para documentação do objeto."
853859

854860
#: ../../glossary.rst:349
855861
msgid "duck-typing"
@@ -2748,6 +2754,14 @@ msgid ""
27482754
"sequence because the lookups use arbitrary :term:`hashable` keys rather than "
27492755
"integers."
27502756
msgstr ""
2757+
"Um :term:`iterável` com suporte para acesso eficiente a seus elementos "
2758+
"através de índices inteiros via método especial :meth:`~object.__getitem__` "
2759+
"e que define o método :meth:`~object.__len__` que devolve o tamanho da "
2760+
"sequência. Alguns tipos de sequência embutidos são: :class:`list`, :class:"
2761+
"`str`, :class:`tuple`, e :class:`bytes`. Note que :class:`dict` também tem "
2762+
"suporte para :meth:`~object.__getitem__` e :meth:`!__len__`, mas é "
2763+
"considerado um mapeamento e não uma sequência porque a busca usa uma chave :"
2764+
"term:`hasheável` arbitrária em vez de inteiros."
27512765

27522766
#: ../../glossary.rst:1126
27532767
msgid ""
@@ -3016,6 +3030,9 @@ msgid ""
30163030
"object has a type. An object's type is accessible as its :attr:`~object."
30173031
"__class__` attribute or can be retrieved with ``type(obj)``."
30183032
msgstr ""
3033+
"O tipo de um objeto Python determina qual tipo de objeto ele é; cada objeto "
3034+
"tem um tipo. Um tipo de objeto é acessível pelo atributo :attr:`~object."
3035+
"__class__` ou pode ser recuperado com ``type(obj)``."
30193036

30203037
#: ../../glossary.rst:1236
30213038
msgid "type alias"

library/functions.po

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,10 @@ msgid ""
819819
"attr:`~function.__doc__` and :attr:`~function.__annotations__`) and have a "
820820
"new ``__wrapped__`` attribute."
821821
msgstr ""
822+
"Métodos de classe agora herdam os atributos do método (:attr:`~function."
823+
"__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :"
824+
"attr:`~function.__doc__` e :attr:`~function.__annotations__`) e têm um novo "
825+
"atributo ``__wrapped__``."
822826

823827
#: ../../library/functions.rst:292
824828
msgid ""
@@ -2472,6 +2476,9 @@ msgid ""
24722476
":class:`object` instances do *not* have :attr:`~object.__dict__` attributes, "
24732477
"so you can't assign arbitrary attributes to an instance of :class:`object`."
24742478
msgstr ""
2479+
"Instâncias de :class:`object` *não* têm atributos :attr:`~object.__dict__`, "
2480+
"então você não pode atribuir atributos arbitrários a uma instância de :class:"
2481+
"`object`."
24752482

24762483
#: ../../library/functions.rst:1291
24772484
msgid ""
@@ -3710,6 +3717,10 @@ msgid ""
37103717
"attr:`~function.__doc__` and :attr:`~function.__annotations__`), have a new "
37113718
"``__wrapped__`` attribute, and are now callable as regular functions."
37123719
msgstr ""
3720+
"Métodos estáticos agora herdam os atributos do método (:attr:`~function."
3721+
"__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :"
3722+
"attr:`~function.__doc__` e :attr:`~function.__annotations__`), têm um novo "
3723+
"atributo ``__wrapped__`` e são agora chamáveis como funções regulares."
37133724

37143725
#: ../../library/functions.rst:1921
37153726
msgid ""
@@ -3786,6 +3797,9 @@ msgid ""
37863797
"> A -> object`` and the value of *type* is ``B``, then :func:`super` "
37873798
"searches ``C -> A -> object``."
37883799
msgstr ""
3800+
"Por exemplo, se :attr:`~type.__mro__` de *object_or_type* é ``D -> B -> C -> "
3801+
"A -> object`` e o valor de *type* é ``B``, então :func:`super` procura por "
3802+
"``C -> A -> object``."
37893803

37903804
#: ../../library/functions.rst:1961
37913805
msgid ""
@@ -3794,6 +3808,10 @@ msgid ""
37943808
"`getattr` and :func:`super`. The attribute is dynamic and can change "
37953809
"whenever the inheritance hierarchy is updated."
37963810
msgstr ""
3811+
"O atributo :attr:`~type.__mro__` da classe correspondente ao "
3812+
"*object_or_type* lista a ordem de pesquisa de resolução de método usada por :"
3813+
"func:`getattr` e :func:`super`. O atributo é dinâmico e pode mudar sempre "
3814+
"que a hierarquia da herança é atualizada."
37973815

37983816
#: ../../library/functions.rst:1966
37993817
msgid ""
@@ -3944,6 +3962,9 @@ msgid ""
39443962
"type object and generally the same object as returned by :attr:`object."
39453963
"__class__`."
39463964
msgstr ""
3965+
"Com um argumento, retorna o tipo de um *object*. O valor de retorno é um "
3966+
"tipo de objeto e geralmente o mesmo objeto retornado por :attr:`object."
3967+
"__class__`."
39473968

39483969
#: ../../library/functions.rst:2042
39493970
msgid ""
@@ -3965,20 +3986,31 @@ msgid ""
39653986
"__dict__` attribute. The following two statements create identical :class:`!"
39663987
"type` objects:"
39673988
msgstr ""
3989+
"Com três argumentos, retorna um novo objeto type. Esta é essencialmente a "
3990+
"forma dinâmica da instrução :keyword:`class`. A string *name* é o nome da "
3991+
"classe e se torna o atributo :attr:`~type.__name__`. A tupla *bases* contém "
3992+
"as classes bases e se torna o atributo :attr:`~type.__bases__`; se vazio, :"
3993+
"class:`object`, a base final de todas as classes é adicionada. O dicionário "
3994+
"*dict* contém definições de atributo e método para o corpo da classe; ele "
3995+
"pode ser copiado ou envolto antes de se tornar o atributo :attr:`~type."
3996+
"__dict__`. As duas instruções a seguir criam objetos :class:`!type` "
3997+
"idênticos:"
39683998

39693999
#: ../../library/functions.rst:2060
39704000
msgid "See also:"
3971-
msgstr ""
4001+
msgstr "Veja também:"
39724002

39734003
#: ../../library/functions.rst:2062
39744004
msgid ""
39754005
":ref:`Documentation on attributes and methods on classes <class-attrs-and-"
39764006
"methods>`."
39774007
msgstr ""
4008+
":ref:`Documentação sobre atributos e métodos em classes <class-attrs-and-"
4009+
"methods>`."
39784010

39794011
#: ../../library/functions.rst:2063
39804012
msgid ":ref:`bltin-type-objects`"
3981-
msgstr ""
4013+
msgstr ":ref:`bltin-type-objects`"
39824014

39834015
#: ../../library/functions.rst:2065
39844016
msgid ""
@@ -4001,12 +4033,16 @@ msgid ""
40014033
"Subclasses of :class:`!type` which don't override ``type.__new__`` may no "
40024034
"longer use the one-argument form to get the type of an object."
40034035
msgstr ""
4036+
"Subclasses de :class:`!type` que não substituem ``type.__new__`` não podem "
4037+
"mais usar a forma com apenas um argumento para obter o tipo de um objeto."
40044038

40054039
#: ../../library/functions.rst:2079
40064040
msgid ""
40074041
"Return the :attr:`~object.__dict__` attribute for a module, class, instance, "
40084042
"or any other object with a :attr:`!__dict__` attribute."
40094043
msgstr ""
4044+
"Retorna o atributo :attr:`~object.__dict__` para um módulo, classe, "
4045+
"instância, or qualquer outro objeto com um atributo :attr:`!__dict__`."
40104046

40114047
#: ../../library/functions.rst:2082
40124048
msgid ""
@@ -4015,6 +4051,10 @@ msgid ""
40154051
"their :attr:`!__dict__` attributes (for example, classes use a :class:`types."
40164052
"MappingProxyType` to prevent direct dictionary updates)."
40174053
msgstr ""
4054+
"Objetos como modelos e instâncias têm um atributo atualizável :attr:`~object."
4055+
"__dict__`; porém, outros projetos podem ter restrições de escrita em seus "
4056+
"atributos :attr:`!__dict__` (por exemplo, classes usam um :class:`types."
4057+
"MappingProxyType` para prevenir atualizações diretas a dicionário)."
40184058

40194059
#: ../../library/functions.rst:2087
40204060
msgid "Without an argument, :func:`vars` acts like :func:`locals`."

potodo.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11

22

3-
# 3.13 (99.21% done)
4-
5-
- glossary.po 379 / 382 ( 99.0% translated).
6-
7-
83
# c-api (42.87% done)
94

105
- arg.po 191 / 195 ( 97.0% translated).
@@ -88,7 +83,7 @@
8883
- urllib2.po 24 / 100 ( 24.0% translated).
8984

9085

91-
# library (48.90% done)
86+
# library (48.17% done)
9287

9388
- __future__.po 56 / 58 ( 96.0% translated).
9489
- __main__.po 54 / 73 ( 73.0% translated).
@@ -170,7 +165,6 @@
170165
- fnmatch.po 35 / 36 ( 97.0% translated).
171166
- fractions.po 33 / 36 ( 91.0% translated).
172167
- ftplib.po 10 / 99 ( 10.0% translated).
173-
- functions.po 496 / 509 ( 97.0% translated).
174168
- functools.po 20 / 112 ( 17.0% translated).
175169
- gc.po 54 / 72 ( 75.0% translated).
176170
- getopt.po 20 / 22 ( 90.0% translated).
@@ -329,12 +323,11 @@
329323
- simple_stmts.po 278 / 292 ( 95.0% translated).
330324

331325

332-
# tutorial (79.56% done)
326+
# tutorial (75.93% done)
333327

334-
- classes.po 147 / 149 ( 98.0% translated).
335328
- controlflow.po 171 / 223 ( 76.0% translated).
336329
- datastructures.po 90 / 125 ( 72.0% translated).
337-
- errors.po 83 / 95 ( 87.0% translated).
330+
- errors.po 84 / 95 ( 88.0% translated).
338331
- floatingpoint.po 47 / 76 ( 61.0% translated).
339332
- inputoutput.po 76 / 105 ( 72.0% translated).
340333
- stdlib.po 55 / 67 ( 82.0% translated).
@@ -350,7 +343,7 @@
350343
- windows.po 329 / 389 ( 84.0% translated).
351344

352345

353-
# whatsnew (73.08% done)
346+
# whatsnew (69.67% done)
354347

355348
- 2.0.po 183 / 207 ( 88.0% translated).
356349
- 2.1.po 138 / 154 ( 89.0% translated).
@@ -364,7 +357,6 @@
364357
- 3.1.po 114 / 132 ( 86.0% translated).
365358
- 3.10.po 505 / 550 ( 91.0% translated).
366359
- 3.11.po 772 / 776 ( 99.0% translated).
367-
- 3.12.po 827 / 833 ( 99.0% translated).
368360
- 3.13.po 670 / 842 ( 79.0% translated).
369361
- 3.2.po 65 / 576 ( 11.0% translated).
370362
- 3.3.po 132 / 682 ( 19.0% translated).
@@ -373,7 +365,6 @@
373365
- 3.6.po 234 / 544 ( 43.0% translated).
374366
- 3.7.po 245 / 568 ( 43.0% translated).
375367
- 3.8.po 458 / 513 ( 89.0% translated).
376-
- 3.9.po 379 / 380 ( 99.0% translated).
377368

378369

379370

tutorial/classes.po

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,12 @@ msgid ""
629629
"assignment. :attr:`~type.__doc__` is also a valid attribute, returning the "
630630
"docstring belonging to the class: ``\"A simple example class\"``."
631631
msgstr ""
632+
"então ``MinhaClasse.i`` e ``MinhaClasse.f`` são referências a atributo "
633+
"válidas, retornando, respectivamente, um inteiro e um objeto função. "
634+
"Atributos de classe podem receber valores, pode-se modificar o valor de "
635+
"``MinhaClasse.i`` num atribuição. :attr:`~type.__doc__` também é um atributo "
636+
"válido da classe, retornando a docstring associada à classe: ``\"Um exemplo "
637+
"de classe simples\"``."
632638

633639
#: ../../tutorial/classes.rst:282
634640
msgid ""
@@ -1998,6 +2004,12 @@ msgid ""
19982004
"namespace implementation, and should be restricted to things like post-"
19992005
"mortem debuggers."
20002006
msgstr ""
2007+
"Exceto por uma coisa. Os objetos módulo têm um atributo secreto e somente "
2008+
"para leitura chamado :attr:`~object.__dict__` que retorna o dicionário usado "
2009+
"para implementar o espaço de nomes do módulo; o nome ``__dict__`` é um "
2010+
"atributo, mas não um nome global. Obviamente, usar isso viola a abstração da "
2011+
"implementação do espaço de nomes, e deve ser restrito a coisas como "
2012+
"depuradores post-mortem."
20012013

20022014
#: ../../tutorial/classes.rst:343
20032015
msgid "object"

tutorial/errors.po

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,24 @@ msgid ""
122122
" ~~~~^~~\n"
123123
"TypeError: can only concatenate str (not \"int\") to str"
124124
msgstr ""
125+
">>> 10 * (1/0)\n"
126+
"Traceback (most recent call last):\n"
127+
" File \"<stdin>\", line 1, in <module>\n"
128+
" 10 * (1/0)\n"
129+
" ~^~\n"
130+
"ZeroDivisionError: division by zero\n"
131+
">>> 4 + spam*3\n"
132+
"Traceback (most recent call last):\n"
133+
" File \"<stdin>\", line 1, in <module>\n"
134+
" 4 + spam*3\n"
135+
" ^^^^\n"
136+
"NameError: name 'spam' is not defined\n"
137+
">>> '2' + 2\n"
138+
"Traceback (most recent call last):\n"
139+
" File \"<stdin>\", line 1, in <module>\n"
140+
" '2' + 2\n"
141+
" ~~~~^~~\n"
142+
"TypeError: can only concatenate str (not \"int\") to str"
125143

126144
#: ../../tutorial/errors.rst:64
127145
msgid ""

whatsnew/3.12.po

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,12 @@ msgid ""
312312
"distutils-legacy.html>`__ package continues to provide :mod:`!distutils`, if "
313313
"you still require it in Python 3.12 and beyond."
314314
msgstr ""
315+
":pep:`632`: Remove o pacote :mod:`!distutils`. Consulte :pep:`o guia de "
316+
"migração <0632#migration-advice>` para obter conselhos sobre a substituição "
317+
"das APIs fornecidas por ele. O pacote de terceiros `Setuptools <https://"
318+
"setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html>`__ continua "
319+
"fornecendo :mod:`!distutils`, se você ainda precisar dele no Python 3.12 e "
320+
"posterior."
315321

316322
#: ../../whatsnew/3.12.rst:163
317323
msgid ""
@@ -693,6 +699,8 @@ msgid ""
693699
"For further examples how to use the C-API for sub-interpreters with a per-"
694700
"interpreter GIL, see ``Modules/_xxsubinterpretersmodule.c``."
695701
msgstr ""
702+
"Para obter mais exemplos de como usar a API C para subinterpretadores com "
703+
"uma GIL por interpretador, consulte ``Modules/_xxsubinterpretersmodule.c``."
696704

697705
#: ../../whatsnew/3.12.rst:364
698706
msgid "(Contributed by Eric Snow in :gh:`104210`, etc.)"
@@ -2594,6 +2602,17 @@ msgid ""
25942602
"alive-threads/33555>`_ for *why* we're now surfacing this longstanding "
25952603
"platform compatibility problem to developers."
25962604
msgstr ""
2605+
"Nas plataformas POSIX, :func:`os.fork` agora pode levantar uma exceção :exc:"
2606+
"`DeprecationWarning` quando puder detectar a chamada de um processo "
2607+
"multithread. Sempre houve uma incompatibilidade fundamental com a plataforma "
2608+
"POSIX ao fazer isso. Mesmo que esse código *pareça* funcionar. Adicionamos o "
2609+
"aviso para aumentar a conscientização, pois os problemas encontrados pelo "
2610+
"código ao fazer isso estão se tornando mais frequentes. Veja a documentação :"
2611+
"func:`os.fork` para mais detalhes junto com `esta discussão sobre fork ser "
2612+
"incompatível com threads <https://discuss.python.org/t/concerns-regarding-"
2613+
"deprecation-of-fork-with-alive-threads/33555>`_ para *por que* estamos agora "
2614+
"trazendo à tona esse antigo problema de compatibilidade de plataforma para "
2615+
"os desenvolvedores."
25972616

25982617
#: ../../whatsnew/3.12.rst:1260
25992618
msgid ""
@@ -5108,6 +5127,10 @@ msgid ""
51085127
"classes to support object :attr:`~object.__dict__` and weakrefs with less "
51095128
"bookkeeping, using less memory and with faster access."
51105129
msgstr ""
5130+
"Os sinalizadores :c:macro:`Py_TPFLAGS_MANAGED_DICT` e :c:macro:"
5131+
"`Py_TPFLAGS_MANAGED_WEAKREF` foram adicionados. Isso permite que as classes "
5132+
"de extensões ofereçam suporte a objetos :attr:`~object.__dict__` e weakrefs "
5133+
"com menos trabalho, usando menos memória e com acesso mais rápido."
51115134

51125135
#: ../../whatsnew/3.12.rst:1893
51135136
msgid ""
@@ -5396,6 +5419,8 @@ msgid ""
53965419
"To get a list of subclasses, call the Python method :py:meth:`~type."
53975420
"__subclasses__` (using :c:func:`PyObject_CallMethod`, for example)."
53985421
msgstr ""
5422+
"Para obter uma lista de subclasses, chame o método Python :py:meth:`~type."
5423+
"__subclasses__` (usando :c:func:`PyObject_CallMethod`, por exemplo)."
53995424

54005425
#: ../../whatsnew/3.12.rst:2012
54015426
msgid ""
@@ -5447,6 +5472,16 @@ msgid ""
54475472
"traverse and clear their instance's dictionaries. To clear weakrefs, call :c:"
54485473
"func:`PyObject_ClearWeakRefs`, as before."
54495474
msgstr ""
5475+
"Classes de extensão que desejam adicionar um :attr:`~object.__dict__` ou "
5476+
"slot de referência fraca devem usar :c:macro:`Py_TPFLAGS_MANAGED_DICT` e :c:"
5477+
"macro:`Py_TPFLAGS_MANAGED_WEAKREF` em vez de ``tp_dictoffset`` e "
5478+
"``tp_weaklistoffset``, respectivamente. O uso de ``tp_dictoffset`` e "
5479+
"``tp_weaklistoffset`` ainda é aceitado, mas não oferece suporte totalmente "
5480+
"a herança múltipla (:gh:`95589`), e o desempenho pode ser pior. Classes que "
5481+
"declaram :c:macro:`Py_TPFLAGS_MANAGED_DICT` devem chamar :c:func:`!"
5482+
"_PyObject_VisitManagedDict` e :c:func:`!_PyObject_ClearManagedDict` para "
5483+
"percorrer e limpar os dicionários de sua instância. Para limpar weakrefs "
5484+
"(referências fracas), chame :c:func:`PyObject_ClearWeakRefs`, como antes."
54505485

54515486
#: ../../whatsnew/3.12.rst:2040
54525487
msgid ""

whatsnew/3.9.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,9 @@ msgid ""
13491349
"etc, but for any object that has its own :attr:`~definition.__doc__` "
13501350
"attribute. (Contributed by Serhiy Storchaka in :issue:`40257`.)"
13511351
msgstr ""
1352+
"A string de documentação agora é mostrada não apenas para classe, função, "
1353+
"método etc, mas para qualquer objeto que tenha seu próprio atributo :attr:"
1354+
"`~definition.__doc__`. (Contribuição de Serhiy Storchaka em :issue:`40257`.)"
13521355

13531356
#: ../../whatsnew/3.9.rst:645
13541357
msgid "random"

0 commit comments

Comments
 (0)