From f7b55ba7bbc8d57551e60c9c21613d0d365f1df6 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Fri, 25 Nov 2022 02:27:24 -0500 Subject: [PATCH 1/4] Traducido archivo library/math --- library/math.po | 65 +++++++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 29 deletions(-) diff --git a/library/math.po b/library/math.po index efd0272b4f..a998d562cd 100644 --- a/library/math.po +++ b/library/math.po @@ -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-18 09:42+0800\n" +"PO-Revision-Date: 2022-11-25 02:25-0500\n" "Last-Translator: Francisco Jesús Sevilla García \n" -"Language: es_ES\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.0.1\n" #: ../Doc/library/math.rst:2 msgid ":mod:`math` --- Mathematical functions" @@ -68,15 +69,14 @@ msgid "Number-theoretic and representation functions" msgstr "Teoría de números y funciones de representación" #: ../Doc/library/math.rst:34 -#, fuzzy msgid "" "Return the ceiling of *x*, the smallest integer greater than or equal to " "*x*. If *x* is not a float, delegates to :meth:`x.__ceil__ `, which should return an :class:`~numbers.Integral` value." msgstr "" "Retorna el \"techo\" de *x*, el número entero más pequeño que es mayor o " -"igual que *x*. Si *x* no es un flotante, delega en ``x.__ceil__()``, que " -"debería retornar un valor :class:`~numbers.Integral`." +"igual que *x*. Si *x* no es un flotante, delega en :meth:`x.__ceil__ `, que debería retornar un valor :class:`~numbers.Integral`." #: ../Doc/library/math.rst:41 msgid "" @@ -95,14 +95,12 @@ msgstr "" "``k > n``." #: ../Doc/library/math.rst:47 -#, fuzzy msgid "" "Also called the binomial coefficient because it is equivalent to the " "coefficient of k-th term in polynomial expansion of ``(1 + x)ⁿ``." msgstr "" -"También se llama coeficiente binomial porque es equivalente al coeficiente " -"del k-ésimo término en el desarrollo polinomial de la expresión ``(1 + x) ** " -"n``." +"También llamado coeficiente binomial porque es equivalente al coeficiente " +"del k-ésimo término en la expansión polinomial de ``(1 + x)ⁿ``." #: ../Doc/library/math.rst:51 ../Doc/library/math.rst:260 msgid "" @@ -128,28 +126,26 @@ msgid "Return the absolute value of *x*." msgstr "Retorna el valor absoluto de *x*." #: ../Doc/library/math.rst:71 -#, fuzzy msgid "" "Return *n* factorial as an integer. Raises :exc:`ValueError` if *n* is not " "integral or is negative." msgstr "" -"Retorna el factorial de *x* como un número entero. Lanza una excepción :exc:" -"`ValueError` si *x* no es un entero o es negativo." +"Retorna el factorial de *n* como un número entero. Lanza una excepción :exc:" +"`ValueError` si *n* no es un entero o negativo." #: ../Doc/library/math.rst:74 msgid "Accepting floats with integral values (like ``5.0``) is deprecated." msgstr "Aceptar flotantes con valores integrales (como ``5.0``) está obsoleto." #: ../Doc/library/math.rst:80 -#, fuzzy msgid "" "Return the floor of *x*, the largest integer less than or equal to *x*. If " "*x* is not a float, delegates to :meth:`x.__floor__ `, " "which should return an :class:`~numbers.Integral` value." msgstr "" "Retorna el \"suelo\" de *x*, el primer número entero mayor o igual que *x*. " -"Si *x* no es un flotante, delega en ``x .__floor__()``, que debería retornar " -"un valor :class:`~numbers.Integral`." +"Si *x* no es un flotante, delega en :meth:`x.__floor__ , " +"que debería retornar un valor :class:`~numbers.Integral`." #: ../Doc/library/math.rst:87 #, python-format @@ -511,6 +507,11 @@ msgid "" "delegates to :meth:`x.__trunc__ `, which should return an :" "class:`~numbers.Integral` value." msgstr "" +"Retorna *x* con la parte fraccionaria eliminada, dejando la parte entera." +"Esto redondea hacia 0: ``trunc()`` es equivalente a :func:`floor` para *x* " +"positivo y equivalente a :func:`ceil` para *x* negativo. Si *x* no es un " +"flotante, delega a :meth:`x.__trunc__ `, que debería " +"retornar un valor :class:`~numbers.Integral`." #: ../Doc/library/math.rst:309 msgid "Return the value of the least significant bit of the float *x*:" @@ -602,9 +603,8 @@ msgid "Power and logarithmic functions" msgstr "Funciones logarítmicas y exponenciales" #: ../Doc/library/math.rst:349 -#, fuzzy msgid "Return the cube root of *x*." -msgstr "Retorna la raíz cuadrada de *x*." +msgstr "Retorna la raíz cúbica de *x*." #: ../Doc/library/math.rst:356 msgid "" @@ -618,7 +618,7 @@ msgstr "" #: ../Doc/library/math.rst:363 msgid "Return *2* raised to the power *x*." -msgstr "" +msgstr "Retorna *2* elevado a la potencia *x*." #: ../Doc/library/math.rst:370 msgid "" @@ -679,7 +679,6 @@ msgstr "" "``log(x, 10)``." #: ../Doc/library/math.rst:420 -#, fuzzy msgid "" "Return ``x`` raised to the power ``y``. Exceptional cases follow the IEEE " "754 standard as far as possible. In particular, ``pow(1.0, x)`` and " @@ -688,11 +687,11 @@ msgid "" "integer then ``pow(x, y)`` is undefined, and raises :exc:`ValueError`." msgstr "" "Retorna ``x`` elevado a la potencia ``y``. Los casos excepcionales siguen el " -"Anexo 'F' del estándar C99 en la medida de lo posible. En particular, " -"``pow(1.0, x)`` y ``pow(x, 0.0)`` siempre retornan ``1.0``, incluso cuando " -"``x`` es cero o NaN. Si tanto ``x`` como ``y`` son finitos, ``x`` es " -"negativo e ``y`` no es un número entero, entonces ``pow(x, y)`` no está " -"definido y se lanza una excepción :exc:`ValueError`." +"estándar IEEE 754 en la medida de lo posible. En particular, ``pow(1.0, x)`` " +"y ``pow(x, 0.0)`` siempre retornan ``1.0``, incluso cuando ``x`` es cero o " +"NaN. Si tanto ``x`` como ``y`` son finitos, ``x`` es negativo e ``y`` no es " +"un número entero, entonces ``pow(x, y)`` no está definido y se lanza una " +"excepción :exc:`ValueError`." #: ../Doc/library/math.rst:427 msgid "" @@ -710,6 +709,9 @@ msgid "" "return ``inf`` instead of raising :exc:`ValueError`, for consistency with " "IEEE 754." msgstr "" +"Los casos especiales ``pow(0.0, -inf)`` y``pow(-0.0, -inf)`` se cambiaron " +"para devolver ``inf`` en lugar de generar :exc:`ValueError`, por " +"consistencia con IEEE 754." #: ../Doc/library/math.rst:439 msgid "Return the square root of *x*." @@ -886,7 +888,6 @@ msgstr "" "Funci%C3%B3n_error>`_ en *x*." #: ../Doc/library/math.rst:579 -#, fuzzy msgid "" "The :func:`erf` function can be used to compute traditional statistical " "functions such as the `cumulative standard normal distribution `_::" +"`_, ``math.nan`` y " +"``float('nan')``no se consideran iguales a ningún otro valor numérico, " +"incluidos ellos mismos. Para verificar si un número es NaN, use la función :" +"func:`isnan` para probar NaN en lugar de ``is`` o ``==``. Ejemplo::" #: ../Doc/library/math.rst:669 msgid "It is now always available." -msgstr "" +msgstr "Ahora está siempre disponible." #: ../Doc/library/math.rst:677 msgid "" From 395f66a41c1c9ba423fd8e702e9ba22731c6bf65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Fri, 2 Dec 2022 09:08:13 +0100 Subject: [PATCH 2/4] Apply suggestions from code review --- library/math.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/math.po b/library/math.po index a998d562cd..5db3eaeb8a 100644 --- a/library/math.po +++ b/library/math.po @@ -144,7 +144,7 @@ msgid "" "which should return an :class:`~numbers.Integral` value." msgstr "" "Retorna el \"suelo\" de *x*, el primer número entero mayor o igual que *x*. " -"Si *x* no es un flotante, delega en :meth:`x.__floor__ , " +"Si *x* no es un flotante, delega en :meth:`x.__floor__ `, " "que debería retornar un valor :class:`~numbers.Integral`." #: ../Doc/library/math.rst:87 @@ -896,7 +896,7 @@ msgstr "" "La función :func:`erf` se puede utilizar para calcular funciones " "estadísticas tradicionales como la `distribución normal estándar acumulativa " "`_::" #: ../Doc/library/math.rst:592 msgid "" @@ -976,7 +976,7 @@ msgstr "" "Un valor de punto flotante \"no es un número\" (NaN). Equivalente a la " "salida de ``float('nan')``. Debido a los requisitos del `estándar IEEE-754 " "`_, ``math.nan`` y " -"``float('nan')``no se consideran iguales a ningún otro valor numérico, " +"``float('nan')`` no se consideran iguales a ningún otro valor numérico, " "incluidos ellos mismos. Para verificar si un número es NaN, use la función :" "func:`isnan` para probar NaN en lugar de ``is`` o ``==``. Ejemplo::" From 51c5c11ecefe08e81750d1d49f3fc298b89fba34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Fri, 2 Dec 2022 09:16:13 +0100 Subject: [PATCH 3/4] powrap --- library/math.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/math.po b/library/math.po index 5db3eaeb8a..f962e297bd 100644 --- a/library/math.po +++ b/library/math.po @@ -975,10 +975,10 @@ msgid "" msgstr "" "Un valor de punto flotante \"no es un número\" (NaN). Equivalente a la " "salida de ``float('nan')``. Debido a los requisitos del `estándar IEEE-754 " -"`_, ``math.nan`` y " -"``float('nan')`` no se consideran iguales a ningún otro valor numérico, " -"incluidos ellos mismos. Para verificar si un número es NaN, use la función :" -"func:`isnan` para probar NaN en lugar de ``is`` o ``==``. Ejemplo::" +"`_, ``math.nan`` y ``float('nan')`` " +"no se consideran iguales a ningún otro valor numérico, incluidos ellos " +"mismos. Para verificar si un número es NaN, use la función :func:`isnan` " +"para probar NaN en lugar de ``is`` o ``==``. Ejemplo::" #: ../Doc/library/math.rst:669 msgid "It is now always available." From 555bf055de408c6029803a3d17683e6f42245037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Fri, 2 Dec 2022 09:21:06 +0100 Subject: [PATCH 4/4] fix lint --- library/math.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/math.po b/library/math.po index f962e297bd..118c89102f 100644 --- a/library/math.po +++ b/library/math.po @@ -709,7 +709,7 @@ msgid "" "return ``inf`` instead of raising :exc:`ValueError`, for consistency with " "IEEE 754." msgstr "" -"Los casos especiales ``pow(0.0, -inf)`` y``pow(-0.0, -inf)`` se cambiaron " +"Los casos especiales ``pow(0.0, -inf)`` y ``pow(-0.0, -inf)`` se cambiaron " "para devolver ``inf`` en lugar de generar :exc:`ValueError`, por " "consistencia con IEEE 754."