Skip to content

Commit 717423f

Browse files
Update translations
1 parent 6a17333 commit 717423f

File tree

7 files changed

+103
-13
lines changed

7 files changed

+103
-13
lines changed

library/csv.po

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,15 @@ msgid ""
10571057
" except csv.Error as e:\n"
10581058
" sys.exit(f'file {filename}, line {reader.line_num}: {e}')"
10591059
msgstr ""
1060+
"import csv, sys\n"
1061+
"filename = 'some.csv'\n"
1062+
"with open(filename, newline='') as f:\n"
1063+
" reader = csv.reader(f)\n"
1064+
" try:\n"
1065+
" for row in reader:\n"
1066+
" print(row)\n"
1067+
" except csv.Error as e:\n"
1068+
" sys.exit(f'file {filename}, line {reader.line_num}: {e}')"
10601069

10611070
#: ../../library/csv.rst:614
10621071
msgid ""

library/dataclasses.po

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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:"
@@ -247,6 +276,10 @@ msgid ""
247276
"generate a :meth:`~object.__hash__` method according to how *eq* and "
248277
"*frozen* are set. The default value is ``False``."
249278
msgstr ""
279+
"*unsafe_hash*: Se verdadeiro, força ``dataclasses`` a criar um método :meth:"
280+
"`~object.__hash__`, mesmo que não seja seguro fazê-lo. Caso contrário, gera "
281+
"um método :meth:`~object.__hash__` de acordo com a configuração de *eq* e "
282+
"*frozen*. O valor padrão é ``False``."
250283

251284
#: ../../library/dataclasses.rst:130
252285
msgid ""
@@ -257,6 +290,13 @@ msgid ""
257290
"and behavior of :meth:`!__eq__`, and the values of the *eq* and *frozen* "
258291
"flags in the ``@dataclass`` decorator."
259292
msgstr ""
293+
":meth:`!__hash__` é usado para prover o método embutido :meth:`hash`, e "
294+
"quando objetos são adicionados a coleções do tipo dicionário ou conjunto. "
295+
"Ter um método :meth:`!__hash__` implica que instâncias da classe serão "
296+
"imutáveis. Mutabilidade é uma propriedade complicada, que depende da "
297+
"intenção do programador, da existência e comportamento do método :meth:`!"
298+
"__eq__`, e dos valores dos parâmetros *eq* e *frozen* no decorador "
299+
"``@dataclass``."
260300

261301
#: ../../library/dataclasses.rst:137
262302
msgid ""

library/stdtypes.po

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ msgstr "*i*\\ -ésimo item de *s*, origem 0"
18191819

18201820
#: ../../library/stdtypes.rst:979
18211821
msgid "(3)(9)"
1822-
msgstr ""
1822+
msgstr "(3)(9)"
18231823

18241824
#: ../../library/stdtypes.rst:981
18251825
msgid "``s[i:j]``"
@@ -2125,6 +2125,8 @@ msgstr ""
21252125
#: ../../library/stdtypes.rst:1112
21262126
msgid "An :exc:`IndexError` is raised if *i* is outside the sequence range."
21272127
msgstr ""
2128+
"Uma :exc:`IndexError` é levantada se *i* estiver fora do intervalo da "
2129+
"sequência."
21282130

21292131
#: ../../library/stdtypes.rst:1118
21302132
msgid "Immutable Sequence Types"
@@ -3210,6 +3212,10 @@ msgid ""
32103212
"unless an encoding error actually occurs, :ref:`devmode` is enabled or a :"
32113213
"ref:`debug build <debug-build>` is used. For example::"
32123214
msgstr ""
3215+
"Por motivos de desempenho, o valor de *errors* não é verificado quanto à "
3216+
"validade, a menos que um erro de codificação realmente ocorra, :ref:"
3217+
"`devmode` esteja ativado ou uma :ref:`construção de depuração <debug-build>` "
3218+
"seja usada. Por exemplo::"
32133219

32143220
#: ../../library/stdtypes.rst:1710
32153221
msgid ""
@@ -3219,6 +3225,11 @@ msgid ""
32193225
">>> encoded_str_to_bytes\n"
32203226
"b'Python'"
32213227
msgstr ""
3228+
">>> encoded_str_to_bytes = 'Python'.encode()\n"
3229+
">>> type(encoded_str_to_bytes)\n"
3230+
"<class 'bytes'>\n"
3231+
">>> encoded_str_to_bytes\n"
3232+
"b'Python'"
32223233

32233234
#: ../../library/stdtypes.rst:1717 ../../library/stdtypes.rst:3042
32243235
msgid "Added support for keyword arguments."
@@ -3240,6 +3251,12 @@ msgid ""
32403251
"*end*, stop comparing at that position. Using *start* and *end* is "
32413252
"equivalent to ``str[start:end].endswith(suffix)``. For example::"
32423253
msgstr ""
3254+
"Retorna ``True`` se a string terminar com o *suffix* especificado, caso "
3255+
"contrário retorna ``False``. *suffix* também pode ser uma tupla de sufixos "
3256+
"para procurar. Com o parâmetro opcional *start*, começamos a testar a partir "
3257+
"daquela posição. Com o parâmetro opcional *end*, devemos parar de comparar "
3258+
"na posição especificada. Usar *start* e *end* equivale a ``str[start:end]."
3259+
"endswith(suffix)``. Por exemplo::"
32433260

32443261
#: ../../library/stdtypes.rst:1733
32453262
msgid ""
@@ -3252,10 +3269,18 @@ msgid ""
32523269
">>> 'Python is amazing'.endswith('is', 0, 9)\n"
32533270
"True"
32543271
msgstr ""
3272+
">>> 'Python'.endswith('on')\n"
3273+
"True\n"
3274+
">>> 'a tuple of suffixes'.endswith(('at', 'in'))\n"
3275+
"False\n"
3276+
">>> 'a tuple of suffixes'.endswith(('at', 'es'))\n"
3277+
"True\n"
3278+
">>> 'Python is amazing'.endswith('is', 0, 9)\n"
3279+
"True"
32553280

32563281
#: ../../library/stdtypes.rst:1742
32573282
msgid "See also :meth:`startswith` and :meth:`removesuffix`."
3258-
msgstr ""
3283+
msgstr "veja também :meth:`startswith` e :meth:`removesuffix`."
32593284

32603285
#: ../../library/stdtypes.rst:1747
32613286
msgid ""

potodo.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666

6767

68-
# library (64.53% done)
68+
# library (64.56% done)
6969

7070
- asyncio-dev.po 16 / 54 ( 29.0% translated).
7171
- asyncio-eventloop.po 308 / 409 ( 75.0% translated).
@@ -83,10 +83,9 @@
8383
- codecs.po 250 / 532 ( 46.0% translated).
8484
- concurrent.futures.po 14 / 100 ( 14.0% translated).
8585
- contextlib.po 55 / 172 ( 31.0% translated).
86-
- csv.po 117 / 118 ( 99.0% translated).
8786
- ctypes.po 104 / 530 ( 19.0% translated).
8887
- curses.po 66 / 486 ( 13.0% translated).
89-
- dataclasses.po 44 / 155 ( 28.0% translated).
88+
- dataclasses.po 49 / 155 ( 31.0% translated).
9089
- difflib.po 14 / 140 ( 10.0% translated).
9190
- dis.po 208 / 396 ( 52.0% translated).
9291
- doctest.po 99 / 376 ( 26.0% translated).
@@ -141,7 +140,6 @@
141140
- socket.po 53 / 368 ( 14.0% translated).
142141
- sqlite3.po 116 / 477 ( 24.0% translated).
143142
- ssl.po 61 / 544 ( 11.0% translated).
144-
- stdtypes.po 1382 / 1389 ( 99.0% translated).
145143
- string.po 218 / 220 ( 99.0% translated).
146144
- struct.po 96 / 195 ( 49.0% translated).
147145
- subprocess.po 149 / 327 ( 45.0% translated).
@@ -186,12 +184,11 @@
186184

187185

188186

189-
# using (99.92% done)
187+
# using (100.00% done)
190188

191-
- cmdline.po 248 / 249 ( 99.0% translated).
192189

193190

194-
# whatsnew (46.37% done)
191+
# whatsnew (46.40% done)
195192

196193
- 2.3.po 327 / 387 ( 84.0% translated).
197194
- 2.4.po 266 / 319 ( 83.0% translated).
@@ -205,8 +202,8 @@
205202
- 3.5.po 126 / 578 ( 21.0% translated).
206203
- 3.6.po 237 / 544 ( 43.0% translated).
207204
- 3.7.po 252 / 568 ( 44.0% translated).
208-
- changelog.po 2487 / 12384 ( 20.0% translated).
205+
- changelog.po 2494 / 12384 ( 20.0% translated).
209206

210207

211-
# TOTAL (61.57% done)
208+
# TOTAL (61.60% done)
212209

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "61.57%", "translated": 46845, "entries": 76086, "updated_at": "2025-06-13T23:31:06+00:00Z"}
1+
{"completion": "61.6%", "translated": 46866, "entries": 76086, "updated_at": "2025-06-15T23:30:02+00:00Z"}

using/cmdline.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-05-08 03:57+0000\n"
14+
"POT-Creation-Date: 2025-05-23 14:55+0000\n"
1515
"PO-Revision-Date: 2025-05-08 05:10+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -2134,6 +2134,9 @@ msgid ""
21342134
"variable can force the JIT to be disabled (``0``) or enabled (``1``) at "
21352135
"interpreter startup."
21362136
msgstr ""
2137+
"Em construções onde a compilação experimental just-in-time está disponível, "
2138+
"esta variável pode forçar o JIT a ser desabilitado (``0``) ou habilitado "
2139+
"(``1``) na inicialização do interpretador."
21372140

21382141
#: ../../using/cmdline.rst:1241
21392142
msgid "Debug-mode variables"

whatsnew/changelog.po

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ msgstr "Biblioteca"
112112
msgid ""
113113
":gh:`133967`: Do not normalize :mod:`locale` name 'C.UTF-8' to 'en_US.UTF-8'."
114114
msgstr ""
115+
":gh:`133967`: Não normaliza o nome :mod:`locale` 'C.UTF-8' para 'en_US."
116+
"UTF-8'."
115117

116118
#: ../NEWS:24
117119
msgid ""
@@ -124,26 +126,36 @@ msgid ""
124126
":gh:`135321`: Raise a correct exception for values greater than 0x7fffffff "
125127
"for the ``BINSTRING`` opcode in the C implementation of :mod:`pickle`."
126128
msgstr ""
129+
":gh:`135321`: Levanta uma exceção correta para valores maiores que "
130+
"0x7fffffff para o opcode ``BINSTRING`` na implementação C de :mod:`pickle`."
127131

128132
#: ../NEWS:30
129133
msgid ""
130134
":gh:`135276`: Backported bugfixes in zipfile.Path from zipp 3.23. Fixed ``."
131135
"name``, ``.stem`` and other basename-based properties on Windows when "
132136
"working with a zipfile on disk."
133137
msgstr ""
138+
":gh:`135276`: Correções de bugs retroportadas em zipfile.Path do zipp 3.23. "
139+
"Corrigidas ``.name``, ``.stem`` e outras propriedades baseadas em basename "
140+
"no Windows ao trabalhar com um arquivo zip em disco."
134141

135142
#: ../NEWS:34
136143
msgid ""
137144
":gh:`134151`: :mod:`email`: Fix :exc:`TypeError` in :func:`email.utils."
138145
"decode_params` when sorting :rfc:`2231` continuations that contain an "
139146
"unnumbered section."
140147
msgstr ""
148+
":gh:`134151`: :mod:`email`: Corrige :exc:`TypeError` em :func:`email.utils."
149+
"decode_params` ao classificar continuações :rfc:`2231` que contêm uma seção "
150+
"não numerada."
141151

142152
#: ../NEWS:38
143153
msgid ""
144154
":gh:`134152`: :mod:`email`: Fix parsing of email message ID with invalid "
145155
"domain."
146156
msgstr ""
157+
":gh:`134152`: :mod:`email`: Corrige análise de ID de mensagem de e-mail com "
158+
"domínio inválido."
147159

148160
#: ../NEWS:41
149161
msgid ""
@@ -761,6 +773,9 @@ msgid ""
761773
"REPL on Windows console. (If the terminal does not support bracketed paste, "
762774
"enabling it does nothing.)"
763775
msgstr ""
776+
":gh:`124096`: Ativa o modo de terminal virtual e habilita a colagem entre "
777+
"colchetes no REPL no console do Windows. (Se o terminal não oferecer suporte "
778+
"à colagem entre colchetes, habilitá-la não fará nada.)"
764779

765780
#: ../NEWS:286
766781
msgid ""
@@ -1038,6 +1053,7 @@ msgstr ""
10381053
msgid ""
10391054
":gh:`130804`: Fix support of unicode characters on Windows in the new REPL."
10401055
msgstr ""
1056+
":gh:`130804`: Corrige suporte a caracteres Unicode no Windows no novo REPL."
10411057

10421058
#: ../NEWS:392
10431059
msgid ""

0 commit comments

Comments
 (0)