Skip to content

Completing the built-in functions file (library/functions.po) #254

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 41 commits into from
May 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
af08197
translated filter
clacri May 13, 2020
ee72c14
completed float
clacri May 13, 2020
4cd3ede
solved conflict in dict and spell correction
clacri May 14, 2020
87d6835
Merge branch '3.8' of https://github.com/PyCampES/python-docs-es into…
clacri May 14, 2020
aeac0a7
Merge branch '3.8' of https://github.com/PyCampES/python-docs-es into…
clacri May 14, 2020
bfca466
bytearray, bytes and callable translated
clacri May 14, 2020
7fbcc1d
included format and frozenset
clacri May 15, 2020
8570979
a few more functions on attributes, help, hex, id
clacri May 15, 2020
d396207
it is too late. a few more translations
clacri May 16, 2020
645ed8e
included compile
clacri May 16, 2020
3d5a682
included a new script for percentage in library and the function divmod
clacri May 16, 2020
0d47e45
solving conflicts in dict after pulling
clacri May 17, 2020
293e184
completed a few more functions
clacri May 17, 2020
43bc864
tryng to solve build error message
clacri May 18, 2020
a3f510a
tryng to solve build error message
clacri May 18, 2020
39a08de
Merge branch '3.8' into claudia_finish_functions
clacri May 20, 2020
25be159
Update library/functions.po
clacri May 21, 2020
8815992
Update library/functions.po
clacri May 21, 2020
8d08792
Update library/functions.po
clacri May 21, 2020
e75af86
Update library/functions.po
clacri May 21, 2020
6874df2
Update library/functions.po
clacri May 21, 2020
3b8bc18
Update library/functions.po
clacri May 21, 2020
0294066
Update library/functions.po
clacri May 21, 2020
afc783a
Update library/functions.po
clacri May 21, 2020
8145d39
Update library/functions.po
clacri May 21, 2020
a82dcb5
Update library/functions.po
clacri May 21, 2020
7f40efc
Update library/functions.po
clacri May 21, 2020
2d96ac5
Update library/functions.po
clacri May 21, 2020
2066f07
Update library/functions.po
clacri May 21, 2020
67777da
Update library/functions.po
clacri May 21, 2020
aa55e52
Update library/functions.po
clacri May 21, 2020
96503bd
Merge branch '3.8' into claudia_finish_functions
clacri May 21, 2020
f5efe2b
Update library/functions.po
clacri May 21, 2020
a65cc7d
Update library/functions.po
clacri May 21, 2020
96c2ea7
Update library/functions.po
clacri May 21, 2020
b1b6d57
added a few terms to memory and some corrections
clacri May 21, 2020
729b8a9
Merge branch 'claudia_finish_functions' of https://github.com/PyCampE…
clacri May 21, 2020
9f45960
tryng to solve build
clacri May 22, 2020
bbb6f18
Update library/functions.po
clacri May 22, 2020
17fa9cf
Remove duplicated entries that do not exist in the original
humitos May 22, 2020
664cc5d
Update library/functions.po from English source
humitos May 22, 2020
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
Prev Previous commit
Next Next commit
included compile
  • Loading branch information
clacri committed May 16, 2020
commit 645ed8ef62e1149029f8ca6dad5bbb7abeec4f9f
3 changes: 3 additions & 0 deletions dict
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ array
arrays
asincrónica
asincrónico
assert
asserts
attr
autenticación
autocompletado
Expand Down Expand Up @@ -254,6 +256,7 @@ os
pads
parsea
parseada
parsear
permitiéndole
permutaciones
personalizadamente
Expand Down
97 changes: 92 additions & 5 deletions library/functions.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-07 14:37+0200\n"
"PO-Revision-Date: 2020-05-16 02:30+0200\n"
"PO-Revision-Date: 2020-05-16 18:26+0200\n"
"Last-Translator: \n"
"Language: es\n"
"Language-Team: python-doc-esMIME-Version: 1.0\n"
Expand Down Expand Up @@ -546,29 +546,41 @@ msgid ""
"integer *i*. For example, ``chr(97)`` returns the string ``'a'``, while "
"``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`."
msgstr ""
"Devuelve la cadena que representa un carácter cuyo código Unicode es el "
"entero *i*. Por ejemplo, ``chr(97)`` devuelve la cadena ``’a’``, mientras "
"que ``chr(8364)`` devuelve la cadena ``’€’``. Esta función es la inversa de :"
"func:`ord`."

#: ../Doc/library/functions.rst:200
msgid ""
"The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in "
"base 16). :exc:`ValueError` will be raised if *i* is outside that range."
msgstr ""
"El rango válido para el argumento *i* es desde 0 a 1,114,111 (0x10FFFF en "
"base 16). Se lanzará una excepción :exc:`ValueError` si *i* está fuera de "
"ese rango."

#: ../Doc/library/functions.rst:206
msgid "Transform a method into a class method."
msgstr ""
msgstr "Transforma un método en un método de clase."

#: ../Doc/library/functions.rst:208
msgid ""
"A class method receives the class as implicit first argument, just like an "
"instance method receives the instance. To declare a class method, use this "
"idiom::"
msgstr ""
"Un método de clase recibe la clase como el primer argumento implícito, de la "
"misma forma que un método de instancia recibe la instancia. Para declarar un "
"método de clase, emplea la siguiente expresión:"

#: ../Doc/library/functions.rst:216
msgid ""
"The ``@classmethod`` form is a function :term:`decorator` -- see :ref:"
"`function` for details."
msgstr ""
"La forma ``@classmethod`` es una función :term:`decorator` — ver :ref:"
"`function` para más detalles."

#: ../Doc/library/functions.rst:219
msgid ""
Expand All @@ -577,16 +589,22 @@ msgid ""
"class. If a class method is called for a derived class, the derived class "
"object is passed as the implied first argument."
msgstr ""
"Un método de clase puede ser llamado en la clase (como ``C.f()``) o en la "
"instancia (como ``C().f()``). La instancia es ignorada excepto por su clase. "
"Si un método de clase es llamado desde una clase derivada, entonces el "
"objeto de la clase derivada se para como el primer argumento implícito."

#: ../Doc/library/functions.rst:224
msgid ""
"Class methods are different than C++ or Java static methods. If you want "
"those, see :func:`staticmethod`."
msgstr ""
"Los métodos de clase son diferentes a los métodos estáticos de C++ o Java. "
"Si quieres ese tipo de métodos, revisa :func:`staticmethod`."

#: ../Doc/library/functions.rst:227
msgid "For more information on class methods, see :ref:`types`."
msgstr ""
msgstr "Para más información sobre métodos de clase, ver :ref:`types`."

#: ../Doc/library/functions.rst:232
msgid ""
Expand All @@ -595,13 +613,22 @@ msgid ""
"string, a byte string, or an AST object. Refer to the :mod:`ast` module "
"documentation for information on how to work with AST objects."
msgstr ""
"Compila el *source* en código o en un objeto AST (*Abstract Syntax Tree*, "
Copy link
Contributor

Choose a reason for hiding this comment

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

esta es difícil!, no tengo clara la solución así que te comparto las dudas y opciones que se me ocurren:
source - código fuente, no??
code or AST object creo que es (code OR AST) object y no code OR (AST object) por la frase que sigue. así que sería algo como objeto de código (code object) u objeto AST.

Quedaría buscar mejor que es un code object

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gracias! :)

"árbol de sintaxis abstracta). Los objetos de código pueden ser ejecutados "
"por las funciones :func:`exec` or :func:`eval`. *source* puede ser una "
"cadena normal, una cadena de bytes o un objeto AST. Para más información "
"sobre cómo trabajar con objetos AST, revisa la documentación del módulo :mod:"
"`ast`."

#: ../Doc/library/functions.rst:237
msgid ""
"The *filename* argument should give the file from which the code was read; "
"pass some recognizable value if it wasn't read from a file (``'<string>'`` "
"is commonly used)."
msgstr ""
"El argumento *filename* debería dar el fichero desde el que el código fue "
Copy link
Contributor

Choose a reason for hiding this comment

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

give > mostrar, indicar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

si tienes razón

"leído; pasa un valor reconocible en caso este no fuera leído de un fichero "
"(``’<string>’`` es usado comúnmente para esto)."

#: ../Doc/library/functions.rst:241
msgid ""
Expand All @@ -611,6 +638,11 @@ msgid ""
"single interactive statement (in the latter case, expression statements that "
"evaluate to something other than ``None`` will be printed)."
msgstr ""
"El argumento *mode* especifica que tipo de código debe ser compilado; puede "
"ser ``’exec’`` si *source* consiste en una secuencia de declaraciones, "
Copy link
Contributor

Choose a reason for hiding this comment

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

source > codigo fuente? a menos que haga referencia a algún ejemplo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

es un argumento creo, pero lo veo mejor en en build de read the docs, luego me reviso todos los comentarios pendientes

"``’eval’`` si consiste de una expresión sencilla, o ``’single’`` si consiste "
"en una declaración única interactiva (en este último caso, las declaraciones "
"de expresiones que evalúen a algo distinto de ``None`` serán impresas)."

#: ../Doc/library/functions.rst:247
msgid ""
Expand All @@ -624,15 +656,33 @@ msgid ""
"then the *flags* argument is it -- the future statements in effect around "
"the call to compile are ignored."
msgstr ""

"Los argumentos opcionales *flags* y *dont_inherit* controlan que :ref:"
"`future statements <future>` afectan a la compilación de *source*. Si "
"ninguno de los dos está presente (o los dos son cero), el código se compila "
"con las declaraciones futuras que están en el código que está llamando a :"
"func:`compile`. Si el argumento *flags* es dado, y *dont_inherit* no (o es "
"cero), entonces las declaraciones futuras especificadas en el argumento "
"*flags* son usadas, además de aquellas que iban a ser utilizadas en "
"cualquier caso. Si *dont_inherit* es un entero distinto de cero entonces el "
"argumento *flags* es ignorado y no se consideran las declaraciones futuras "
"en efecto durante la llamada a compile."

# a ver, lo del bitwise ORed together me resulta dificil de traducir, creo que está bien pero quiero llamar la atención sobre esto a los revisores
#: ../Doc/library/functions.rst:257
#, fuzzy
msgid ""
"Future statements are specified by bits which can be bitwise ORed together "
"to specify multiple statements. The bitfield required to specify a given "
"feature can be found as the :attr:`~__future__._Feature.compiler_flag` "
"attribute on the :class:`~__future__._Feature` instance in the :mod:"
"`__future__` module."
msgstr ""
"Las declaraciones futuras son especificadas por bits que pueden ser "
"sometidos a la operación OR bit a bit para especificar múltiples "
"declaraciones. El campo de bit requerido para especificar una característica "
"específica puede ser encontrado como el atributo :attr:`~__future__._Feature."
"compiler_flag` de la instancia de la clase :class:`~__future__._Feature` "
"en el módulo :mod:`__future__`."

#: ../Doc/library/functions.rst:262
msgid ""
Expand All @@ -642,6 +692,11 @@ msgid ""
"object has ``CO_COROUTINE`` set in ``co_code``, and can be interactively "
"executed via ``await eval(code_object)``."
msgstr ""
"El argumento opcional *flags* también controla si el código compilado puede "
"contener ``await``, ``async for`` y ``async with`` de nivel superior. Cuando "
"se establece el bit ``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` , el objeto de código "
"devuelto tiene ``CO_COROUTINE`` establecido en ``co_code``, y puede ser "
"ejecutado de forma interactiva a través de ``await eval(code_object)``."

#: ../Doc/library/functions.rst:268
msgid ""
Expand All @@ -651,30 +706,45 @@ msgid ""
"optimization; ``__debug__`` is true), ``1`` (asserts are removed, "
"``__debug__`` is false) or ``2`` (docstrings are removed too)."
msgstr ""
"El argumento *optimize* especifica el nivel de optimización del compilador; "
"el valor por defecto de ``-1`` selecciona el nivel de optimización del "
"intérprete de la misma forma que las opciones :option:`-O`. Los niveles "
"explícitos son ``0`` (sin optimización; ``__debug__`` es true), ``1`` (se "
"eliminan los asserts, ``__debug__`` es false) or ``2`` (las docstrings "
"también son eliminadas)."

#: ../Doc/library/functions.rst:274
msgid ""
"This function raises :exc:`SyntaxError` if the compiled source is invalid, "
"and :exc:`ValueError` if the source contains null bytes."
msgstr ""
"Esta función lanza un :exc:`SyntaxError` si el código compilado es inválido, "
"y un :exc:`ValueError` si contiene bytes nulos."

#: ../Doc/library/functions.rst:277
msgid ""
"If you want to parse Python code into its AST representation, see :func:`ast."
"parse`."
msgstr ""
"Si quieres parsear código Python a su representación AST, revisa :func:`ast."
"parse`."

msgid ""
"Raises an :ref:`auditing event <auditing>` ``compile`` with arguments "
"``source``, ``filename``."
msgstr ""
"Lanza un :ref:`auditing event <auditing>` ``compile`` con argumentos "
"``source``, ``filename``."

#: ../Doc/library/functions.rst:282
msgid ""
"Raises an :ref:`auditing event <auditing>` ``compile`` with arguments "
"``source`` and ``filename``. This event may also be raised by implicit "
"compilation."
msgstr ""
"Lanza un :ref:`auditing event <auditing>` ``compile`` con argumentos "
"``source`` y ``filename``. Este evento también puede ser lanzado por la "
"compilación implícita."

#: ../Doc/library/functions.rst:288
msgid ""
Expand All @@ -683,31 +753,48 @@ msgid ""
"to facilitate detection of incomplete and complete statements in the :mod:"
"`code` module."
msgstr ""
"Cuando se compile una cadena multi-línea de código en los modos ``’single’`` "
"o ``’eval’``, la entrada debe terminar al menos por un carácter de nueva "
"línea. Esto facilita la detección de declaraciones completas e incompletas "
"en el módulo :mod:`code`."

# lo de stack depth limitations no estoy segura de como traducirlo: en términos de profundidad de la pila?
#: ../Doc/library/functions.rst:295
#, fuzzy
msgid ""
"It is possible to crash the Python interpreter with a sufficiently large/"
"complex string when compiling to an AST object due to stack depth "
"limitations in Python's AST compiler."
msgstr ""
"Es posible bloquear el intérprete de Python con una cadena lo "
"suficientemente larga o compleja al compilar a un objeto AST, debido a "
"limitaciones en el compilador de AST de Python."

#: ../Doc/library/functions.rst:299
msgid ""
"Allowed use of Windows and Mac newlines. Also input in ``'exec'`` mode does "
"not have to end in a newline anymore. Added the *optimize* parameter."
msgstr ""
"Permite el uso de caracteres de nueva línea de Windows y Mac. También, la "
"entrada en el modo ``’exec’`` no tiene porque terminar en una nueva línea. "
"Se añade el parámetro *optimize*."

#: ../Doc/library/functions.rst:303
msgid ""
"Previously, :exc:`TypeError` was raised when null bytes were encountered in "
"*source*."
msgstr ""
"Anteriormente, un :exc:`TypeError` era lanzado cuando se encontraban bytes "
"nulos en *source*."

#: ../Doc/library/functions.rst:307
msgid ""
"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable "
"support for top-level ``await``, ``async for``, and ``async with``."
msgstr ""
"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` puede ahora ser pasado en *flags* para "
"permitir el soporte de ``await``, ``async for``, y ``async with`` en niveles "
"superiores."

#: ../Doc/library/functions.rst:314
msgid ""
Expand Down Expand Up @@ -1326,7 +1413,7 @@ msgstr ""
"Esta función se añade al espacio de nombres built-in a través del módulo :"
"mod:`site`."

# no estoy muy segura de lo de callables por invocables
# no estoy muy segura de lo de callables por invocables
#: ../Doc/library/functions.rst:724
#, fuzzy
msgid ""
Expand Down