Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork400
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
af08197ee72c144cd3ede87d6835aeac0a7bfca4667fbcc1d8570979d396207645ed8e3d5a6820d47e45293e18443bc864a3f510a39a08de25be15988159928d08792e75af866874df23b8bc180294066afc783a8145d39a82dcb57f40efc2d96ac52066f0767777daaa55e5296503bdf5efe2ba65cc7d96c2ea7b1b6d57729b8a99f45960bbb6f1817fa9cf664cc5dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 18:50+0200\n" | ||
| "Last-Translator: \n" | ||
| "Language: es\n" | ||
| "Language-Team: python-doc-esMIME-Version: 1.0\n" | ||
| @@ -807,6 +807,14 @@ msgid "" | ||
| "conversion like :class:`int` and :class:`float`. If both arguments are " | ||
| "omitted, returns ``0j``." | ||
| msgstr "" | ||
| "Devuelve el número complejo con el valor *real* + *imag*\\*1j o convierte " | ||
| "una cadena o un número a un número complejo. Si el primer parámetro es una " | ||
| "cadena, será interpretada como un número complejo y la función debe ser " | ||
| "llamada sin un segundo parámetro. El segundo parámetro nunca puede ser una " | ||
| "cadena. Cada argumento puede ser de cualquier tipo numérico (incluyendo " | ||
| "*complex*). Si se omite *imag*, su valor por defecto es cero y el " | ||
| "constructor sirve como un conversor numérico como :class:`int` y :class:" | ||
| "`float`. Si ambos argumentos son omitidos, devuelve ``0j``." | ||
| #: ../Doc/library/functions.rst:323 | ||
| msgid "" | ||
| @@ -815,28 +823,40 @@ msgid "" | ||
| "meth:`__float__`. If ``__float__()`` is not defined then it falls back to :" | ||
| "meth:`__index__`." | ||
| msgstr "" | ||
| "Para un objeto general de Python ``x``, ``complex(x)`` delega a ``x." | ||
| "__complex__()``. Si ``__complex__()`` no está definida entonces llama a :" | ||
| "meth:`__float__`. Si ``__float__()`` no está definida entonces llama a :" | ||
clacri marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| "meth:`__index__`." | ||
| #: ../Doc/library/functions.rst:330 | ||
| msgid "" | ||
| "When converting from a string, the string must not contain whitespace around " | ||
| "the central ``+`` or ``-`` operator. For example, ``complex('1+2j')`` is " | ||
| "fine, but ``complex('1 + 2j')`` raises :exc:`ValueError`." | ||
| msgstr "" | ||
| "Cuando se convierte desde una cadena, la cadena no debe contener espacios en " | ||
| "blanco alrededor de los operadores centrales ``+`` or ``-``. Por ejemplo, " | ||
| "``complex(‘1+2j’)`` es correcto, pero ``complex(‘1 + 2j’)`` lanza :exc:" | ||
clacri marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| "`ValueError`." | ||
| #: ../Doc/library/functions.rst:335 | ||
| msgid "The complex type is described in :ref:`typesnumeric`." | ||
| msgstr "El tipo complejo está descrito en :ref:`typesnumeric`." | ||
| #: ../Doc/library/functions.rst:337 ../Doc/library/functions.rst:622 | ||
| #: ../Doc/library/functions.rst:829 | ||
| msgid "Grouping digits with underscores as in code literals is allowed." | ||
| msgstr "" | ||
| "Agrupar dígitos con guiones bajos como en los literales de código está " | ||
| "permitido." | ||
| #: ../Doc/library/functions.rst:340 | ||
| msgid "" | ||
| "Falls back to :meth:`__index__` if :meth:`__complex__` and :meth:`__float__` " | ||
| "are not defined." | ||
| msgstr "" | ||
| "Recurre a :meth:`__index__` si :meth:`__complex__` y :meth:`__float__` no " | ||
| "están definidos." | ||
| #: ../Doc/library/functions.rst:347 | ||
| msgid "" | ||
| @@ -845,6 +865,11 @@ msgid "" | ||
| "function deletes the named attribute, provided the object allows it. For " | ||
| "example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``." | ||
| msgstr "" | ||
| "Esta función está emparentada con :func:`setattr`. Los argumentos son un " | ||
| "objeto y una cadena. La cadena debe ser el mismo nombre que alguno de los " | ||
| "atributos del objeto. La función elimina el atributo nombrado, si es que el " | ||
| "objeto lo permite. Por ejemplo ``delattr(x, ‘foobar’)`` es equivalente a " | ||
| "``del x.foobar``." | ||
| #: ../Doc/library/functions.rst:359 | ||
| msgid "" | ||
| @@ -965,6 +990,15 @@ msgid "" | ||
| "is very close to *a*, if ``a % b`` is non-zero it has the same sign as *b*, " | ||
| "and ``0 <= abs(a % b) < abs(b)``." | ||
| msgstr "" | ||
| "Toma dos números (no complejos) como argumentos y devuelve un par de números " | ||
| "consistente en su cociente y su resto al emplear división de enteros. Con " | ||
clacri marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| "operandos de tipos diferentes, se aplican las reglas de los operadores " | ||
| "aritméticos binarios. Para enteros, el resultado es el mismo que ``(a // b, " | ||
| "a % b)``. Para números de punto flotante el resultado es ``(q, a % b)``, " | ||
| "donde *q* normalmente es ``math.floor(a / b)`` pero puede ser uno menos que " | ||
clacri marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| "eso. En cualquier caso ``q * b + a % b`` es muy cercano a *a*, si ``a % b`` " | ||
| "es distinto de cero y tiene el mismo signo que *b*, y ``0 <= abs(a % b) < " | ||
| "abs(b)``." | ||
| #: ../Doc/library/functions.rst:436 | ||
| msgid "" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/usr/bin/env python | ||
| import glob | ||
| import os | ||
| import polib # fades | ||
| PO_DIR = os.path.abspath( | ||
| os.path.join( | ||
| os.path.dirname(__file__), | ||
| '..', | ||
| )) | ||
| def main(): | ||
| for pofilename in sorted(glob.glob(PO_DIR + '**/library/*.po')): | ||
| po = polib.pofile(pofilename) | ||
| file_per = po.percent_translated() | ||
| print(f"{pofilename} ::: {file_per}%") | ||
| if __name__ == "__main__": | ||
| main() |