Skip to content

Commit f502c4e

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent b201fea commit f502c4e

File tree

10 files changed

+510
-33
lines changed

10 files changed

+510
-33
lines changed

deprecations/index.po

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Rafael Fontenelle <[email protected]>, 2024
87
# Adorilson Bezerra <[email protected]>, 2024
8+
# Rafael Fontenelle <[email protected]>, 2024
99
#
1010
#, fuzzy
1111
msgid ""
@@ -14,7 +14,7 @@ msgstr ""
1414
"Report-Msgid-Bugs-To: \n"
1515
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1616
"PO-Revision-Date: 2024-07-29 04:07+0000\n"
17-
"Last-Translator: Adorilson Bezerra <adorilson@gmail.com>, 2024\n"
17+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1818
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
1919
"teams/5390/pt_BR/)\n"
2020
"MIME-Version: 1.0\n"
@@ -327,6 +327,11 @@ msgid ""
327327
"func:`locale.getencoding` and :func:`locale.getlocale` instead. (Contributed "
328328
"by Hugo van Kemenade in :gh:`111187`.)"
329329
msgstr ""
330+
":class:`locale`: :func:`locale.getdefaultlocale` foi descontinuada no Python "
331+
"3.11 e originalmente planejada para remoção no Python 3.13 (:gh:`90817`), "
332+
"mas a remoção foi adiada para o Python 3.15. Use :func:`locale.setlocale`, :"
333+
"func:`locale.getencoding` e :func:`locale.getlocale` em vez disso. "
334+
"(Contribuição de Hugo van Kemenade em :gh:`111187`.)"
330335

331336
#: ../../deprecations/pending-removal-in-3.15.rst:16
332337
msgid ""

deprecations/pending-removal-in-3.15.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ msgid ""
4848
"func:`locale.getencoding` and :func:`locale.getlocale` instead. (Contributed "
4949
"by Hugo van Kemenade in :gh:`111187`.)"
5050
msgstr ""
51+
":class:`locale`: :func:`locale.getdefaultlocale` foi descontinuada no Python "
52+
"3.11 e originalmente planejada para remoção no Python 3.13 (:gh:`90817`), "
53+
"mas a remoção foi adiada para o Python 3.15. Use :func:`locale.setlocale`, :"
54+
"func:`locale.getencoding` e :func:`locale.getlocale` em vez disso. "
55+
"(Contribuição de Hugo van Kemenade em :gh:`111187`.)"
5156

5257
#: ../../deprecations/pending-removal-in-3.15.rst:16
5358
msgid ""

glossary.po

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# Vinicius Gubiani Ferreira <[email protected]>, 2021
1313
# yyyyyyyan <[email protected]>, 2021
1414
# David Macedo, 2022
15-
# Adorilson Bezerra <[email protected]>, 2024
1615
# Rafael Fontenelle <[email protected]>, 2024
16+
# Adorilson Bezerra <[email protected]>, 2024
1717
#
1818
#, fuzzy
1919
msgid ""
@@ -22,7 +22,7 @@ msgstr ""
2222
"Report-Msgid-Bugs-To: \n"
2323
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
2424
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
25-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
25+
"Last-Translator: Adorilson Bezerra <adorilson@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"
@@ -2316,12 +2316,12 @@ msgstr ""
23162316
":dfn:`somente-nomeado`: especifica um argumento que pode ser passado para a "
23172317
"função somente por nome. Parâmetros somente-nomeados podem ser definidos com "
23182318
"um simples parâmetro var-posicional ou um ``*`` antes deles na lista de "
2319-
"parâmetros na definição da função, por exemplo *kw_only1* and *kw_only2* a "
2320-
"seguir::"
2319+
"parâmetros na definição da função, por exemplo *somente_nom1* and "
2320+
"*somente_nom2* a seguir::"
23212321

23222322
#: ../../glossary.rst:946
23232323
msgid "def func(arg, *, kw_only1, kw_only2): ..."
2324-
msgstr ""
2324+
msgstr "def func(arg, *, somente_nom1, somente_nom2): ..."
23252325

23262326
#: ../../glossary.rst:948
23272327
msgid ""
@@ -2338,7 +2338,7 @@ msgstr ""
23382338

23392339
#: ../../glossary.rst:954
23402340
msgid "def func(*args, **kwargs): ..."
2341-
msgstr ""
2341+
msgstr "def func(*args, **kwargs): ..."
23422342

23432343
#: ../../glossary.rst:956
23442344
msgid ""
@@ -2585,28 +2585,33 @@ msgid ""
25852585
"languages don't have this type of construct, so people unfamiliar with "
25862586
"Python sometimes use a numerical counter instead::"
25872587
msgstr ""
2588-
"Uma ideia ou um pedaço de código que segue de perto os idiomas mais comuns "
2589-
"da linguagem Python, ao invés de implementar códigos usando conceitos comuns "
2590-
"a outros idiomas. Por exemplo, um idioma comum em Python é fazer um loop "
2591-
"sobre todos os elementos de uma iterável usando a instrução :keyword:`for`. "
2592-
"Muitas outras linguagens não têm esse tipo de construção, então as pessoas "
2593-
"que não estão familiarizadas com o Python usam um contador numérico::"
2588+
"Uma ideia ou um pedaço de código que segue de perto as formas de escritas "
2589+
"mais comuns da linguagem Python, ao invés de implementar códigos usando "
2590+
"conceitos comuns a outras linguagens. Por exemplo, um formato comum em "
2591+
"Python é fazer um laço sobre todos os elementos de uma iterável usando a "
2592+
"instrução :keyword:`for`. Muitas outras linguagens não têm esse tipo de "
2593+
"construção, então as pessoas que não estão familiarizadas com o Python usam "
2594+
"um contador numérico::"
25942595

25952596
#: ../../glossary.rst:1057
25962597
msgid ""
25972598
"for i in range(len(food)):\n"
25982599
" print(food[i])"
25992600
msgstr ""
2601+
"for i in range(len(comida)):\n"
2602+
" print(comida[i])"
26002603

26012604
#: ../../glossary.rst:1060
26022605
msgid "As opposed to the cleaner, Pythonic method::"
2603-
msgstr "Ao contrário do método limpo, ou então, Pythônico::"
2606+
msgstr "Ao contrário do método mais limpo, Pythônico::"
26042607

26052608
#: ../../glossary.rst:1062
26062609
msgid ""
26072610
"for piece in food:\n"
26082611
" print(piece)"
26092612
msgstr ""
2613+
"for parte in comida:\n"
2614+
" print(parte)"
26102615

26112616
#: ../../glossary.rst:1064
26122617
msgid "qualified name"
@@ -2639,6 +2644,17 @@ msgid ""
26392644
">>> C.D.meth.__qualname__\n"
26402645
"'C.D.meth'"
26412646
msgstr ""
2647+
">>> class C:\n"
2648+
"... class D:\n"
2649+
"... def metodo(self):\n"
2650+
"... pass\n"
2651+
"...\n"
2652+
">>> C.__qualname__\n"
2653+
"'C'\n"
2654+
">>> C.D.__qualname__\n"
2655+
"'C.D'\n"
2656+
">>> C.D.metodo.__qualname__\n"
2657+
"'C.D.metodo'"
26422658

26432659
#: ../../glossary.rst:1083
26442660
msgid ""
@@ -2656,6 +2672,9 @@ msgid ""
26562672
">>> email.mime.text.__name__\n"
26572673
"'email.mime.text'"
26582674
msgstr ""
2675+
">>> import email.mime.text\n"
2676+
">>> email.mime.text.__name__\n"
2677+
"'email.mime.text'"
26592678

26602679
#: ../../glossary.rst:1090
26612680
msgid "reference count"
@@ -3045,6 +3064,9 @@ msgid ""
30453064
" colors: list[tuple[int, int, int]]) -> list[tuple[int, int, int]]:\n"
30463065
" pass"
30473066
msgstr ""
3067+
"def remove_tons_de_cinza(\n"
3068+
" cores: list[tuple[int, int, int]]) -> list[tuple[int, int, int]]:\n"
3069+
" pass"
30483070

30493071
#: ../../glossary.rst:1249
30503072
msgid "could be made more readable like this::"
@@ -3057,6 +3079,10 @@ msgid ""
30573079
"def remove_gray_shades(colors: list[Color]) -> list[Color]:\n"
30583080
" pass"
30593081
msgstr ""
3082+
"Cor = tuple[int, int, int]\n"
3083+
"\n"
3084+
"def remove_tons_de_cinza(cores: list[Cor]) -> list[Cor]:\n"
3085+
" pass"
30603086

30613087
#: ../../glossary.rst:1256 ../../glossary.rst:1270
30623088
msgid "See :mod:`typing` and :pep:`484`, which describe this functionality."
@@ -3131,6 +3157,8 @@ msgid ""
31313157
"class C:\n"
31323158
" field: 'annotation'"
31333159
msgstr ""
3160+
"class C:\n"
3161+
" campo: 'anotação'"
31343162

31353163
#: ../../glossary.rst:1287
31363164
msgid ""
@@ -3143,7 +3171,7 @@ msgstr ""
31433171

31443172
#: ../../glossary.rst:1291
31453173
msgid "count: int = 0"
3146-
msgstr ""
3174+
msgstr "contagem: int = 0"
31473175

31483176
#: ../../glossary.rst:1293
31493177
msgid "Variable annotation syntax is explained in section :ref:`annassign`."

reference/simple_stmts.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ msgstr "Por exemplo, a instrução a seguir cria um apelido de tipo::"
16531653

16541654
#: ../../reference/simple_stmts.rst:1050
16551655
msgid "type Point = tuple[float, float]"
1656-
msgstr ""
1656+
msgstr "type Point = tuple[float, float]"
16571657

16581658
#: ../../reference/simple_stmts.rst:1052
16591659
msgid "This code is roughly equivalent to::"

tutorial/stdlib2.po

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ msgid ""
5555
">>> reprlib.repr(set('supercalifragilisticexpialidocious'))\n"
5656
"\"{'a', 'c', 'd', 'e', 'f', 'g', ...}\""
5757
msgstr ""
58+
">>> import reprlib\n"
59+
">>> reprlib.repr(set('supercalifragilisticexpialidocious'))\n"
60+
"\"{'a', 'c', 'd', 'e', 'f', 'g', ...}\""
5861

5962
#: ../../tutorial/stdlib2.rst:23
6063
msgid ""
@@ -82,6 +85,17 @@ msgid ""
8285
" [['magenta', 'yellow'],\n"
8386
" 'blue']]]"
8487
msgstr ""
88+
">>> import pprint\n"
89+
">>> t = [[[['preto', 'ciano'], 'branco', ['verde', 'vermelho']], "
90+
"[['magenta',\n"
91+
"... 'amarelo'], 'azul']]]\n"
92+
">>> \n"
93+
">>> pprint.pprint(t, width=30)\n"
94+
"[[[['preto', 'ciano'],\n"
95+
" 'branco',\n"
96+
" ['verde', 'vermelho']],\n"
97+
" [['magenta', 'amarelo'],\n"
98+
" 'azul']]]"
8599

86100
#: ../../tutorial/stdlib2.rst:39
87101
msgid ""
@@ -105,6 +119,16 @@ msgid ""
105119
"instead of one big string with newlines\n"
106120
"to separate the wrapped lines."
107121
msgstr ""
122+
">>> import textwrap\n"
123+
">>> doc = \"\"\"O método wrap() é como fill(), exceto que ele retorna\n"
124+
"... uma lista de strings em vez de uma string grande com quebras\n"
125+
"... de linha para separar as linhas quebradas.\"\"\"\n"
126+
"...\n"
127+
">>> print(textwrap.fill(doc, width=40))\n"
128+
"O método wrap() é como fill(), exceto\n"
129+
"que ele retorna uma lista de strings em\n"
130+
"vez de uma string grande com quebras de\n"
131+
"linha para separar as linhas quebradas."
108132

109133
#: ../../tutorial/stdlib2.rst:53
110134
msgid ""
@@ -129,6 +153,16 @@ msgid ""
129153
"... conv['frac_digits'], x), grouping=True)\n"
130154
"'$1,234,567.80'"
131155
msgstr ""
156+
">>> import locale\n"
157+
">>> locale.setlocale(locale.LC_ALL, 'English_United States.1252')\n"
158+
"'English_United States.1252'\n"
159+
">>> conv = locale.localeconv() # obtém mapeamento de convenções\n"
160+
">>> x = 1234567.8\n"
161+
">>> locale.format_string(\"%d\", x, grouping=True)\n"
162+
"'1,234,567'\n"
163+
">>> locale.format_string(\"%s%.*f\", (conv['currency_symbol'],\n"
164+
"... conv['frac_digits'], x), grouping=True)\n"
165+
"'$1,234,567.80'"
132166

133167
#: ../../tutorial/stdlib2.rst:72
134168
msgid "Templating"
@@ -168,6 +202,10 @@ msgid ""
168202
">>> t.substitute(village='Nottingham', cause='the ditch fund')\n"
169203
"'Nottinghamfolk send $10 to the ditch fund.'"
170204
msgstr ""
205+
">>> from string import Template\n"
206+
">>> t = Template('O povo de ${vila} envia $$10 para $causa.')\n"
207+
">>> t.substitute(vila='Nottingham', causa='o fundo de recuperação')\n"
208+
"'O povo de Nottingham envia $10 para o fundo de recuperação.'"
171209

172210
#: ../../tutorial/stdlib2.rst:88
173211
msgid ""
@@ -195,6 +233,14 @@ msgid ""
195233
">>> t.safe_substitute(d)\n"
196234
"'Return the unladen swallow to $owner.'"
197235
msgstr ""
236+
">>> t = Template('Devolva $item para $dono.')\n"
237+
">>> d = dict(item='a andorinha descarregada')\n"
238+
">>> t.substitute(d)\n"
239+
"Traceback (most recent call last):\n"
240+
" ...\n"
241+
"KeyError: 'dono'\n"
242+
">>> t.safe_substitute(d)\n"
243+
"'Devolva a andorinha descarregada para $dono.'"
198244

199245
#: ../../tutorial/stdlib2.rst:103
200246
msgid ""

0 commit comments

Comments
 (0)