Skip to content

Commit 349da97

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent d3600d4 commit 349da97

File tree

310 files changed

+64254
-635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+64254
-635
lines changed

c-api/arg.po

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ msgid ""
2121
msgstr ""
2222
"Project-Id-Version: Python 3.13\n"
2323
"Report-Msgid-Bugs-To: \n"
24-
"POT-Creation-Date: 2024-07-29 04:06+0000\n"
24+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
2525
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
2626
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
2727
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -820,6 +820,10 @@ msgstr ""
820820
"endereço da variável C (de tipo arbitrário), convertendo para :c:expr:"
821821
"`void*`. A função *converter* por sua vez, é chamada da seguinte maneira::"
822822

823+
#: ../../c-api/arg.rst:316
824+
msgid "status = converter(object, address);"
825+
msgstr ""
826+
823827
#: ../../c-api/arg.rst:318
824828
msgid ""
825829
"where *object* is the Python object to be converted and *address* is the :c:"
@@ -1114,6 +1118,20 @@ msgstr ""
11141118
msgid "Example::"
11151119
msgstr "Exemplo::"
11161120

1121+
#: ../../c-api/arg.rst:467
1122+
msgid ""
1123+
"// Function using METH_O calling convention\n"
1124+
"static PyObject*\n"
1125+
"my_function(PyObject *module, PyObject *arg)\n"
1126+
"{\n"
1127+
" int value;\n"
1128+
" if (!PyArg_Parse(arg, \"i:my_function\", &value)) {\n"
1129+
" return NULL;\n"
1130+
" }\n"
1131+
" // ... use value ...\n"
1132+
"}"
1133+
msgstr ""
1134+
11171135
#: ../../c-api/arg.rst:481
11181136
msgid ""
11191137
"A simpler form of parameter retrieval which does not use a format string to "
@@ -1155,6 +1173,22 @@ msgstr ""
11551173
"Este é um exemplo do uso dessa função, tirado das fontes do módulo auxiliar "
11561174
"para referências fracas :mod:`!_weakref`::"
11571175

1176+
#: ../../c-api/arg.rst:499
1177+
msgid ""
1178+
"static PyObject *\n"
1179+
"weakref_ref(PyObject *self, PyObject *args)\n"
1180+
"{\n"
1181+
" PyObject *object;\n"
1182+
" PyObject *callback = NULL;\n"
1183+
" PyObject *result = NULL;\n"
1184+
"\n"
1185+
" if (PyArg_UnpackTuple(args, \"ref\", 1, 2, &object, &callback)) {\n"
1186+
" result = PyWeakref_NewRef(object, callback);\n"
1187+
" }\n"
1188+
" return result;\n"
1189+
"}"
1190+
msgstr ""
1191+
11581192
#: ../../c-api/arg.rst:512
11591193
msgid ""
11601194
"The call to :c:func:`PyArg_UnpackTuple` in this example is entirely "
@@ -1163,6 +1197,10 @@ msgstr ""
11631197
"A chamada à :c:func:`PyArg_UnpackTuple` neste exemplo é inteiramente "
11641198
"equivalente à chamada para :c:func:`PyArg_ParseTuple`::"
11651199

1200+
#: ../../c-api/arg.rst:515
1201+
msgid "PyArg_ParseTuple(args, \"O|O:ref\", &object, &callback)"
1202+
msgstr ""
1203+
11661204
#: ../../c-api/arg.rst:519
11671205
msgid ""
11681206
"The value to be inserted, if any, before :c:expr:`char * const *` in the "

c-api/buffer.po

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgid ""
2424
msgstr ""
2525
"Project-Id-Version: Python 3.13\n"
2626
"Report-Msgid-Bugs-To: \n"
27-
"POT-Creation-Date: 2024-07-05 14:16+0000\n"
27+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
2828
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
2929
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
3030
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -729,6 +729,13 @@ msgstr ""
729729
"vetor C n-dimensional padrão. Caso contrário, o consumidor deve acessar um "
730730
"vetor n-dimensional como a seguir:"
731731

732+
#: ../../c-api/buffer.rst:368
733+
msgid ""
734+
"ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * "
735+
"strides[n-1];\n"
736+
"item = *((typeof(item) *)ptr);"
737+
msgstr ""
738+
732739
#: ../../c-api/buffer.rst:374
733740
msgid ""
734741
"As noted above, :c:member:`~Py_buffer.buf` can point to any location within "
@@ -739,6 +746,35 @@ msgstr ""
739746
"localização dentro do bloco de memória em si. Um exportador pode verificar a "
740747
"validade de um buffer com essa função:"
741748

749+
#: ../../c-api/buffer.rst:378
750+
msgid ""
751+
"def verify_structure(memlen, itemsize, ndim, shape, strides, offset):\n"
752+
" \"\"\"Verify that the parameters represent a valid array within\n"
753+
" the bounds of the allocated memory:\n"
754+
" char *mem: start of the physical memory block\n"
755+
" memlen: length of the physical memory block\n"
756+
" offset: (char *)buf - mem\n"
757+
" \"\"\"\n"
758+
" if offset % itemsize:\n"
759+
" return False\n"
760+
" if offset < 0 or offset+itemsize > memlen:\n"
761+
" return False\n"
762+
" if any(v % itemsize for v in strides):\n"
763+
" return False\n"
764+
"\n"
765+
" if ndim <= 0:\n"
766+
" return ndim == 0 and not shape and not strides\n"
767+
" if 0 in shape:\n"
768+
" return True\n"
769+
"\n"
770+
" imin = sum(strides[j]*(shape[j]-1) for j in range(ndim)\n"
771+
" if strides[j] <= 0)\n"
772+
" imax = sum(strides[j]*(shape[j]-1) for j in range(ndim)\n"
773+
" if strides[j] > 0)\n"
774+
"\n"
775+
" return 0 <= offset+imin and offset+imax+itemsize <= memlen"
776+
msgstr ""
777+
742778
#: ../../c-api/buffer.rst:408
743779
msgid "PIL-style: shape, strides and suboffsets"
744780
msgstr "Estilo-PIL: forma, avanços e suboffsets"
@@ -772,6 +808,22 @@ msgstr ""
772808
"apontada por um índice N-dimensional onde existem ambos passos e "
773809
"subconjuntos não-``NULL``::"
774810

811+
#: ../../c-api/buffer.rst:423
812+
msgid ""
813+
"void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,\n"
814+
" Py_ssize_t *suboffsets, Py_ssize_t *indices) {\n"
815+
" char *pointer = (char*)buf;\n"
816+
" int i;\n"
817+
" for (i = 0; i < ndim; i++) {\n"
818+
" pointer += strides[i] * indices[i];\n"
819+
" if (suboffsets[i] >=0 ) {\n"
820+
" pointer = *((char**)pointer) + suboffsets[i];\n"
821+
" }\n"
822+
" }\n"
823+
" return (void*)pointer;\n"
824+
"}"
825+
msgstr ""
826+
775827
#: ../../c-api/buffer.rst:438
776828
msgid "Buffer-related functions"
777829
msgstr "Funções relacionadas ao Buffer"

c-api/call.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ msgid ""
1818
msgstr ""
1919
"Project-Id-Version: Python 3.13\n"
2020
"Report-Msgid-Bugs-To: \n"
21-
"POT-Creation-Date: 2024-05-17 14:15+0000\n"
21+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
2222
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
2323
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
2424
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -51,6 +51,11 @@ msgstr ""
5151
"Instâncias de classe que definem :c:member:`~PyTypeObject.tp_call` são "
5252
"chamáveis. A assinatura do slot é::"
5353

54+
#: ../../c-api/call.rst:17
55+
msgid ""
56+
"PyObject *tp_call(PyObject *callable, PyObject *args, PyObject *kwargs);"
57+
msgstr ""
58+
5459
#: ../../c-api/call.rst:19
5560
msgid ""
5661
"A call is made using a tuple for the positional arguments and a dict for the "
@@ -286,6 +291,10 @@ msgstr ""
286291
"Dado um argumento de chamada de vetor *nargsf*, retorna o número real de "
287292
"argumentos. Atualmente equivalente a::"
288293

294+
#: ../../c-api/call.rst:140
295+
msgid "(Py_ssize_t)(nargsf & ~PY_VECTORCALL_ARGUMENTS_OFFSET)"
296+
msgstr ""
297+
289298
#: ../../c-api/call.rst:142
290299
msgid ""
291300
"However, the function ``PyVectorcall_NARGS`` should be used to allow for "

c-api/capsule.po

Lines changed: 5 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: 2024-05-17 14:15+0000\n"
14+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1515
"PO-Revision-Date: 2021-06-28 00:47+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -56,6 +56,10 @@ msgid "The type of a destructor callback for a capsule. Defined as::"
5656
msgstr ""
5757
"O tipo de um retorno de chamada destruidor para uma cápsula. Definido como::"
5858

59+
#: ../../c-api/capsule.rst:29
60+
msgid "typedef void (*PyCapsule_Destructor)(PyObject *);"
61+
msgstr ""
62+
5963
#: ../../c-api/capsule.rst:31
6064
msgid ""
6165
"See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor "

c-api/complex.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.13\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2024-08-09 16:36+0000\n"
16+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1818
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1919
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -71,6 +71,14 @@ msgstr ""
7171
msgid "The structure is defined as::"
7272
msgstr "A estrutura é definida como::"
7373

74+
#: ../../c-api/complex.rst:35
75+
msgid ""
76+
"typedef struct {\n"
77+
" double real;\n"
78+
" double imag;\n"
79+
"} Py_complex;"
80+
msgstr ""
81+
7482
#: ../../c-api/complex.rst:43
7583
msgid ""
7684
"Return the sum of two complex numbers, using the C :c:type:`Py_complex` "

c-api/contextvars.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.13\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2024-05-24 14:15+0000\n"
18+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
2020
"Last-Translator: Leandro Braga <[email protected]>, 2021\n"
2121
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -41,6 +41,15 @@ msgstr ""
4141
"foram **alteradas** para usar ponteiros :c:type:`PyObject` em vez de :c:type:"
4242
"`PyContext`, :c:type:`PyContextVar` e :c:type:`PyContextToken`. Por exemplo::"
4343

44+
#: ../../c-api/contextvars.rst:20
45+
msgid ""
46+
"// in 3.7.0:\n"
47+
"PyContext *PyContext_New(void);\n"
48+
"\n"
49+
"// in 3.7.1+:\n"
50+
"PyObject *PyContext_New(void);"
51+
msgstr ""
52+
4453
#: ../../c-api/contextvars.rst:26
4554
msgid "See :issue:`34762` for more details."
4655
msgstr "Veja :issue:`34762` para mais detalhes."

c-api/dict.po

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.13\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2024-06-28 14:15+0000\n"
17+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1919
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
2020
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -392,6 +392,17 @@ msgstr ""
392392
msgid "For example::"
393393
msgstr "Por exemplo::"
394394

395+
#: ../../c-api/dict.rst:263
396+
msgid ""
397+
"PyObject *key, *value;\n"
398+
"Py_ssize_t pos = 0;\n"
399+
"\n"
400+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
401+
" /* do something interesting with the values... */\n"
402+
" ...\n"
403+
"}"
404+
msgstr ""
405+
395406
#: ../../c-api/dict.rst:271
396407
msgid ""
397408
"The dictionary *p* should not be mutated during iteration. It is safe to "
@@ -402,6 +413,27 @@ msgstr ""
402413
"modificar os valores das chaves à medida que você itera no dicionário, mas "
403414
"apenas enquanto o conjunto de chaves não mudar. Por exemplo::"
404415

416+
#: ../../c-api/dict.rst:275
417+
msgid ""
418+
"PyObject *key, *value;\n"
419+
"Py_ssize_t pos = 0;\n"
420+
"\n"
421+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
422+
" long i = PyLong_AsLong(value);\n"
423+
" if (i == -1 && PyErr_Occurred()) {\n"
424+
" return -1;\n"
425+
" }\n"
426+
" PyObject *o = PyLong_FromLong(i + 1);\n"
427+
" if (o == NULL)\n"
428+
" return -1;\n"
429+
" if (PyDict_SetItem(self->dict, key, o) < 0) {\n"
430+
" Py_DECREF(o);\n"
431+
" return -1;\n"
432+
" }\n"
433+
" Py_DECREF(o);\n"
434+
"}"
435+
msgstr ""
436+
405437
#: ../../c-api/dict.rst:293
406438
msgid ""
407439
"The function is not thread-safe in the :term:`free-threaded <free "
@@ -413,6 +445,15 @@ msgstr ""
413445
"`Py_BEGIN_CRITICAL_SECTION` para travar o dicionário enquanto itera sobre "
414446
"ele::"
415447

448+
#: ../../c-api/dict.rst:298
449+
msgid ""
450+
"Py_BEGIN_CRITICAL_SECTION(self->dict);\n"
451+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
452+
" ...\n"
453+
"}\n"
454+
"Py_END_CRITICAL_SECTION();"
455+
msgstr ""
456+
416457
#: ../../c-api/dict.rst:307
417458
msgid ""
418459
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
@@ -459,6 +500,14 @@ msgstr ""
459500
"vence. Retorne ``0`` em caso de sucesso ou ``-1`` se uma exceção foi "
460501
"levantada. Python equivalente (exceto para o valor de retorno)::"
461502

503+
#: ../../c-api/dict.rst:333
504+
msgid ""
505+
"def PyDict_MergeFromSeq2(a, seq2, override):\n"
506+
" for key, value in seq2:\n"
507+
" if override or key not in a:\n"
508+
" a[key] = value"
509+
msgstr ""
510+
462511
#: ../../c-api/dict.rst:340
463512
msgid ""
464513
"Register *callback* as a dictionary watcher. Return a non-negative integer "

0 commit comments

Comments
 (0)