Skip to content

Commit 1ea74a3

Browse files
Update translations
1 parent a47f203 commit 1ea74a3

60 files changed

Lines changed: 2577 additions & 851 deletions

Some content is hidden

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

c-api/arg.po

Lines changed: 15 additions & 3 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: 2024-08-31 11:30+0000\n"
14+
"POT-Creation-Date: 2024-10-25 14:54+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -814,7 +814,7 @@ msgstr ""
814814

815815
#: ../../c-api/arg.rst:316
816816
msgid "status = converter(object, address);"
817-
msgstr ""
817+
msgstr "status = converter(object, address);"
818818

819819
#: ../../c-api/arg.rst:318
820820
msgid ""
@@ -1148,6 +1148,18 @@ msgid ""
11481148
" return result;\n"
11491149
"}"
11501150
msgstr ""
1151+
"static PyObject *\n"
1152+
"weakref_ref(PyObject *self, PyObject *args)\n"
1153+
"{\n"
1154+
" PyObject *object;\n"
1155+
" PyObject *callback = NULL;\n"
1156+
" PyObject *result = NULL;\n"
1157+
"\n"
1158+
" if (PyArg_UnpackTuple(args, \"ref\", 1, 2, &object, &callback)) {\n"
1159+
" result = PyWeakref_NewRef(object, callback);\n"
1160+
" }\n"
1161+
" return result;\n"
1162+
"}"
11511163

11521164
#: ../../c-api/arg.rst:490
11531165
msgid ""
@@ -1159,7 +1171,7 @@ msgstr ""
11591171

11601172
#: ../../c-api/arg.rst:493
11611173
msgid "PyArg_ParseTuple(args, \"O|O:ref\", &object, &callback)"
1162-
msgstr ""
1174+
msgstr "PyArg_ParseTuple(args, \"O|O:ref\", &object, &callback)"
11631175

11641176
#: ../../c-api/arg.rst:498
11651177
msgid "Building values"

c-api/buffer.po

Lines changed: 13 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: 2024-09-20 14:57+0000\n"
14+
"POT-Creation-Date: 2024-10-25 14:54+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -838,6 +838,18 @@ msgid ""
838838
" return (void*)pointer;\n"
839839
"}"
840840
msgstr ""
841+
"void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,\n"
842+
" Py_ssize_t *suboffsets, Py_ssize_t *indices) {\n"
843+
" char *pointer = (char*)buf;\n"
844+
" int i;\n"
845+
" for (i = 0; i < ndim; i++) {\n"
846+
" pointer += strides[i] * indices[i];\n"
847+
" if (suboffsets[i] >=0 ) {\n"
848+
" pointer = *((char**)pointer) + suboffsets[i];\n"
849+
" }\n"
850+
" }\n"
851+
" return (void*)pointer;\n"
852+
"}"
841853

842854
#: ../../c-api/buffer.rst:438
843855
msgid "Buffer-related functions"

c-api/code.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.12\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2024-10-18 14:51+0000\n"
15+
"POT-Creation-Date: 2024-10-25 14:54+0000\n"
1616
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1717
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1818
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -317,8 +317,8 @@ msgid ""
317317
"will be printed as an unraisable exception using :c:func:"
318318
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
319319
msgstr ""
320-
"Se a função de retorno definir uma exceção, ela deverá retornar ``-1``; essa "
321-
"exceção será impressa como uma exceção não reprovável usando :c:func:"
320+
"Se a função de retorno definir uma exceção, ela deverá retornar ``-1``. Essa "
321+
"exceção será exibida como uma exceção não levantável usando :c:func:"
322322
"`PyErr_WriteUnraisable`. Caso contrário, deverá retornar ``0``."
323323

324324
#: ../../c-api/code.rst:196
@@ -333,7 +333,7 @@ msgstr ""
333333
"de retorno. Nesse caso, a função de retorno deve retornar ``0`` com a mesma "
334334
"exceção ainda definida. Isso significa que a função de retorno não pode "
335335
"chamar nenhuma outra API que possa definir uma exceção, a menos que salve e "
336-
"limpe o estado da exceção primeiro e o restaure antes de retornar."
336+
"limpe o estado da exceção primeiro e restaure a exceção antes de retornar."
337337

338338
#: ../../c-api/code.rst:206
339339
msgid "Extra information"

c-api/datetime.po

Lines changed: 38 additions & 3 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: 2024-09-06 15:04+0000\n"
14+
"POT-Creation-Date: 2024-10-25 14:54+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -37,55 +37,81 @@ msgid ""
3737
"structure into a static variable, :c:data:`!PyDateTimeAPI`, that is used by "
3838
"the following macros."
3939
msgstr ""
40+
"Vários objetos de data e hora são fornecidos pelo módulo :mod:`datetime`. "
41+
"Antes de usar qualquer uma dessas funções, o arquivo de cabeçalho :file:"
42+
"`datetime.h` deve ser incluído na sua fonte (observe que isso não é incluído "
43+
"por :file:`Python.h`) e a macro :c:macro:`!PyDateTime_IMPORT` deve ser "
44+
"chamada, geralmente como parte da função de inicialização do módulo. A macro "
45+
"coloca um ponteiro para uma estrutura C em uma variável estática, :c:data:`!"
46+
"PyDateTimeAPI`, usada pelas macros a seguir."
4047

4148
#: ../../c-api/datetime.rst:18
4249
msgid "This subtype of :c:type:`PyObject` represents a Python date object."
4350
msgstr ""
51+
"Esta é uma instância de :c:type:`PyObject` representando o objeto data do "
52+
"Python."
4453

4554
#: ../../c-api/datetime.rst:22
4655
msgid "This subtype of :c:type:`PyObject` represents a Python datetime object."
4756
msgstr ""
57+
"Esta é uma instância de :c:type:`PyObject` representando o objeto datetime "
58+
"do Python."
4859

4960
#: ../../c-api/datetime.rst:26
5061
msgid "This subtype of :c:type:`PyObject` represents a Python time object."
5162
msgstr ""
63+
"Esta é uma instância de :c:type:`PyObject` representando o objeto hora do "
64+
"Python."
5265

5366
#: ../../c-api/datetime.rst:30
5467
msgid ""
5568
"This subtype of :c:type:`PyObject` represents the difference between two "
5669
"datetime values."
5770
msgstr ""
71+
"Esta é uma instância de :c:type:`PyObject` representando a diferença entre "
72+
"dois valores de datetime."
5873

5974
#: ../../c-api/datetime.rst:34
6075
msgid ""
6176
"This instance of :c:type:`PyTypeObject` represents the Python date type; it "
6277
"is the same object as :class:`datetime.date` in the Python layer."
6378
msgstr ""
79+
"Esta instância de :c:type:`PyTypeObject` representa o tipo data do Python; é "
80+
"o mesmo objeto que :class:`datetime.date` na camada de Python."
6481

6582
#: ../../c-api/datetime.rst:39
6683
msgid ""
6784
"This instance of :c:type:`PyTypeObject` represents the Python datetime type; "
6885
"it is the same object as :class:`datetime.datetime` in the Python layer."
6986
msgstr ""
87+
"Esta instância de :c:type:`PyTypeObject` representa o tipo datetime do "
88+
"Python; é o mesmo objeto que :class:`datetime.datetime` na camada de Python."
7089

7190
#: ../../c-api/datetime.rst:44
7291
msgid ""
7392
"This instance of :c:type:`PyTypeObject` represents the Python time type; it "
7493
"is the same object as :class:`datetime.time` in the Python layer."
7594
msgstr ""
95+
"Esta instância de :c:type:`PyTypeObject` representa o tipo hora do Python; é "
96+
"o mesmo objeto que :class:`datetime.time` na camada de Python."
7697

7798
#: ../../c-api/datetime.rst:49
7899
msgid ""
79100
"This instance of :c:type:`PyTypeObject` represents Python type for the "
80101
"difference between two datetime values; it is the same object as :class:"
81102
"`datetime.timedelta` in the Python layer."
82103
msgstr ""
104+
"Esta instância de :c:type:`PyTypeObject` representa o tipo Python para a "
105+
"diferença entre dois valores de datetime; é o mesmo objeto que :class:"
106+
"`datetime.timedelta` na camada de Python."
83107

84108
#: ../../c-api/datetime.rst:55
85109
msgid ""
86110
"This instance of :c:type:`PyTypeObject` represents the Python time zone info "
87111
"type; it is the same object as :class:`datetime.tzinfo` in the Python layer."
88112
msgstr ""
113+
"Esta instância de :c:type:`PyTypeObject` representa o tipo fuso horário do "
114+
"Python; é o mesmo objeto que :class:`datetime.tzinfo` na camada de Python."
89115

90116
#: ../../c-api/datetime.rst:59
91117
msgid "Macro for access to the UTC singleton:"
@@ -109,36 +135,45 @@ msgid ""
109135
"of :c:data:`!PyDateTime_DateType`. *ob* must not be ``NULL``. This "
110136
"function always succeeds."
111137
msgstr ""
138+
"Retorna true se *ob* for do tipo :c:data:`PyDateTime_DateType` ou um subtipo "
139+
"de :c:data:`!PyDateTime_DateType`. *ob* não deve ser ``NULL``. Esta função "
140+
"sempre obtém sucesso."
112141

113142
#: ../../c-api/datetime.rst:80
114143
msgid ""
115144
"Return true if *ob* is of type :c:data:`PyDateTime_DateType`. *ob* must not "
116145
"be ``NULL``. This function always succeeds."
117146
msgstr ""
118147
"Retorna true se *ob* for do tipo :c:data:`PyDateTime_DateType`. *ob* não "
119-
"deve ser ``NULL``. Esta função sempre tem sucesso."
148+
"deve ser ``NULL``. Esta função sempre obtém sucesso."
120149

121150
#: ../../c-api/datetime.rst:86
122151
msgid ""
123152
"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType` or a "
124153
"subtype of :c:data:`!PyDateTime_DateTimeType`. *ob* must not be ``NULL``. "
125154
"This function always succeeds."
126155
msgstr ""
156+
"Retorna true se *ob* é do tipo :c:data:`PyDateTime_DateTimeType` ou um "
157+
"subtipo de :c:data:`!PyDateTime_DateTimeType`. *ob* não deve ser ``NULL``. "
158+
"Esta função sempre obtém sucesso."
127159

128160
#: ../../c-api/datetime.rst:93
129161
msgid ""
130162
"Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType`. *ob* must "
131163
"not be ``NULL``. This function always succeeds."
132164
msgstr ""
133165
"Retorna true se *ob* for do tipo :c:data:`PyDateTime_DateTimeType`. *ob* não "
134-
"deve ser ``NULL``. Esta função sempre tem sucesso."
166+
"deve ser ``NULL``. Esta função sempre obtém sucesso."
135167

136168
#: ../../c-api/datetime.rst:99
137169
msgid ""
138170
"Return true if *ob* is of type :c:data:`PyDateTime_TimeType` or a subtype "
139171
"of :c:data:`!PyDateTime_TimeType`. *ob* must not be ``NULL``. This "
140172
"function always succeeds."
141173
msgstr ""
174+
"Retorna true se *ob* é do tipo :c:data:`PyDateTime_TimeType` ou um subtipo "
175+
"de :c:data:`!PyDateTime_TimeType`. *ob* não deve ser ``NULL``. Esta função "
176+
"sempre obtém sucesso."
142177

143178
#: ../../c-api/datetime.rst:106
144179
msgid ""

c-api/dict.po

Lines changed: 32 additions & 4 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: 2024-09-20 14:57+0000\n"
14+
"POT-Creation-Date: 2024-10-25 14:54+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -275,6 +275,13 @@ msgid ""
275275
" ...\n"
276276
"}"
277277
msgstr ""
278+
"PyObject *key, *value;\n"
279+
"Py_ssize_t pos = 0;\n"
280+
"\n"
281+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
282+
" /* fazer algo de interessante com os valores... */\n"
283+
" ...\n"
284+
"}"
278285

279286
#: ../../c-api/dict.rst:189
280287
msgid ""
@@ -306,6 +313,23 @@ msgid ""
306313
" Py_DECREF(o);\n"
307314
"}"
308315
msgstr ""
316+
"PyObject *key, *value;\n"
317+
"Py_ssize_t pos = 0;\n"
318+
"\n"
319+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
320+
" long i = PyLong_AsLong(value);\n"
321+
" if (i == -1 && PyErr_Occurred()) {\n"
322+
" return -1;\n"
323+
" }\n"
324+
" PyObject *o = PyLong_FromLong(i + 1);\n"
325+
" if (o == NULL)\n"
326+
" return -1;\n"
327+
" if (PyDict_SetItem(self->dict, key, o) < 0) {\n"
328+
" Py_DECREF(o);\n"
329+
" return -1;\n"
330+
" }\n"
331+
" Py_DECREF(o);\n"
332+
"}"
309333

310334
#: ../../c-api/dict.rst:214
311335
msgid ""
@@ -360,6 +384,10 @@ msgid ""
360384
" if override or key not in a:\n"
361385
" a[key] = value"
362386
msgstr ""
387+
"def PyDict_MergeFromSeq2(a, seq2, override):\n"
388+
" for key, value in seq2:\n"
389+
" if override or key not in a:\n"
390+
" a[key] = value"
363391

364392
#: ../../c-api/dict.rst:247
365393
msgid ""
@@ -489,8 +517,8 @@ msgid ""
489517
"will be printed as an unraisable exception using :c:func:"
490518
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
491519
msgstr ""
492-
"Se a função de retorno definir uma exceção, ela deverá retornar ``-1``; essa "
493-
"exceção será impressa como uma exceção não reprovável usando :c:func:"
520+
"Se a função de retorno definir uma exceção, ela deverá retornar ``-1``. Essa "
521+
"exceção será exibida como uma exceção não levantável usando :c:func:"
494522
"`PyErr_WriteUnraisable`. Caso contrário, deverá retornar ``0``."
495523

496524
#: ../../c-api/dict.rst:320
@@ -505,7 +533,7 @@ msgstr ""
505533
"de retorno. Nesse caso, a função de retorno deve retornar ``0`` com a mesma "
506534
"exceção ainda definida. Isso significa que a função de retorno não pode "
507535
"chamar nenhuma outra API que possa definir uma exceção, a menos que salve e "
508-
"limpe o estado da exceção primeiro e o restaure antes de retornar."
536+
"limpe o estado da exceção primeiro e restaure a exceção antes de retornar."
509537

510538
#: ../../c-api/dict.rst:8
511539
msgid "object"

0 commit comments

Comments
 (0)