Skip to content

Commit 42358b9

Browse files
Update translations
1 parent b23df67 commit 42358b9

File tree

3 files changed

+41
-5
lines changed

3 files changed

+41
-5
lines changed

library/dataclasses.po

Lines changed: 37 additions & 1 deletion
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-04-11 14:54+0000\n"
14+
"POT-Creation-Date: 2025-06-06 15:34+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -65,6 +65,17 @@ msgid ""
6565
" def total_cost(self) -> float:\n"
6666
" return self.unit_price * self.quantity_on_hand"
6767
msgstr ""
68+
"from dataclasses import dataclass\n"
69+
"\n"
70+
"@dataclass\n"
71+
"class InventoryItem:\n"
72+
" \"\"\"Class for keeping track of an item in inventory.\"\"\"\n"
73+
" name: str\n"
74+
" unit_price: float\n"
75+
" quantity_on_hand: int = 0\n"
76+
"\n"
77+
" def total_cost(self) -> float:\n"
78+
" return self.unit_price * self.quantity_on_hand"
6879

6980
#: ../../library/dataclasses.rst:34
7081
msgid "will add, among other things, a :meth:`!__init__` that looks like::"
@@ -78,6 +89,11 @@ msgid ""
7889
" self.unit_price = unit_price\n"
7990
" self.quantity_on_hand = quantity_on_hand"
8091
msgstr ""
92+
"def __init__(self, name: str, unit_price: float, quantity_on_hand: int = "
93+
"0):\n"
94+
" self.name = name\n"
95+
" self.unit_price = unit_price\n"
96+
" self.quantity_on_hand = quantity_on_hand"
8197

8298
#: ../../library/dataclasses.rst:41
8399
msgid ""
@@ -159,6 +175,19 @@ msgid ""
159175
"class C:\n"
160176
" ..."
161177
msgstr ""
178+
"@dataclass\n"
179+
"class C:\n"
180+
" ...\n"
181+
"\n"
182+
"@dataclass()\n"
183+
"class C:\n"
184+
" ...\n"
185+
"\n"
186+
"@dataclass(init=True, repr=True, eq=True, order=False, unsafe_hash=False, "
187+
"frozen=False,\n"
188+
" match_args=True, kw_only=False, slots=False, weakref_slot=False)\n"
189+
"class C:\n"
190+
" ..."
162191

163192
#: ../../library/dataclasses.rst:87
164193
msgid "The parameters to ``@dataclass`` are:"
@@ -257,6 +286,13 @@ msgid ""
257286
"and behavior of :meth:`!__eq__`, and the values of the *eq* and *frozen* "
258287
"flags in the ``@dataclass`` decorator."
259288
msgstr ""
289+
":meth:`!__hash__` é usado para prover o método embutido :meth:`hash`, e "
290+
"quando objetos são adicionados a coleções do tipo dicionário ou conjunto. "
291+
"Ter um método :meth:`!__hash__` implica que instâncias da classe serão "
292+
"imutáveis. Mutabilidade é uma propriedade complicada, que depende da "
293+
"intenção do programador, da existência e comportamento do método :meth:`!"
294+
"__eq__`, e dos valores dos parâmetros *eq* e *frozen* no decorador "
295+
"``@dataclass``."
260296

261297
#: ../../library/dataclasses.rst:134
262298
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 (63.18% done)
72+
# library (63.19% 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 45 / 153 ( 29.0% translated).
102+
- dataclasses.po 49 / 153 ( 32.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).
@@ -253,5 +253,5 @@
253253
- 3.7.po 252 / 568 ( 44.0% translated).
254254

255255

256-
# TOTAL (68.17% done)
256+
# TOTAL (68.18% done)
257257

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "68.17%", "translated": 42272, "entries": 62011, "updated_at": "2025-06-13T23:39:39+00:00Z"}
1+
{"completion": "68.18%", "translated": 42276, "entries": 62011, "updated_at": "2025-06-15T23:39:14+00:00Z"}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy