Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b79d1f

Browse files
Update translations
1 parent 93b4806 commit 5b79d1f

23 files changed

+379
-58
lines changed

faq/programming.po

Lines changed: 22 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-02-21 14:51+0000\n"
14+
"POT-Creation-Date: 2025-03-14 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -1978,6 +1978,27 @@ msgid ""
19781978
">>> a.tounicode()\n"
19791979
"'yello, world'"
19801980
msgstr ""
1981+
">>> import io\n"
1982+
">>> s = \"Hello, world\"\n"
1983+
">>> sio = io.StringIO(s)\n"
1984+
">>> sio.getvalue()\n"
1985+
"'Hello, world'\n"
1986+
">>> sio.seek(7)\n"
1987+
"7\n"
1988+
">>> sio.write(\"there!\")\n"
1989+
"6\n"
1990+
">>> sio.getvalue()\n"
1991+
"'Hello, there!'\n"
1992+
"\n"
1993+
">>> import array\n"
1994+
">>> a = array.array('u', s)\n"
1995+
">>> print(a)\n"
1996+
"array('u', 'Hello, world')\n"
1997+
">>> a[0] = 'y'\n"
1998+
">>> print(a)\n"
1999+
"array('u', 'yello, world')\n"
2000+
">>> a.tounicode()\n"
2001+
"'yello, world'"
19812002

19822003
#: ../../faq/programming.rst:938
19832004
msgid "How do I use strings to call functions/methods?"

howto/argparse.po

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Rafael Fontenelle <[email protected]>, 2024
7+
# Rafael Fontenelle <[email protected]>, 2025
88
#
99
#, fuzzy
1010
msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-01-10 14:49+0000\n"
14+
"POT-Creation-Date: 2025-03-14 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
16-
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
16+
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
1818
"teams/5390/pt_BR/)\n"
1919
"Language: pt_BR\n"
@@ -911,6 +911,20 @@ msgid ""
911911
" -v {0,1,2}, --verbosity {0,1,2}\n"
912912
" increase output verbosity"
913913
msgstr ""
914+
"$ python prog.py 4 -v 3\n"
915+
"usage: prog.py [-h] [-v {0,1,2}] square\n"
916+
"prog.py: error: argument -v/--verbosity: invalid choice: 3 (choose from 0, "
917+
"1, 2)\n"
918+
"$ python prog.py 4 -h\n"
919+
"usage: prog.py [-h] [-v {0,1,2}] square\n"
920+
"\n"
921+
"positional arguments:\n"
922+
" square display a square of a given number\n"
923+
"\n"
924+
"options:\n"
925+
" -h, --help show this help message and exit\n"
926+
" -v {0,1,2}, --verbosity {0,1,2}\n"
927+
" increase output verbosity"
914928

915929
#: ../../howto/argparse.rst:450
916930
msgid ""

library/argparse.po

Lines changed: 9 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-03-07 14:53+0000\n"
14+
"POT-Creation-Date: 2025-03-14 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -3524,6 +3524,10 @@ msgid ""
35243524
"which allows multiple strings to refer to the same subparser. This example, "
35253525
"like ``svn``, aliases ``co`` as a shorthand for ``checkout``::"
35263526
msgstr ""
3527+
"Além disso, ``add_parser`` oferece suporte a um argumento ``aliases`` "
3528+
"adicional, que permite que múltiplas strings se refiram ao mesmo "
3529+
"subanalisador sintático. Este exemplo, como ``svn``, alias ``co`` como uma "
3530+
"abreviação para ``checkout``::"
35273531

35283532
#: ../../library/argparse.rst:1659
35293533
msgid ""
@@ -3548,6 +3552,10 @@ msgid ""
35483552
"so that each subparser knows which Python function it should execute. For "
35493553
"example::"
35503554
msgstr ""
3555+
"Uma maneira particularmente eficaz de lidar com subcomandos é combinar o uso "
3556+
"do método :meth:`add_subparsers` com chamadas para :meth:`set_defaults` para "
3557+
"que cada subanalisador sintático saiba qual função Python deve executar. Por "
3558+
"exemplo::"
35513559

35523560
#: ../../library/argparse.rst:1671
35533561
msgid ""

library/calendar.po

Lines changed: 5 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-01-10 14:49+0000\n"
14+
"POT-Creation-Date: 2025-03-14 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -824,6 +824,9 @@ msgid ""
824824
" [-w WIDTH] [-l LINES] [-s SPACING] [-m MONTHS] [-c CSS]\n"
825825
" [year] [month]"
826826
msgstr ""
827+
"python -m calendar [-h] [-L LOCALE] [-e ENCODING] [-t {text,html}]\n"
828+
" [-w WIDTH] [-l LINES] [-s SPACING] [-m MONTHS] [-c CSS]\n"
829+
" [year] [month]"
827830

828831
#: ../../library/calendar.rst:587
829832
msgid "For example, to print a calendar for the year 2000:"
@@ -937,7 +940,7 @@ msgstr "Exibe o calendário no terminal como texto ou como um documento HTML."
937940
msgid ""
938941
"The year to print the calendar for. Must be a number between 1 and 9999. "
939942
"Defaults to the current year."
940-
msgstr ""
943+
msgstr "O ano para exibir o calendário. Deve ser um número entre 1 e 9999."
941944

942945
#: ../../library/calendar.rst:667
943946
msgid ""

library/collections.po

Lines changed: 69 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-03-07 14:53+0000\n"
14+
"POT-Creation-Date: 2025-03-14 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -735,6 +735,17 @@ msgid ""
735735
"c.most_common()[:-n-1:-1] # n least common elements\n"
736736
"+c # remove zero and negative counts"
737737
msgstr ""
738+
"c.total() # total de todas as contagens\n"
739+
"c.clear() # redefine todas as contagens\n"
740+
"list(c) # lista elementos únicos\n"
741+
"set(c) # converte para um conjunto\n"
742+
"dict(c) # converte para um dicionário comum\n"
743+
"c.items() # converte para uma lista de pares (elem, "
744+
"cnt)\n"
745+
"Counter(dict(list_of_pairs)) # converte de uma lista de pares (elem, "
746+
"cnt)\n"
747+
"c.most_common()[:-n-1:-1] # n últimos elementos comuns\n"
748+
"+c # remove zero e contagens negativas"
738749

739750
#: ../../library/collections.rst:366
740751
msgid ""
@@ -2321,6 +2332,29 @@ msgid ""
23212332
" self.cache.popitem(0)\n"
23222333
" return result"
23232334
msgstr ""
2335+
"from collections import OrderedDict\n"
2336+
"from time import time\n"
2337+
"\n"
2338+
"class TimeBoundedLRU:\n"
2339+
" \"LRU Cache that invalidates and refreshes old entries.\"\n"
2340+
"\n"
2341+
" def __init__(self, func, maxsize=128, maxage=30):\n"
2342+
" self.cache = OrderedDict() # { args : (timestamp, result)}\n"
2343+
" self.func = func\n"
2344+
" self.maxsize = maxsize\n"
2345+
" self.maxage = maxage\n"
2346+
"\n"
2347+
" def __call__(self, *args):\n"
2348+
" if args in self.cache:\n"
2349+
" self.cache.move_to_end(args)\n"
2350+
" timestamp, result = self.cache[args]\n"
2351+
" if time() - timestamp <= self.maxage:\n"
2352+
" return result\n"
2353+
" result = self.func(*args)\n"
2354+
" self.cache[args] = time(), result\n"
2355+
" if len(self.cache) > self.maxsize:\n"
2356+
" self.cache.popitem(0)\n"
2357+
" return result"
23242358

23252359
#: ../../library/collections.rst:1235
23262360
msgid ""
@@ -2359,6 +2393,40 @@ msgid ""
23592393
" self.cache.popitem(0)\n"
23602394
" return result"
23612395
msgstr ""
2396+
"class MultiHitLRUCache:\n"
2397+
" \"\"\" LRU cache that defers caching a result until\n"
2398+
" it has been requested multiple times.\n"
2399+
"\n"
2400+
" To avoid flushing the LRU cache with one-time requests,\n"
2401+
" we don't cache until a request has been made more than once.\n"
2402+
"\n"
2403+
" \"\"\"\n"
2404+
"\n"
2405+
" def __init__(self, func, maxsize=128, maxrequests=4096, cache_after=1):\n"
2406+
" self.requests = OrderedDict() # { uncached_key : request_count }\n"
2407+
" self.cache = OrderedDict() # { cached_key : function_result }\n"
2408+
" self.func = func\n"
2409+
" self.maxrequests = maxrequests # max number of uncached requests\n"
2410+
" self.maxsize = maxsize # max number of stored return "
2411+
"values\n"
2412+
" self.cache_after = cache_after\n"
2413+
"\n"
2414+
" def __call__(self, *args):\n"
2415+
" if args in self.cache:\n"
2416+
" self.cache.move_to_end(args)\n"
2417+
" return self.cache[args]\n"
2418+
" result = self.func(*args)\n"
2419+
" self.requests[args] = self.requests.get(args, 0) + 1\n"
2420+
" if self.requests[args] <= self.cache_after:\n"
2421+
" self.requests.move_to_end(args)\n"
2422+
" if len(self.requests) > self.maxrequests:\n"
2423+
" self.requests.popitem(0)\n"
2424+
" else:\n"
2425+
" self.requests.pop(args, None)\n"
2426+
" self.cache[args] = result\n"
2427+
" if len(self.cache) > self.maxsize:\n"
2428+
" self.cache.popitem(0)\n"
2429+
" return result"
23622430

23632431
#: ../../library/collections.rst:1304
23642432
msgid ":class:`UserDict` objects"

library/compileall.po

Lines changed: 3 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-02-03 18:16+0000\n"
14+
"POT-Creation-Date: 2025-03-14 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -176,6 +176,8 @@ msgid ""
176176
"Use *N* workers to compile the files within the given directory. If ``0`` is "
177177
"used, then the result of :func:`os.cpu_count` will be used."
178178
msgstr ""
179+
"Usa *N* workers para compilar os arquivos dentro do diretório fornecido. Se "
180+
"``0`` for usado, então o resultado de :func:`os.cpu_count` será usado."
179181

180182
#: ../../library/compileall.rst:98
181183
msgid ""

library/csv.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.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-01-03 14:53+0000\n"
14+
"POT-Creation-Date: 2025-03-14 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -652,6 +652,9 @@ msgid ""
652652
"not affect behaviour of :class:`reader` objects. This bug is fixed in Python "
653653
"3.13."
654654
msgstr ""
655+
"Devido a um bug, as constantes :data:`QUOTE_NOTNULL` e :data:`QUOTE_STRINGS` "
656+
"não afetam o comportamento dos objetos :class:`reader`. Esse bug foi "
657+
"corrigido no Python 3.13."
655658

656659
#: ../../library/csv.rst:374
657660
msgid "The :mod:`csv` module defines the following exception:"

library/datetime.po

Lines changed: 8 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-02-28 14:56+0000\n"
14+
"POT-Creation-Date: 2025-03-14 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -2301,6 +2301,9 @@ msgid ""
23012301
"datetime` objects are never equal to :class:`date` objects that are not "
23022302
"also :class:`!datetime` instances, even if they represent the same date."
23032303
msgstr ""
2304+
"Objetos :class:`!datetime` ingênuos e conscientes nunca são iguais. Objetos :"
2305+
"class:`!datetime` nunca são iguais a objetos :class:`date` que também não "
2306+
"são instâncias de :class:`!datetime`, mesmo que representem a mesma data."
23042307

23052308
#: ../../library/datetime.rst:1220
23062309
msgid ""
@@ -2335,6 +2338,10 @@ msgid ""
23352338
"as a :class:`!datetime` object and a :class:`!date` object that is not also "
23362339
"a :class:`!datetime` instance, raises :exc:`TypeError`."
23372340
msgstr ""
2341+
"A comparação de ordens entre objetos :class:`.datetime` ingênuos e "
2342+
"conscientes, bem como um objeto :class:`!datetime` e um objeto :class:`!"
2343+
"date` que também não é uma instância :class:`!datetime`, gera :exc:"
2344+
"`TypeError`."
23382345

23392346
#: ../../library/datetime.rst:1237
23402347
msgid ""

library/exceptions.po

Lines changed: 68 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-03-07 14:53+0000\n"
14+
"POT-Creation-Date: 2025-03-14 14:53+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -1764,6 +1764,73 @@ msgid ""
17641764
" ├── UnicodeWarning\n"
17651765
" └── UserWarning\n"
17661766
msgstr ""
1767+
"BaseException\n"
1768+
" ├── BaseExceptionGroup\n"
1769+
" ├── GeneratorExit\n"
1770+
" ├── KeyboardInterrupt\n"
1771+
" ├── SystemExit\n"
1772+
" └── Exception\n"
1773+
" ├── ArithmeticError\n"
1774+
" │ ├── FloatingPointError\n"
1775+
" │ ├── OverflowError\n"
1776+
" │ └── ZeroDivisionError\n"
1777+
" ├── AssertionError\n"
1778+
" ├── AttributeError\n"
1779+
" ├── BufferError\n"
1780+
" ├── EOFError\n"
1781+
" ├── ExceptionGroup [BaseExceptionGroup]\n"
1782+
" ├── ImportError\n"
1783+
" │ └── ModuleNotFoundError\n"
1784+
" ├── LookupError\n"
1785+
" │ ├── IndexError\n"
1786+
" │ └── KeyError\n"
1787+
" ├── MemoryError\n"
1788+
" ├── NameError\n"
1789+
" │ └── UnboundLocalError\n"
1790+
" ├── OSError\n"
1791+
" │ ├── BlockingIOError\n"
1792+
" │ ├── ChildProcessError\n"
1793+
" │ ├── ConnectionError\n"
1794+
" │ │ ├── BrokenPipeError\n"
1795+
" │ │ ├── ConnectionAbortedError\n"
1796+
" │ │ ├── ConnectionRefusedError\n"
1797+
" │ │ └── ConnectionResetError\n"
1798+
" │ ├── FileExistsError\n"
1799+
" │ ├── FileNotFoundError\n"
1800+
" │ ├── InterruptedError\n"
1801+
" │ ├── IsADirectoryError\n"
1802+
" │ ├── NotADirectoryError\n"
1803+
" │ ├── PermissionError\n"
1804+
" │ ├── ProcessLookupError\n"
1805+
" │ └── TimeoutError\n"
1806+
" ├── ReferenceError\n"
1807+
" ├── RuntimeError\n"
1808+
" │ ├── NotImplementedError\n"
1809+
" │ └── RecursionError\n"
1810+
" ├── StopAsyncIteration\n"
1811+
" ├── StopIteration\n"
1812+
" ├── SyntaxError\n"
1813+
" │ └── IndentationError\n"
1814+
" │ └── TabError\n"
1815+
" ├── SystemError\n"
1816+
" ├── TypeError\n"
1817+
" ├── ValueError\n"
1818+
" │ └── UnicodeError\n"
1819+
" │ ├── UnicodeDecodeError\n"
1820+
" │ ├── UnicodeEncodeError\n"
1821+
" │ └── UnicodeTranslateError\n"
1822+
" └── Warning\n"
1823+
" ├── BytesWarning\n"
1824+
" ├── DeprecationWarning\n"
1825+
" ├── EncodingWarning\n"
1826+
" ├── FutureWarning\n"
1827+
" ├── ImportWarning\n"
1828+
" ├── PendingDeprecationWarning\n"
1829+
" ├── ResourceWarning\n"
1830+
" ├── RuntimeWarning\n"
1831+
" ├── SyntaxWarning\n"
1832+
" ├── UnicodeWarning\n"
1833+
" └── UserWarning\n"
17671834

17681835
#: ../../library/exceptions.rst:6 ../../library/exceptions.rst:17
17691836
#: ../../library/exceptions.rst:196

0 commit comments

Comments
 (0)