From fa0667abd8c514097159111444bd65f1e6d3cf90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Sun, 12 Dec 2021 19:03:56 +0100 Subject: [PATCH 1/3] =?UTF-8?q?Traducci=C3=B3n=20library/http.server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cristián Maureira-Fredes --- library/http.server.po | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/library/http.server.po b/library/http.server.po index 99a558d127..b4a4a1db6f 100644 --- a/library/http.server.po +++ b/library/http.server.po @@ -13,12 +13,12 @@ msgstr "" "POT-Creation-Date: 2021-10-16 21:42+0200\n" "PO-Revision-Date: 2021-08-07 22:01+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.9.1\n" #: ../Doc/library/http.server.rst:2 @@ -30,10 +30,8 @@ msgid "**Source code:** :source:`Lib/http/server.py`" msgstr "**Código fuente:** :source:`Lib/http/server.py`" #: ../Doc/library/http.server.rst:17 -#, fuzzy msgid "This module defines classes for implementing HTTP servers." -msgstr "" -"Este módulo define clases para implementar servidores HTTP (servidores Web)." +msgstr "Este módulo define clases para implementar servidores HTTP." #: ../Doc/library/http.server.rst:22 msgid "" @@ -167,6 +165,9 @@ msgid "" "``path`` includes the query. Using the terminology of :rfc:`3986`, ``path`` " "here includes ``hier-part`` and the ``query``." msgstr "" +"Contiene la ruta de la solicitud. Si el componente de consulta de la URL " +"está presente, ``path`` incluye la consulta. Usando la terminología de: rfc: " +"`3986`, ``path`` aquí incluye ``hier-part`` y ``query``." #: ../Doc/library/http.server.rst:107 msgid "" @@ -321,7 +322,6 @@ msgstr "" "\\*`. Nunca deberías necesitar anularlo." #: ../Doc/library/http.server.rst:196 -#, fuzzy msgid "" "When a HTTP/1.1 compliant server receives an ``Expect: 100-continue`` " "request header it responds back with a ``100 Continue`` followed by ``200 " @@ -329,11 +329,11 @@ msgid "" "does not want the client to continue. For e.g. server can choose to send " "``417 Expectation Failed`` as a response header and ``return False``." msgstr "" -"Cuando un servidor compatible con HTTP/1.1 recibe un encabezado de solicitud " -"``Expect: 100-continue`` responde con un encabezado ``100 Continue`` seguido " -"de ``200 OK``. Este método puede ser anulado para generar un error si el " -"servidor no quiere que el cliente continúe. Por ejemplo, el servidor puede " -"elegir enviar ``417 Expectation Failed`` como encabezado de respuesta y " +"Cuando un servidor compatible con HTTP / 1.1 recibe un encabezado de " +"solicitud ``Expect: 100-continue``, responde con un ``100 Continue`` seguido " +"de encabezados ``200 OK``. Este método se puede anular para generar un error " +"si el servidor no desea que el cliente continúe. Por ej. El servidor puede " +"optar por enviar ``417 Expectation Failed`` como encabezado de respuesta y " "``return False``." #: ../Doc/library/http.server.rst:207 @@ -524,23 +524,22 @@ msgstr "" "la resolución del nombre, ahora siempre retorna la dirección IP." #: ../Doc/library/http.server.rst:323 -#, fuzzy msgid "" "This class serves files from the directory *directory* and below, or the " "current directory if *directory* is not provided, directly mapping the " "directory structure to HTTP requests." msgstr "" -"Esta clase sirve a los archivos del directorio actual y los de abajo, " -"mapeando directamente la estructura del directorio a las peticiones HTTP." +"Esta clase sirve archivos del directorio que no se proporciona *directory* " +"and below, or the current directory if *directory*, asignando directamente " +"la estructura del directorio a las solicitudes HTTP." #: ../Doc/library/http.server.rst:327 msgid "The *directory* parameter." -msgstr "" +msgstr "El parámetro *directory*." #: ../Doc/library/http.server.rst:330 -#, fuzzy msgid "The *directory* parameter accepts a :term:`path-like object`." -msgstr "Acepta un :term:`path-like object`." +msgstr "El parámetro *directory* acepta un :term:`path-like object`." #: ../Doc/library/http.server.rst:333 msgid "" From f346723d2f666657855becd98a474bc4e16f10e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Mon, 13 Dec 2021 21:47:48 +0100 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: rtobar --- library/http.server.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/http.server.po b/library/http.server.po index b4a4a1db6f..ad3f78e201 100644 --- a/library/http.server.po +++ b/library/http.server.po @@ -329,10 +329,10 @@ msgid "" "does not want the client to continue. For e.g. server can choose to send " "``417 Expectation Failed`` as a response header and ``return False``." msgstr "" -"Cuando un servidor compatible con HTTP / 1.1 recibe un encabezado de " +"Cuando un servidor compatible con HTTP/1.1 recibe un encabezado de " "solicitud ``Expect: 100-continue``, responde con un ``100 Continue`` seguido " "de encabezados ``200 OK``. Este método se puede anular para generar un error " -"si el servidor no desea que el cliente continúe. Por ej. El servidor puede " +"si el servidor no desea que el cliente continúe. Por ejemplo, el servidor puede " "optar por enviar ``417 Expectation Failed`` como encabezado de respuesta y " "``return False``." From 2aaed1a79de08052b87f2aae2da0f14c8ee2f164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Mon, 13 Dec 2021 21:51:53 +0100 Subject: [PATCH 3/3] =?UTF-8?q?Agregando=20correcci=C3=B3n=20revisi=C3=B3n?= =?UTF-8?q?=20+=20modificando=20script=20traducci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/http.server.po | 14 +++++++------- scripts/translate.py | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/library/http.server.po b/library/http.server.po index ad3f78e201..029c4cea30 100644 --- a/library/http.server.po +++ b/library/http.server.po @@ -329,10 +329,10 @@ msgid "" "does not want the client to continue. For e.g. server can choose to send " "``417 Expectation Failed`` as a response header and ``return False``." msgstr "" -"Cuando un servidor compatible con HTTP/1.1 recibe un encabezado de " -"solicitud ``Expect: 100-continue``, responde con un ``100 Continue`` seguido " -"de encabezados ``200 OK``. Este método se puede anular para generar un error " -"si el servidor no desea que el cliente continúe. Por ejemplo, el servidor puede " +"Cuando un servidor compatible con HTTP/1.1 recibe un encabezado de solicitud " +"``Expect: 100-continue``, responde con un ``100 Continue`` seguido de " +"encabezados ``200 OK``. Este método se puede anular para generar un error si " +"el servidor no desea que el cliente continúe. Por ejemplo, el servidor puede " "optar por enviar ``417 Expectation Failed`` como encabezado de respuesta y " "``return False``." @@ -529,9 +529,9 @@ msgid "" "current directory if *directory* is not provided, directly mapping the " "directory structure to HTTP requests." msgstr "" -"Esta clase sirve archivos del directorio que no se proporciona *directory* " -"and below, or the current directory if *directory*, asignando directamente " -"la estructura del directorio a las solicitudes HTTP." +"Esta clase sirve archivos del directorio *directory* e inferior, o del " +"directorio actual si no se proporciona *directory*, mapeando directamente la " +"estructura del directorio a las solicitudes HTTP." #: ../Doc/library/http.server.rst:327 msgid "The *directory* parameter." diff --git a/scripts/translate.py b/scripts/translate.py index 7b9b131374..e8568e47ef 100644 --- a/scripts/translate.py +++ b/scripts/translate.py @@ -46,8 +46,8 @@ "``[^`]+``", "`[^`]+`__", "`[^`]+`_", - "\*\*.+\*\*", # bold text between ** - "\*.+\*", # italic text between * + "\*\*[^\*]+\*\*", # bold text between ** + "\*[^\*]+\*", # italic text between * ] _exps = [re.compile(e) for e in _patterns]