Skip to content

Traducido archivo library/dataclasses.po #2314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from Feb 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Traducido archivo library/dataclasses.po
  • Loading branch information
srmorita committed Feb 14, 2023
commit 29cf84db66a144b3fc5440188f623dc7cceee5b3
42 changes: 36 additions & 6 deletions library/dataclasses.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
"PO-Revision-Date: 2021-08-07 15:43+0200\n"
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
"Language: es_ES\n"
"PO-Revision-Date: 2023-02-14 15:22-0300\n"
"Last-Translator: Francisco Mora <fr.morac@duocuc.cl>\n"
"Language-Team: python-doc-es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.10.3\n"
"X-Generator: Poedit 3.2.2\n"

#: ../Doc/library/dataclasses.rst:2
msgid ":mod:`dataclasses` --- Data Classes"
Expand Down Expand Up @@ -357,14 +358,27 @@ msgid ""
"a dataclass. Use :func:`fields` instead. To be able to determine inherited "
"slots, base class ``__slots__`` may be any iterable, but *not* an iterator."
msgstr ""
"Si un nombre de campo ya está incluido en las ``__slots__`` de una clase "
"base, no se incluirá en las ``__slots__`` generadas para evitar que se "
"sobreescriban <https://docs.python.org/3/reference/datamodel.html#notes-on-"
"using-slots>`_. Por lo tanto, no utilice ``__slots__`` para recuperar los "
"nombres de campo de una clase de datos. Utilice :func:`fields` en su lugar. "
"Para poder determinar las ranuras heredadas, la clase base ``__slots__`` "
"puede ser cualquier iterable, pero *not* un iterador."

# No estoy seguro de si es correcto traducir slot por "ranura".
#: ../Doc/library/dataclasses.rst:201
#, fuzzy
msgid ""
"``weakref_slot``: If true (the default is ``False``), add a slot named "
"\"__weakref__\", which is required to make an instance weakref-able. It is "
"an error to specify ``weakref_slot=True`` without also specifying "
"``slots=True``."
msgstr ""
"``weakref_slot``: Si es verdadero (por defecto es ``False``), añade una "
"ranura llamada \"__weakref__\", que es necesaria para generar una instancia "
"weakref-able. Es un error especificar ``weakref_slot=True`` sin especificar "
"también ``slots=True``."

#: ../Doc/library/dataclasses.rst:208
msgid ""
Expand Down Expand Up @@ -619,11 +633,14 @@ msgstr ""

#: ../Doc/library/dataclasses.rst:347
msgid "Example of using :func:`asdict` on nested dataclasses::"
msgstr ""
msgstr "Ejemplo de uso de :func:`asdict` en clases de datos anidadas::"

# No estoy seguro de la traducción shallow copy como copia superficial.
#: ../Doc/library/dataclasses.rst:364 ../Doc/library/dataclasses.rst:384
#, fuzzy
msgid "To create a shallow copy, the following workaround may be used::"
msgstr ""
"Para crear una copia superficial, se puede utilizar la siguiente solución::"

#: ../Doc/library/dataclasses.rst:368
#, fuzzy
Expand Down Expand Up @@ -1148,29 +1165,39 @@ msgstr ""
"Usar las funciones fábrica por defecto es una forma de crear nuevas "
"instancias de tipos mutables como valores por defecto para campos::"

# No estoy seguro de la traducción de "Unhashhability". Para La incobrabilidad se utiliza para aproximar la mutabilidad.
#: ../Doc/library/dataclasses.rst:747
#, fuzzy
msgid ""
"Instead of looking for and disallowing objects of type ``list``, ``dict``, "
"or ``set``, unhashable objects are now not allowed as default values. "
"Unhashability is used to approximate mutability."
msgstr ""
"En lugar de buscar y desautorizar objetos de tipo ``list``, ``dict``, o "
"``set``, ahora no se permiten objetos unhashable como valores por defecto. "
"La incobrabilidad se utiliza para aproximar la mutabilidad."

#: ../Doc/library/dataclasses.rst:754
msgid "Descriptor-typed fields"
msgstr ""
msgstr "Campos Descriptor-tipo"

#: ../Doc/library/dataclasses.rst:756
msgid ""
"Fields that are assigned :ref:`descriptor objects <descriptors>` as their "
"default value have the following special behaviors:"
msgstr ""
"Los campos a los que se asigna :ref:`descriptor objects <descriptors>` como "
"valor por defecto tienen los siguientes comportamientos especiales:"

#: ../Doc/library/dataclasses.rst:759
msgid ""
"The value for the field passed to the dataclass's ``__init__`` method is "
"passed to the descriptor's ``__set__`` method rather than overwriting the "
"descriptor object."
msgstr ""
"El valor del campo pasado al método ``__init__`` de la clase de datos se "
"pasa al método ``__set__`` del descriptor en lugar de sobrescribir el objeto "
"descriptor."

#: ../Doc/library/dataclasses.rst:762
msgid ""
Expand All @@ -1195,3 +1222,6 @@ msgid ""
"assigned a descriptor object as its default value, the field will act like a "
"normal field."
msgstr ""
"Tenga en cuenta que si un campo está anotado con un tipo de descriptor, pero "
"no se le asigna un objeto descriptor como valor por defecto, el campo "
"actuará como un campo normal."