Skip to content

Traducción del archivo library/copyreg #1135

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 6 commits into from
Dec 27, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.mo
/env
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/env

no es necesario este cambio, el entorno virtual que se crea con el script se llama 'venv' si mal no recuerdo y si creaste uno llamado 'env' está igual de correcto, pero no creo que valga la pena actualizar el .gitignore de todos.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hola! lo siento es que tengo ese virtual environment y lo incluí para que no se subiera con mis cambios, en todo caso lo voy a eliminar y a crear en otro lado para no afectar el gitignore de todos

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cmaureir muchas gracias por tus comentarios y ya pronto corrijo el PR 👍

41 changes: 34 additions & 7 deletions library/copyreg.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,64 @@
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-06 11:59-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"PO-Revision-Date: 2020-11-02 23:07-0500\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"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"X-Generator: Poedit 2.3\n"

#: ../Doc/library/copyreg.rst:2
msgid ":mod:`copyreg` --- Register :mod:`pickle` support functions"
msgstr ""
msgstr ":mod:`copyreg` ---Registrar funciones de soporte de :mod:`pickle`"

#: ../Doc/library/copyreg.rst:7
msgid "**Source code:** :source:`Lib/copyreg.py`"
msgstr ""
msgstr "**Código fuente:** :source:`Lib/copyreg.py`"

# tengo dudas sobre el significado del término pickling/copying así que lo he conservado. Entiendo, que se relaciona con la librería pickle así que debe ser alguna acción o alguna función que hasta el momento desconozco.
#: ../Doc/library/copyreg.rst:15
#, fuzzy
msgid ""
"The :mod:`copyreg` module offers a way to define functions used while "
"pickling specific objects. The :mod:`pickle` and :mod:`copy` modules use "
"those functions when pickling/copying those objects. The module provides "
"configuration information about object constructors which are not classes. "
"Such constructors may be factory functions or class instances."
msgstr ""
"El módulo :mod:`copyreg` ofrece una manera de definir funciones usada en "
"objetos específicos pickling. Los módulos :mod:`pickle` y :mod:`copy` "
"utilizan estas funciones cuando se realizan acciones pickling/copying en "
"esos objetos. El módulo provee información de configuración acerca de los "
"objetos constructores, los cuales no son clases. Estos objetos constructores "
"pueden ser funciones de fábrica o instancias de clase."

#: ../Doc/library/copyreg.rst:24
msgid ""
"Declares *object* to be a valid constructor. If *object* is not callable "
"(and hence not valid as a constructor), raises :exc:`TypeError`."
msgstr ""
"Declara que el *objeto* debe ser un constructor válido. Si el *objeto* no es "
"invocable (y por lo tanto, no es válido como constructor), levanta una "
"excepción exc:`TypeError`."

#: ../Doc/library/copyreg.rst:30
msgid ""
"Declares that *function* should be used as a \"reduction\" function for "
"objects of type *type*. *function* should return either a string or a tuple "
"containing two or three elements."
msgstr ""
"Declara que la *función* deber ser usada como una función de \"reducción\" "
"para objetos de tipo *type*. La *función* debe retornar ya sea una cadena de "
"caracteres o una tupla que contenga dos o tres elementos."

#: ../Doc/library/copyreg.rst:34
msgid ""
Expand All @@ -53,6 +69,11 @@ msgid ""
"arguments returned by *function* at pickling time. :exc:`TypeError` will be "
"raised if *object* is a class or *constructor* is not callable."
msgstr ""
"El parámetro opcional *constructor* , si se proporciona, es un objeto "
"invocable el cual, que puede ser usado para reconstruir el objeto cuando se "
"llama con la tupla de argumentos devueltos por la *función* en el momento de "
"pickling. La excepción :exc:`TypeError` se lgenerará si el *objeto* es "
"una clase o si el *constructor* no es invocable."

#: ../Doc/library/copyreg.rst:39
msgid ""
Expand All @@ -61,13 +82,19 @@ msgid ""
"dispatch_table` attribute of a pickler object or subclass of :class:`pickle."
"Pickler` can also be used for declaring reduction functions."
msgstr ""
"Consulte el módulo :mod:`pickle` para más detalles sobre la interfaz "
"esperada de *función* y *constructor*. Note que el atributo :attr:`~pickle."
"Pickler.dispatch_table` de un objeto pickler o subclase de :class:`pickle."
"Pickler` puede también ser utilizado para declarar funciones de reducción."

#: ../Doc/library/copyreg.rst:46
msgid "Example"
msgstr ""
msgstr "Ejemplo"

#: ../Doc/library/copyreg.rst:48
msgid ""
"The example below would like to show how to register a pickle function and "
"how it will be used:"
msgstr ""
"En el siguiente ejemplo nos gustaría mostrar cómo registrar una función "
"pickle y cómo se utilizará:"