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

Skip to content

Commit ab6b462

Browse files
Update translations
1 parent 12385c0 commit ab6b462

File tree

12 files changed

+170
-15
lines changed

12 files changed

+170
-15
lines changed

library/ensurepip.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,19 @@ msgid ""
150150
"of the currently active virtual environment (if any) or the default root for "
151151
"the current Python installation."
152152
msgstr ""
153+
"Instala ``pip`` em relação ao diretório raiz fornecido, em vez da raiz do "
154+
"ambiente virtual atualmente ativo (se houver) ou a raiz padrão da instalação "
155+
"atual do Python."
153156

154157
#: ../../library/ensurepip.rst:74
155158
msgid ""
156159
"Installs ``pip`` into the user site packages directory rather than globally "
157160
"for the current Python installation (this option is not permitted inside an "
158161
"active virtual environment)."
159162
msgstr ""
163+
"Instala ``pip`` no diretório de pacotes do site do usuário em vez de "
164+
"globalmente para a instalação atual do Python (essa opção não é permitida "
165+
"dentro de um ambiente virtual ativo)."
160166

161167
#: ../../library/ensurepip.rst:78
162168
msgid ""
@@ -174,12 +180,16 @@ msgid ""
174180
"If an alternate installation is requested, the ``pipX`` script will *not* be "
175181
"installed."
176182
msgstr ""
183+
"Se uma instalação alternativa for solicitada, o script ``pipX`` *não* será "
184+
"instalado."
177185

178186
#: ../../library/ensurepip.rst:90
179187
msgid ""
180188
"If a \"default pip\" installation is requested, the ``pip`` script will be "
181189
"installed in addition to the two regular scripts."
182190
msgstr ""
191+
"Se uma instalação \"pip padrão\" for solicitada, o script ``pip`` será "
192+
"instalado junto com os dois scripts comuns."
183193

184194
#: ../../library/ensurepip.rst:93
185195
msgid ""

library/filecmp.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,13 @@ msgid ""
312312
">>> dcmp = dircmp('dir1', 'dir2')\n"
313313
">>> print_diff_files(dcmp)"
314314
msgstr ""
315+
">>> from filecmp import dircmp\n"
316+
">>> def print_diff_files(dcmp):\n"
317+
"... for name in dcmp.diff_files:\n"
318+
"... print(\"diff_file %s found in %s and %s\" % (name, dcmp.left,\n"
319+
"... dcmp.right))\n"
320+
"... for sub_dcmp in dcmp.subdirs.values():\n"
321+
"... print_diff_files(sub_dcmp)\n"
322+
"...\n"
323+
">>> dcmp = dircmp('dir1', 'dir2')\n"
324+
">>> print_diff_files(dcmp)"

library/functions.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,10 @@ msgid ""
18911891
">>> s\n"
18921892
"\"Monty Python's Flying Circus\""
18931893
msgstr ""
1894+
">>> s = input('--> ')\n"
1895+
"--> Monty Python's Flying Circus\n"
1896+
">>> s\n"
1897+
"\"Monty Python's Flying Circus\""
18941898

18951899
#: ../../library/functions.rst:957
18961900
msgid ""

library/secrets.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ msgid ""
118118
">>> token_bytes(16)\n"
119119
"b'\\xebr\\x17D*t\\xae\\xd4\\xe3S\\xb6\\xe2\\xebP1\\x8b'"
120120
msgstr ""
121+
">>> token_bytes(16)\n"
122+
"b'\\xebr\\x17D*t\\xae\\xd4\\xe3S\\xb6\\xe2\\xebP1\\x8b'"
121123

122124
#: ../../library/secrets.rst:79
123125
msgid ""
@@ -134,6 +136,8 @@ msgid ""
134136
">>> token_hex(16)\n"
135137
"'f9bf78b9a18ce6d46a0cd2b0b86df9da'"
136138
msgstr ""
139+
">>> token_hex(16)\n"
140+
"'f9bf78b9a18ce6d46a0cd2b0b86df9da'"
137141

138142
#: ../../library/secrets.rst:90
139143
msgid ""
@@ -152,6 +156,8 @@ msgid ""
152156
">>> token_urlsafe(16)\n"
153157
"'Drmhze6EPcv0fN_81Bj-nA'"
154158
msgstr ""
159+
">>> token_urlsafe(16)\n"
160+
"'Drmhze6EPcv0fN_81Bj-nA'"
155161

156162
#: ../../library/secrets.rst:102
157163
msgid "How many bytes should tokens use?"

library/stdtypes.po

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3440,6 +3440,8 @@ msgid ""
34403440
"Return true if all characters in the string are printable, false if it "
34413441
"contains at least one non-printable character."
34423442
msgstr ""
3443+
"Retorna verdadeiro se todos os caracteres na string forem imprimíveis, falso "
3444+
"se contiver pelo menos um caractere não imprimível."
34433445

34443446
#: ../../library/stdtypes.rst:1882
34453447
msgid ""
@@ -3448,6 +3450,10 @@ msgid ""
34483450
"will hex-escape the character. It has no bearing on the handling of strings "
34493451
"written to :data:`sys.stdout` or :data:`sys.stderr`."
34503452
msgstr ""
3453+
"Aqui, \"imprimíveis\" significa que o caractere é adequado para :func:`repr` "
3454+
"usar em sua saída; \"não imprimível\" significa que :func:`repr` em tipos "
3455+
"embutidos fará o escape hexadecimal do caractere. Não tem relação com o "
3456+
"tratamento de strings escritas em :data:`sys.stdout` ou :data:`sys.stderr`."
34513457

34523458
#: ../../library/stdtypes.rst:1887
34533459
msgid ""
@@ -3457,6 +3463,11 @@ msgid ""
34573463
"0x20. Nonprintable characters are those in group Separator or Other (Z or "
34583464
"C), except the ASCII space."
34593465
msgstr ""
3466+
"Os caracteres imprimíveis são aqueles que no banco de dados de caracteres "
3467+
"Unicode (veja :mod:`unicodedata`) têm uma categoria geral no grupo Letra, "
3468+
"Marca, Número, Pontuação ou Símbolo (L, M, N, P ou S); mais o espaço ASCII "
3469+
"0x20. Caracteres não imprimíveis são aqueles no grupo Separador ou Outro (Z "
3470+
"ou C), exceto o espaço ASCII."
34603471

34613472
#: ../../library/stdtypes.rst:1896
34623473
msgid ""

library/string.po

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,33 @@ msgid ""
14871487
" 10 A 12 1010\n"
14881488
" 11 B 13 1011"
14891489
msgstr ""
1490+
">>> for align, text in zip('<^>', ['left', 'center', 'right']):\n"
1491+
"... '{0:{fill}{align}16}'.format(text, fill=align, align=align)\n"
1492+
"...\n"
1493+
"'left<<<<<<<<<<<<'\n"
1494+
"'^^^^^center^^^^^'\n"
1495+
"'>>>>>>>>>>>right'\n"
1496+
">>>\n"
1497+
">>> octets = [192, 168, 0, 1]\n"
1498+
">>> '{:02X}{:02X}{:02X}{:02X}'.format(*octets)\n"
1499+
"'C0A80001'\n"
1500+
">>> int(_, 16)\n"
1501+
"3232235521\n"
1502+
">>>\n"
1503+
">>> width = 5\n"
1504+
">>> for num in range(5,12):\n"
1505+
"... for base in 'dXob':\n"
1506+
"... print('{0:{width}{base}}'.format(num, base=base, width=width), "
1507+
"end=' ')\n"
1508+
"... print()\n"
1509+
"...\n"
1510+
" 5 5 5 101\n"
1511+
" 6 6 6 110\n"
1512+
" 7 7 7 111\n"
1513+
" 8 8 10 1000\n"
1514+
" 9 9 11 1001\n"
1515+
" 10 A 12 1010\n"
1516+
" 11 B 13 1011"
14901517

14911518
#: ../../library/string.rst:760
14921519
msgid "Template strings"

potodo.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777

7878

79-
# library (60.77% done)
79+
# library (60.80% done)
8080

8181
- 2to3.po 121 / 132 ( 91.0% translated).
8282
- argparse.po 368 / 370 ( 99.0% translated).
@@ -128,16 +128,15 @@
128128
- email.message.po 6 / 110 ( 5.0% translated).
129129
- email.parser.po 2 / 48 ( 4.0% translated).
130130
- email.policy.po 11 / 107 ( 10.0% translated).
131-
- ensurepip.po 35 / 39 ( 89.0% translated).
132131
- enum.po 71 / 231 ( 30.0% translated).
133132
- errno.po 115 / 160 ( 71.0% translated).
134133
- exceptions.po 188 / 189 ( 99.0% translated).
135134
- faulthandler.po 4 / 43 ( 9.0% translated).
136135
- fcntl.po 17 / 48 ( 35.0% translated).
137-
- filecmp.po 39 / 41 ( 95.0% translated).
136+
- filecmp.po 40 / 41 ( 97.0% translated).
138137
- fractions.po 32 / 33 ( 96.0% translated).
139138
- ftplib.po 11 / 99 ( 11.0% translated).
140-
- functions.po 490 / 497 ( 98.0% translated).
139+
- functions.po 491 / 497 ( 98.0% translated).
141140
- functools.po 20 / 115 ( 17.0% translated).
142141
- gzip.po 22 / 65 ( 33.0% translated).
143142
- hashlib.po 13 / 168 ( 7.0% translated).
@@ -189,7 +188,6 @@
189188
- resource.po 40 / 110 ( 36.0% translated).
190189
- runpy.po 31 / 40 ( 77.0% translated).
191190
- sched.po 4 / 25 ( 16.0% translated).
192-
- secrets.po 34 / 37 ( 91.0% translated).
193191
- select.po 78 / 206 ( 37.0% translated).
194192
- selectors.po 13 / 58 ( 22.0% translated).
195193
- shelve.po 11 / 40 ( 27.0% translated).
@@ -202,8 +200,7 @@
202200
- sqlite3.po 114 / 468 ( 24.0% translated).
203201
- ssl.po 39 / 520 ( 7.0% translated).
204202
- statistics.po 161 / 241 ( 66.0% translated).
205-
- stdtypes.po 1323 / 1332 ( 99.0% translated).
206-
- string.po 215 / 216 ( 99.0% translated).
203+
- stdtypes.po 1326 / 1332 ( 99.0% translated).
207204
- struct.po 96 / 194 ( 49.0% translated).
208205
- subprocess.po 149 / 321 ( 46.0% translated).
209206
- symtable.po 4 / 50 ( 8.0% translated).
@@ -257,11 +254,9 @@
257254
- datamodel.po 852 / 856 ( 99.0% translated).
258255

259256

260-
# tutorial (99.38% done)
257+
# tutorial (99.61% done)
261258

262259
- interpreter.po 31 / 33 ( 93.0% translated).
263-
- introduction.po 118 / 119 ( 99.0% translated).
264-
- modules.po 115 / 117 ( 98.0% translated).
265260
- stdlib.po 65 / 67 ( 97.0% translated).
266261
- stdlib2.po 64 / 65 ( 98.0% translated).
267262

@@ -273,24 +268,22 @@
273268
- windows.po 374 / 378 ( 98.0% translated).
274269

275270

276-
# whatsnew (74.66% done)
271+
# whatsnew (74.68% done)
277272

278273
- 2.3.po 327 / 387 ( 84.0% translated).
279274
- 2.4.po 266 / 319 ( 83.0% translated).
280275
- 2.5.po 384 / 452 ( 84.0% translated).
281276
- 2.6.po 537 / 626 ( 85.0% translated).
282-
- 2.7.po 497 / 498 ( 99.0% translated).
283277
- 3.0.po 192 / 212 ( 90.0% translated).
284278
- 3.1.po 114 / 132 ( 86.0% translated).
285279
- 3.10.po 529 / 550 ( 96.0% translated).
286280
- 3.12.po 831 / 832 ( 99.0% translated).
287281
- 3.2.po 65 / 576 ( 11.0% translated).
288282
- 3.3.po 137 / 682 ( 20.0% translated).
289-
- 3.4.po 517 / 518 ( 99.0% translated).
290283
- 3.5.po 125 / 578 ( 21.0% translated).
291284
- 3.6.po 237 / 544 ( 43.0% translated).
292285
- 3.7.po 252 / 568 ( 44.0% translated).
293286

294287

295-
# TOTAL (66.43% done)
288+
# TOTAL (66.46% done)
296289

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "66.43%", "translated": 41099, "entries": 61864, "updated_at": "2025-02-21T23:28:25+00:00Z"}
1+
{"completion": "66.46%", "translated": 41117, "entries": 61864, "updated_at": "2025-02-22T23:27:48+00:00Z"}

tutorial/introduction.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ msgid ""
436436
"adding a ``\\`` at the end of the line. In the following example, the "
437437
"initial newline is not included::"
438438
msgstr ""
439+
"As strings literais podem abranger várias linhas. Uma maneira é usar as "
440+
"aspas triplas: ``\"\"\"...\"\"\"`` ou ``'''...'''``. Caracteres de fim de "
441+
"linha são incluídos automaticamente na string, mas é possível evitar isso "
442+
"adicionando uma ``\\`` no final. No exemplo a seguir, a nova linha no início "
443+
"não é incluída::"
439444

440445
#: ../../tutorial/introduction.rst:203
441446
msgid ""

tutorial/modules.po

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,38 @@ msgid ""
716716
"'version_info',\n"
717717
" 'warnoptions']"
718718
msgstr ""
719+
">>> import fibo, sys\n"
720+
">>> dir(fibo)\n"
721+
"['__name__', 'fib', 'fib2']\n"
722+
">>> dir(sys)\n"
723+
"['__breakpointhook__', '__displayhook__', '__doc__', '__excepthook__',\n"
724+
" '__interactivehook__', '__loader__', '__name__', '__package__', "
725+
"'__spec__',\n"
726+
" '__stderr__', '__stdin__', '__stdout__', '__unraisablehook__',\n"
727+
" '_clear_type_cache', '_current_frames', '_debugmallocstats', '_framework',\n"
728+
" '_getframe', '_git', '_home', '_xoptions', 'abiflags', 'addaudithook',\n"
729+
" 'api_version', 'argv', 'audit', 'base_exec_prefix', 'base_prefix',\n"
730+
" 'breakpointhook', 'builtin_module_names', 'byteorder', 'call_tracing',\n"
731+
" 'callstats', 'copyright', 'displayhook', 'dont_write_bytecode', "
732+
"'exc_info',\n"
733+
" 'excepthook', 'exec_prefix', 'executable', 'exit', 'flags', 'float_info',\n"
734+
" 'float_repr_style', 'get_asyncgen_hooks', "
735+
"'get_coroutine_origin_tracking_depth',\n"
736+
" 'getallocatedblocks', 'getdefaultencoding', 'getdlopenflags',\n"
737+
" 'getfilesystemencodeerrors', 'getfilesystemencoding', 'getprofile',\n"
738+
" 'getrecursionlimit', 'getrefcount', 'getsizeof', 'getswitchinterval',\n"
739+
" 'gettrace', 'hash_info', 'hexversion', 'implementation', 'int_info',\n"
740+
" 'intern', 'is_finalizing', 'last_traceback', 'last_type', 'last_value',\n"
741+
" 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks',\n"
742+
" 'path_importer_cache', 'platform', 'prefix', 'ps1', 'ps2', "
743+
"'pycache_prefix',\n"
744+
" 'set_asyncgen_hooks', 'set_coroutine_origin_tracking_depth', "
745+
"'setdlopenflags',\n"
746+
" 'setprofile', 'setrecursionlimit', 'setswitchinterval', 'settrace', "
747+
"'stderr',\n"
748+
" 'stdin', 'stdout', 'thread_info', 'unraisablehook', 'version', "
749+
"'version_info',\n"
750+
" 'warnoptions']"
719751

720752
#: ../../tutorial/modules.rst:338
721753
msgid ""
@@ -786,6 +818,38 @@ msgid ""
786818
" 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars',\n"
787819
" 'zip']"
788820
msgstr ""
821+
">>> import builtins\n"
822+
">>> dir(builtins)\n"
823+
"['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException',\n"
824+
" 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning',\n"
825+
" 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError',\n"
826+
" 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning',\n"
827+
" 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False',\n"
828+
" 'FileExistsError', 'FileNotFoundError', 'FloatingPointError',\n"
829+
" 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError',\n"
830+
" 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError',\n"
831+
" 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError',\n"
832+
" 'MemoryError', 'NameError', 'None', 'NotADirectoryError', "
833+
"'NotImplemented',\n"
834+
" 'NotImplementedError', 'OSError', 'OverflowError',\n"
835+
" 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError',\n"
836+
" 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning',\n"
837+
" 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError',\n"
838+
" 'SystemExit', 'TabError', 'TimeoutError', 'True', 'TypeError',\n"
839+
" 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError',\n"
840+
" 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning',\n"
841+
" 'ValueError', 'Warning', 'ZeroDivisionError', '_', '__build_class__',\n"
842+
" '__debug__', '__doc__', '__import__', '__name__', '__package__', 'abs',\n"
843+
" 'all', 'any', 'ascii', 'bin', 'bool', 'bytearray', 'bytes', 'callable',\n"
844+
" 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits',\n"
845+
" 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit',\n"
846+
" 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr',\n"
847+
" 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass',\n"
848+
" 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview',\n"
849+
" 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property',\n"
850+
" 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice',\n"
851+
" 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars',\n"
852+
" 'zip']"
789853

790854
#: ../../tutorial/modules.rst:389
791855
msgid "Packages"

whatsnew/2.7.po

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,6 +2189,19 @@ msgid ""
21892189
">>> c['z']\n"
21902190
"0"
21912191
msgstr ""
2192+
">>> from collections import Counter\n"
2193+
">>> c = Counter()\n"
2194+
">>> for letter in 'here is a sample of english text':\n"
2195+
"... c[letter] += 1\n"
2196+
"...\n"
2197+
">>> c\n"
2198+
"Counter({' ': 6, 'e': 5, 's': 3, 'a': 2, 'i': 2, 'h': 2,\n"
2199+
"'l': 2, 't': 2, 'g': 1, 'f': 1, 'm': 1, 'o': 1, 'n': 1,\n"
2200+
"'p': 1, 'r': 1, 'x': 1})\n"
2201+
">>> c['e']\n"
2202+
"5\n"
2203+
">>> c['z']\n"
2204+
"0"
21922205

21932206
#: ../../whatsnew/2.7.rst:1081
21942207
msgid ""

whatsnew/3.4.po

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,18 @@ msgid ""
15001500
" ' 6 BINARY_ADD',\n"
15011501
" ' 7 RETURN_VALUE']"
15021502
msgstr ""
1503+
">>> bytecode = dis.Bytecode(lambda x: x + 1, current_offset=3)\n"
1504+
">>> for instr in bytecode:\n"
1505+
"... print('{} ({})'.format(instr.opname, instr.opcode))\n"
1506+
"LOAD_FAST (124)\n"
1507+
"LOAD_CONST (100)\n"
1508+
"BINARY_ADD (23)\n"
1509+
"RETURN_VALUE (83)\n"
1510+
">>> bytecode.dis().splitlines()\n"
1511+
"[' 1 0 LOAD_FAST 0 (x)',\n"
1512+
" ' --> 3 LOAD_CONST 1 (1)',\n"
1513+
" ' 6 BINARY_ADD',\n"
1514+
" ' 7 RETURN_VALUE']"
15031515

15041516
#: ../../whatsnew/3.4.rst:761
15051517
msgid ""

0 commit comments

Comments
 (0)