From 27728d782409158867f7a12b1629c153fa13dc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Thu, 2 Mar 2023 20:18:28 +0100 Subject: [PATCH 1/2] Traducido reference/simple_stmts Closes #1905 --- reference/simple_stmts.po | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/reference/simple_stmts.po b/reference/simple_stmts.po index d8c62a53c9..1efb8fe913 100644 --- a/reference/simple_stmts.po +++ b/reference/simple_stmts.po @@ -13,12 +13,12 @@ msgstr "" "POT-Creation-Date: 2022-10-25 19:47+0200\n" "PO-Revision-Date: 2021-08-02 19:21+0200\n" "Last-Translator: Cristián Maureira-Fredes \n" -"Language: es\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" #: ../Doc/reference/simple_stmts.rst:6 @@ -143,7 +143,7 @@ msgstr "" #: ../Doc/reference/simple_stmts.rst:127 msgid "Else:" -msgstr "" +msgstr "Sino:" #: ../Doc/reference/simple_stmts.rst:129 msgid "" @@ -803,6 +803,10 @@ msgid "" "If there isn't currently an active exception, a :exc:`RuntimeError` " "exception is raised indicating that this is an error." msgstr "" +"Si no hay expresiones presentes, :keyword:`raise` vuelve a lanzar la " +"excepción que se está manejando actualmente, que también se conoce como " +"*active exception*. Si actualmente no hay una excepción activa, se lanza una " +"excepción :exc:`RuntimeError` que indica que se trata de un error." #: ../Doc/reference/simple_stmts.rst:569 msgid "" @@ -825,7 +829,6 @@ msgstr "" "dfn:`value` es la propia instancia." #: ../Doc/reference/simple_stmts.rst:579 -#, fuzzy msgid "" "A traceback object is normally created automatically when an exception is " "raised and attached to it as the :attr:`__traceback__` attribute, which is " @@ -835,11 +838,11 @@ msgid "" "argument), like so::" msgstr "" "Normalmente, un objeto de rastreo se crea automáticamente cuando se lanza " -"una excepción y se le adjunta como atributo :attr:`__traceback__`, que se " -"puede escribir. Puede crear una excepción y establecer su propio rastreo en " -"un solo paso utilizando el método de excepción :meth:`with_traceback` (que " -"retorna la misma instancia de excepción, con su rastreo establecido en su " -"argumento), así::" +"una excepción y se le adjunta como el atributo :attr:`__traceback__`, que se " +"puede escribir. Puede crear una excepción y configurar su propio rastreo en " +"un solo paso usando el método de excepción :meth:`~BaseException." +"with_traceback` (que retorna la misma instancia de excepción, con su rastreo " +"establecido en su argumento), así:" #: ../Doc/reference/simple_stmts.rst:591 msgid "" @@ -869,6 +872,11 @@ msgid "" "statement, is used. The previous exception is then attached as the new " "exception's :attr:`__context__` attribute::" msgstr "" +"Un mecanismo similar funciona implícitamente si se genera una nueva " +"excepción cuando ya se está manejando una excepción. Se puede manejar una " +"excepción cuando se usa una cláusula :keyword:`except` o :keyword:`finally`, " +"o una declaración :keyword:`with`. La excepción anterior se adjunta como el " +"atributo :attr:`__context__` de la nueva excepción:" #: ../Doc/reference/simple_stmts.rst:636 msgid "" @@ -907,6 +915,10 @@ msgid "" "modified traceback. Previously, the exception was re-raised with the " "traceback it had when it was caught." msgstr "" +"Si el rastreo de la excepción activa se modifica en una cláusula :keyword:" +"`except`, una instrucción ``raise`` posterior vuelve a generar la excepción " +"con el rastreo modificado. Anteriormente, la excepción se volvía a generar " +"con el rastreo que tenía cuando se detectó." #: ../Doc/reference/simple_stmts.rst:667 msgid "The :keyword:`!break` statement" From 8cd720567a362a75e3c2279db79ff76550cc574e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Fri, 3 Mar 2023 09:59:04 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Marcos Medrano <786907+mmmarcos@users.noreply.github.com> --- reference/simple_stmts.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/simple_stmts.po b/reference/simple_stmts.po index 1efb8fe913..2db308a3ee 100644 --- a/reference/simple_stmts.po +++ b/reference/simple_stmts.po @@ -805,7 +805,7 @@ msgid "" msgstr "" "Si no hay expresiones presentes, :keyword:`raise` vuelve a lanzar la " "excepción que se está manejando actualmente, que también se conoce como " -"*active exception*. Si actualmente no hay una excepción activa, se lanza una " +"*excepción activa*. Si actualmente no hay una excepción activa, se lanza una " "excepción :exc:`RuntimeError` que indica que se trata de un error." #: ../Doc/reference/simple_stmts.rst:569