Skip to content

Commit

Permalink
Update translations from Transifex
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 15, 2023
1 parent ea139bb commit d0e0d3b
Show file tree
Hide file tree
Showing 55 changed files with 5,499 additions and 5,503 deletions.
612 changes: 306 additions & 306 deletions c-api/exceptions.po

Large diffs are not rendered by default.

82 changes: 40 additions & 42 deletions c-api/function.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-08 14:14+0000\n"
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
Expand Down Expand Up @@ -66,150 +66,148 @@ msgstr ""

#: ../../c-api/function.rst:37
msgid ""
"The function's docstring and name are retrieved from the code object. "
"*__module__* is retrieved from *globals*. The argument defaults, annotations "
"and closure are set to ``NULL``. *__qualname__* is set to the same value as "
"the code object's :attr:`~codeobject.co_qualname` field."
"The function's docstring and name are retrieved from the code object. :attr:"
"`~function.__module__` is retrieved from *globals*. The argument defaults, "
"annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
"is set to the same value as the code object's :attr:`~codeobject."
"co_qualname` field."
msgstr ""

#: ../../c-api/function.rst:45
#: ../../c-api/function.rst:46
msgid ""
"As :c:func:`PyFunction_New`, but also allows setting the function object's "
"``__qualname__`` attribute. *qualname* should be a unicode object or "
"``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same "
"value as the code object's :attr:`~codeobject.co_qualname` field."
"As :c:func:`PyFunction_New`, but also allows setting the function object's :"
"attr:`~function.__qualname__` attribute. *qualname* should be a unicode "
"object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute is set "
"to the same value as the code object's :attr:`~codeobject.co_qualname` field."
msgstr ""

#: ../../c-api/function.rst:55
#: ../../c-api/function.rst:57
msgid "Return the code object associated with the function object *op*."
msgstr "Retorna o objeto de código associado ao objeto função *op*."

#: ../../c-api/function.rst:60
#: ../../c-api/function.rst:62
msgid "Return the globals dictionary associated with the function object *op*."
msgstr "Retorna o dicionário global associado ao objeto função *op*."

#: ../../c-api/function.rst:65
#: ../../c-api/function.rst:67
msgid ""
"Return a :term:`borrowed reference` to the *__module__* attribute of the "
"function object *op*. It can be *NULL*."
"Return a :term:`borrowed reference` to the :attr:`~function.__module__` "
"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
"*NULL*."
msgstr ""
"Retorna uma :term:`referência emprestada <borrowed reference>` para o "
"atributo *__module__* do objeto função *op*. Pode ser *NULL*."

#: ../../c-api/function.rst:68
#: ../../c-api/function.rst:71
msgid ""
"This is normally a string containing the module name, but can be set to any "
"other object by Python code."
"This is normally a :class:`string <str>` containing the module name, but can "
"be set to any other object by Python code."
msgstr ""
"Esta é normalmente uma string contendo o nome do módulo, mas pode ser "
"configurada para qualquer outro objeto pelo código Python."

#: ../../c-api/function.rst:74
#: ../../c-api/function.rst:77
msgid ""
"Return the argument default values of the function object *op*. This can be "
"a tuple of arguments or ``NULL``."
msgstr ""
"Retorna o argumento os valores padrão do objeto função *op*. Isso pode ser "
"uma tupla de argumentos ou ``NULL``."

#: ../../c-api/function.rst:80
#: ../../c-api/function.rst:83
msgid ""
"Set the argument default values for the function object *op*. *defaults* "
"must be ``Py_None`` or a tuple."
msgstr ""
"Define o argumento valores padrão para o objeto função *op*. *defaults* deve "
"ser ``Py_None`` ou uma tupla."

#: ../../c-api/function.rst:83 ../../c-api/function.rst:106
#: ../../c-api/function.rst:120
#: ../../c-api/function.rst:86 ../../c-api/function.rst:109
#: ../../c-api/function.rst:123
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
msgstr "Levanta :exc:`SystemError` e retorna ``-1`` em falha."

#: ../../c-api/function.rst:88
#: ../../c-api/function.rst:91
msgid "Set the vectorcall field of a given function object *func*."
msgstr ""

#: ../../c-api/function.rst:90
#: ../../c-api/function.rst:93
msgid ""
"Warning: extensions using this API must preserve the behavior of the "
"unaltered (default) vectorcall function!"
msgstr ""

#: ../../c-api/function.rst:97
#: ../../c-api/function.rst:100
msgid ""
"Return the closure associated with the function object *op*. This can be "
"``NULL`` or a tuple of cell objects."
msgstr ""
"Retorna o fechamento associado ao objeto função *op*. Isso pode ser ``NULL`` "
"ou uma tupla de objetos de célula."

#: ../../c-api/function.rst:103
#: ../../c-api/function.rst:106
msgid ""
"Set the closure associated with the function object *op*. *closure* must be "
"``Py_None`` or a tuple of cell objects."
msgstr ""
"Define o fechamento associado ao objeto função *op*. *closure* deve ser "
"``Py_None`` ou uma tupla de objetos de célula."

#: ../../c-api/function.rst:111
#: ../../c-api/function.rst:114
msgid ""
"Return the annotations of the function object *op*. This can be a mutable "
"dictionary or ``NULL``."
msgstr ""
"Retorna as anotações do objeto função *op*. Este pode ser um dicionário "
"mutável ou ``NULL``."

#: ../../c-api/function.rst:117
#: ../../c-api/function.rst:120
msgid ""
"Set the annotations for the function object *op*. *annotations* must be a "
"dictionary or ``Py_None``."
msgstr ""
"Define as anotações para o objeto função *op*. *annotations* deve ser um "
"dicionário ou ``Py_None``."

#: ../../c-api/function.rst:125
#: ../../c-api/function.rst:128
msgid ""
"Register *callback* as a function watcher for the current interpreter. "
"Return an ID which may be passed to :c:func:`PyFunction_ClearWatcher`. In "
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
"exception."
msgstr ""

#: ../../c-api/function.rst:135
#: ../../c-api/function.rst:138
msgid ""
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
"`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
"success, or ``-1`` and set an exception on error (e.g. if the given "
"*watcher_id* was never registered.)"
msgstr ""

#: ../../c-api/function.rst:145
#: ../../c-api/function.rst:148
msgid ""
"Enumeration of possible function watcher events: - "
"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
msgstr ""

#: ../../c-api/function.rst:157
#: ../../c-api/function.rst:160
msgid "Type of a function watcher callback function."
msgstr ""

#: ../../c-api/function.rst:159
#: ../../c-api/function.rst:162
msgid ""
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term:"
"`borrowed reference` to the new value that is about to be stored in *func* "
"for the attribute that is being modified."
msgstr ""

#: ../../c-api/function.rst:164
#: ../../c-api/function.rst:167
msgid ""
"The callback may inspect but must not modify *func*; doing so could have "
"unpredictable effects, including infinite recursion."
msgstr ""

#: ../../c-api/function.rst:167
#: ../../c-api/function.rst:170
msgid ""
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
"after `func` has been fully initialized. Otherwise, the callback is invoked "
Expand All @@ -221,15 +219,15 @@ msgid ""
"semantics of the Python code being executed."
msgstr ""

#: ../../c-api/function.rst:176
#: ../../c-api/function.rst:179
msgid ""
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
"callback to the about-to-be-destroyed function will resurrect it, preventing "
"it from being freed at this time. When the resurrected object is destroyed "
"later, any watcher callbacks active at that time will be called again."
msgstr ""

#: ../../c-api/function.rst:181
#: ../../c-api/function.rst:184
msgid ""
"If the callback sets an exception, it must return ``-1``; this exception "
"will be printed as an unraisable exception using :c:func:"
Expand All @@ -239,7 +237,7 @@ msgstr ""
"exceção será impressa como uma exceção não reprovável usando :c:func:"
"`PyErr_WriteUnraisable`. Caso contrário, deverá retornar ``0``."

#: ../../c-api/function.rst:185
#: ../../c-api/function.rst:188
msgid ""
"There may already be a pending exception set on entry to the callback. In "
"this case, the callback should return ``0`` with the same exception still "
Expand Down
10 changes: 5 additions & 5 deletions c-api/structures.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-08 14:14+0000\n"
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
"Last-Translator: Vitor Buxbaum Orlandi, 2023\n"
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
Expand Down Expand Up @@ -452,13 +452,13 @@ msgstr ""

#: ../../c-api/structures.rst:424
msgid ""
"The offset in bytes that the member is located on the type’s object struct."
"The type of the member in the C struct. See :ref:`PyMemberDef-types` for the "
"possible values."
msgstr ""

#: ../../c-api/structures.rst:428
#: ../../c-api/structures.rst:429
msgid ""
"The type of the member in the C struct. See :ref:`PyMemberDef-types` for the "
"possible values."
"The offset in bytes that the member is located on the type’s object struct."
msgstr ""

#: ../../c-api/structures.rst:433
Expand Down
38 changes: 19 additions & 19 deletions howto/annotations.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-09 14:13+0000\n"
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
"Last-Translator: Ruan Aragão <ruanaragao2@gmail.com>, 2023\n"
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
Expand Down Expand Up @@ -245,11 +245,11 @@ msgstr ""

#: ../../howto/annotations.rst:155
msgid ""
"If ``o`` is a callable (but not a class), use ``o.__globals__`` as the "
"globals when calling :func:`eval`."
"If ``o`` is a callable (but not a class), use :attr:`o.__globals__ <function."
"__globals__>` as the globals when calling :func:`eval`."
msgstr ""

#: ../../howto/annotations.rst:158
#: ../../howto/annotations.rst:159
msgid ""
"However, not all string values used as annotations can be successfully "
"turned into Python values by :func:`eval`. String values could theoretically "
Expand All @@ -258,63 +258,63 @@ msgid ""
"be evaluated. For example:"
msgstr ""

#: ../../howto/annotations.rst:165
#: ../../howto/annotations.rst:166
msgid ""
":pep:`604` union types using ``|``, before support for this was added to "
"Python 3.10."
msgstr ""

#: ../../howto/annotations.rst:167
#: ../../howto/annotations.rst:168
msgid ""
"Definitions that aren't needed at runtime, only imported when :const:`typing."
"TYPE_CHECKING` is true."
msgstr ""

#: ../../howto/annotations.rst:170
#: ../../howto/annotations.rst:171
msgid ""
"If :func:`eval` attempts to evaluate such values, it will fail and raise an "
"exception. So, when designing a library API that works with annotations, "
"it's recommended to only attempt to evaluate string values when explicitly "
"requested to by the caller."
msgstr ""

#: ../../howto/annotations.rst:178
#: ../../howto/annotations.rst:179
msgid "Best Practices For ``__annotations__`` In Any Python Version"
msgstr "Melhores Prática Para ``__annotations__`` Em Qualquer Versão Python"

#: ../../howto/annotations.rst:180
#: ../../howto/annotations.rst:181
msgid ""
"You should avoid assigning to the ``__annotations__`` member of objects "
"directly. Let Python manage setting ``__annotations__``."
msgstr ""

#: ../../howto/annotations.rst:183
#: ../../howto/annotations.rst:184
msgid ""
"If you do assign directly to the ``__annotations__`` member of an object, "
"you should always set it to a ``dict`` object."
msgstr ""

#: ../../howto/annotations.rst:186
#: ../../howto/annotations.rst:187
msgid ""
"If you directly access the ``__annotations__`` member of an object, you "
"should ensure that it's a dictionary before attempting to examine its "
"contents."
msgstr ""

#: ../../howto/annotations.rst:190
#: ../../howto/annotations.rst:191
msgid "You should avoid modifying ``__annotations__`` dicts."
msgstr "Você deve evitar modificar ``__annotations__`` dicts."

#: ../../howto/annotations.rst:192
#: ../../howto/annotations.rst:193
msgid ""
"You should avoid deleting the ``__annotations__`` attribute of an object."
msgstr ""

#: ../../howto/annotations.rst:197
#: ../../howto/annotations.rst:198
msgid "``__annotations__`` Quirks"
msgstr ""

#: ../../howto/annotations.rst:199
#: ../../howto/annotations.rst:200
msgid ""
"In all versions of Python 3, function objects lazy-create an annotations "
"dict if no annotations are defined on that object. You can delete the "
Expand All @@ -326,13 +326,13 @@ msgid ""
"guaranteed to always throw an ``AttributeError``."
msgstr ""

#: ../../howto/annotations.rst:209
#: ../../howto/annotations.rst:210
msgid ""
"Everything in the above paragraph also applies to class and module objects "
"in Python 3.10 and newer."
msgstr ""

#: ../../howto/annotations.rst:212
#: ../../howto/annotations.rst:213
msgid ""
"In all versions of Python 3, you can set ``__annotations__`` on a function "
"object to ``None``. However, subsequently accessing the annotations on that "
Expand All @@ -343,15 +343,15 @@ msgid ""
"set."
msgstr ""

#: ../../howto/annotations.rst:220
#: ../../howto/annotations.rst:221
msgid ""
"If Python stringizes your annotations for you (using ``from __future__ "
"import annotations``), and you specify a string as an annotation, the string "
"will itself be quoted. In effect the annotation is quoted *twice.* For "
"example::"
msgstr ""

#: ../../howto/annotations.rst:231
#: ../../howto/annotations.rst:232
msgid ""
"This prints ``{'a': \"'str'\"}``. This shouldn't really be considered a "
"\"quirk\"; it's mentioned here simply because it might be surprising."
Expand Down
Loading

0 comments on commit d0e0d3b

Please sign in to comment.