From a6c9e2e654ab471bce64f04639c037c2b9d5fb66 Mon Sep 17 00:00:00 2001 From: Sofia Denner Date: Sun, 30 Oct 2022 12:57:09 -0300 Subject: [PATCH 1/8] translate 1/7 paragraphs --- c-api/code.po | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/c-api/code.po b/c-api/code.po index 4b983fbd14..e694b6942f 100644 --- a/c-api/code.po +++ b/c-api/code.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-16 13:04+0200\n" -"Last-Translator: Cristián Maureira-Fredes \n" -"Language: es\n" +"PO-Revision-Date: 2022-10-30 12:49-0300\n" +"Last-Translator: Sofía Denner \n" "Language-Team: python-doc-es\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: 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\n" #: ../Doc/c-api/code.rst:8 msgid "Code Objects" @@ -132,6 +133,10 @@ msgid "" "for the instruction at ``byte_offset``. Sets the value to ``0`` when " "information is not available for any particular element." msgstr "" +"Establece los punteros ``int`` pasados en los números de línea y columna del " +"código fuente para las instrucciones en ``byte_offset``. Establece el valor " +"en ``0`` cuando la información no está disponible para algún elemento en " +"particular." #: ../Doc/c-api/code.rst:78 msgid "Returns ``1`` if the function succeeds and 0 otherwise." From 36c0f4e4613d072ee557f692a66fb612f5abf35f Mon Sep 17 00:00:00 2001 From: Sofia Denner Date: Sun, 30 Oct 2022 15:03:03 -0300 Subject: [PATCH 2/8] translate 3/7 paragraphs --- c-api/code.po | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/c-api/code.po b/c-api/code.po index e694b6942f..2d9d9218c8 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -140,7 +140,7 @@ msgstr "" #: ../Doc/c-api/code.rst:78 msgid "Returns ``1`` if the function succeeds and 0 otherwise." -msgstr "" +msgstr "Retorna ``1`` si la función fue exitosa y ``0`` de lo contrario." #: ../Doc/c-api/code.rst:82 msgid "" @@ -148,6 +148,10 @@ msgid "" "reference to a :c:type:`PyBytesObject` representing the bytecode in a code " "object. On error, ``NULL`` is returned and an exception is raised." msgstr "" +"Equivalente al código Python ``getattr(co, 'co_code')``. Retorna una " +"referencia fuerte a un :c:type:`PyBytesObject` representando el *bytecode* " +"en un objecto código. En caso de error se retorna ``NULL`` y se lanza una " +"excepción." #: ../Doc/c-api/code.rst:87 msgid "" From 3c997545702a5dd5d5ea117b54254ef728f5a686 Mon Sep 17 00:00:00 2001 From: Sofia Denner Date: Sun, 30 Oct 2022 16:04:27 -0300 Subject: [PATCH 3/8] translate 4/7 paragraphs --- c-api/code.po | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c-api/code.po b/c-api/code.po index 2d9d9218c8..3314bf2d89 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -159,6 +159,10 @@ msgid "" "not necessarily represent the bytecode actually executed by CPython. The " "primary use case for this function is debuggers and profilers." msgstr "" +"Este ``PyBytesObject`` puede ser creado a pedido del intérprete y no " +"necesariamente representa el *bytecode* que es realmente ejecutado por " +"CPython. Los casos de uso principales para esta función son depuradores y " +"perfiladores." #: ../Doc/c-api/code.rst:95 msgid "" From 628b185ba9545fbdb0b6410a7738bd6a9714f8af Mon Sep 17 00:00:00 2001 From: Sofia Denner Date: Sun, 30 Oct 2022 16:19:10 -0300 Subject: [PATCH 4/8] translate 7/7 paragraphs --- c-api/code.po | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/c-api/code.po b/c-api/code.po index 3314bf2d89..33902811b3 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -170,6 +170,10 @@ msgid "" "reference to a :c:type:`PyTupleObject` containing the names of the local " "variables. On error, ``NULL`` is returned and an exception is raised." msgstr "" +"Equivalente al código Python ``getattr(co, 'co_varnames')``. Retorna una " +"nueva referencia a un :c:type:`PyTupleObject` que contiene los nombres de " +"las variables locales. En caso de error, retorna ``NULL`` y lanza una " +"excepción." #: ../Doc/c-api/code.rst:104 msgid "" @@ -178,6 +182,10 @@ msgid "" "variables that are referenced by nested functions. On error, ``NULL`` is " "returned and an exception is raised." msgstr "" +"Equivalente al código Python ``getattr(co, 'co_cellvars')``. Retorna una " +"nueva referencia a un :c:type:`PyTupleObject` que contiene los nombres de " +"las variables locales referenciadas por funciones anidadas. En caso de error, " +"retorna ``NULL`` y lanza una excepción." #: ../Doc/c-api/code.rst:113 msgid "" @@ -185,3 +193,6 @@ msgid "" "reference to a :c:type:`PyTupleObject` containing the names of the free " "variables. On error, ``NULL`` is returned and an exception is raised." msgstr "" +"Equivalente al código Python ``getattr(co, 'co_freevars')``. Retorna una " +"nueva referencia a un :c:type:`PyTupleObject` que contiene los nombres de " +"las variables libres. En caso de error, retorna ``NULL`` y lanza una excepción." From fcd1c6240f92f93dc9cf255b3e28a817fc80622a Mon Sep 17 00:00:00 2001 From: Sofia Denner Date: Sun, 30 Oct 2022 16:20:01 -0300 Subject: [PATCH 5/8] powrap changes --- c-api/code.po | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/c-api/code.po b/c-api/code.po index 33902811b3..6ebb5105fe 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -184,8 +184,8 @@ msgid "" msgstr "" "Equivalente al código Python ``getattr(co, 'co_cellvars')``. Retorna una " "nueva referencia a un :c:type:`PyTupleObject` que contiene los nombres de " -"las variables locales referenciadas por funciones anidadas. En caso de error, " -"retorna ``NULL`` y lanza una excepción." +"las variables locales referenciadas por funciones anidadas. En caso de " +"error, retorna ``NULL`` y lanza una excepción." #: ../Doc/c-api/code.rst:113 msgid "" @@ -195,4 +195,5 @@ msgid "" msgstr "" "Equivalente al código Python ``getattr(co, 'co_freevars')``. Retorna una " "nueva referencia a un :c:type:`PyTupleObject` que contiene los nombres de " -"las variables libres. En caso de error, retorna ``NULL`` y lanza una excepción." +"las variables libres. En caso de error, retorna ``NULL`` y lanza una " +"excepción." From 3338bce7d1bee805343d646e1910d006a01519bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Denner?= Date: Sun, 30 Oct 2022 16:37:12 -0300 Subject: [PATCH 6/8] add italics to bytecode in msg 87 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cristián Maureira-Fredes --- c-api/code.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-api/code.po b/c-api/code.po index 6ebb5105fe..42f6c617ed 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -160,7 +160,7 @@ msgid "" "primary use case for this function is debuggers and profilers." msgstr "" "Este ``PyBytesObject`` puede ser creado a pedido del intérprete y no " -"necesariamente representa el *bytecode* que es realmente ejecutado por " +"necesariamente representa el bytecode que es realmente ejecutado por " "CPython. Los casos de uso principales para esta función son depuradores y " "perfiladores." From 033a17e2f76092aa91879efbe9d55e8ad6f2a406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Denner?= Date: Sun, 30 Oct 2022 16:37:28 -0300 Subject: [PATCH 7/8] add italics to bytecode in msg 82 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cristián Maureira-Fredes --- c-api/code.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-api/code.po b/c-api/code.po index 42f6c617ed..bab8bb0c2f 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -149,7 +149,7 @@ msgid "" "object. On error, ``NULL`` is returned and an exception is raised." msgstr "" "Equivalente al código Python ``getattr(co, 'co_code')``. Retorna una " -"referencia fuerte a un :c:type:`PyBytesObject` representando el *bytecode* " +"referencia fuerte a un :c:type:`PyBytesObject` representando el bytecode " "en un objecto código. En caso de error se retorna ``NULL`` y se lanza una " "excepción." From ad7c749c7ab2e82822af84325afcabd420fb388d Mon Sep 17 00:00:00 2001 From: Sofia Denner Date: Sun, 30 Oct 2022 17:22:52 -0300 Subject: [PATCH 8/8] update translations for c-api/code --- c-api/code.po | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/c-api/code.po b/c-api/code.po index bab8bb0c2f..623f650c0c 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -11,7 +11,7 @@ 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: 2022-10-30 12:49-0300\n" +"PO-Revision-Date: 2022-10-30 17:20-0300\n" "Last-Translator: Sofía Denner \n" "Language-Team: python-doc-es\n" "Language: es\n" @@ -65,7 +65,6 @@ msgid "Return the number of free variables in *co*." msgstr "Retorna el número de variables libres en *co*." #: ../Doc/c-api/code.rst:38 -#, fuzzy msgid "" "Return a new code object. If you need a dummy code object to create a " "frame, use :c:func:`PyCode_NewEmpty` instead. Calling :c:func:`PyCode_New` " @@ -75,36 +74,38 @@ msgid "" "to result in incorrect execution or VM crashes. Use this function only with " "extreme care." msgstr "" -"Retorna un nuevo objeto de código. Si necesita un objeto de código ficticio " -"para crear un marco (*frame*), use :c:func:`PyCode_NewEmpty` en su lugar. " -"Llamando :c:func:`PyCode_New` directamente puede enlazarlo a una versión " -"precisa de Python ya que la definición del código de bytes cambia a menudo." +"Retorna un nuevo objeto de código. Si se necesita un objeto de código " +"ficticio para crear un marco (*frame*), usar :c:func:`PyCode_NewEmpty` en su " +"lugar. Llamando :c:func:`PyCode_New` directamente puede enlazarlo a una " +"versión precisa de Python ya que la definición del código de bytes cambia a " +"menudo. Muchos de los argumentos de esta función están relacionados " +"mutuamente de formas complejas, lo cual significa que cambios sutiles en " +"estos valores probablemente resulten en ejecuciones incorrectas o fallas en " +"la VM." #: ../Doc/c-api/code.rst:45 ../Doc/c-api/code.rst:55 msgid "Added ``exceptiontable`` parameter." -msgstr "" +msgstr "Se agregó el parámetro ``exceptiontable``." #: ../Doc/c-api/code.rst:50 -#, fuzzy msgid "" "Similar to :c:func:`PyCode_New`, but with an extra \"posonlyargcount\" for " "positional-only arguments. The same caveats that apply to ``PyCode_New`` " "also apply to this function." msgstr "" "Similar a :c:func:`PyCode_New`, pero con un \"*posonlyargcount*\" adicional " -"para argumentos solo posicionales." +"para argumentos solo posicionales. Las mismas advertencias que aplican a " +"``PyCode_New`` también aplican a esta función." #: ../Doc/c-api/code.rst:60 -#, fuzzy msgid "" "Return a new empty code object with the specified filename, function name, " "and first line number. The resulting code object will raise an ``Exception`` " "if executed." msgstr "" "Retorna un nuevo objeto de código vacío con el nombre de archivo " -"especificado, el nombre de la función y el número de la primera línea. Es " -"ilegal utilizar :func:`exec` o :func:`eval` en el objeto de código " -"resultante." +"especificado, el nombre de la función y el número de la primera línea. Si el " +"objeto código resultante es ejecutado, lanzará una ``Exception``." #: ../Doc/c-api/code.rst:66 msgid "" @@ -117,15 +118,14 @@ msgstr "" "un marco, use :c:func:`PyFrame_GetLineNumber` en su lugar." #: ../Doc/c-api/code.rst:69 -#, fuzzy msgid "" "For efficiently iterating over the line numbers in a code object, use `the " "API described in PEP 626 `_." msgstr "" "Para iterar de manera eficiente sobre los números de línea en un objeto de " -"código, use `la API descrita en PEP 626 `_." +"código, use `la API descrita en PEP 626 `_." #: ../Doc/c-api/code.rst:74 msgid "" @@ -149,8 +149,8 @@ msgid "" "object. On error, ``NULL`` is returned and an exception is raised." msgstr "" "Equivalente al código Python ``getattr(co, 'co_code')``. Retorna una " -"referencia fuerte a un :c:type:`PyBytesObject` representando el bytecode " -"en un objecto código. En caso de error se retorna ``NULL`` y se lanza una " +"referencia fuerte a un :c:type:`PyBytesObject` representando el bytecode en " +"un objecto código. En caso de error se retorna ``NULL`` y se lanza una " "excepción." #: ../Doc/c-api/code.rst:87