From 935318217bc498495d3b4686b7184605ede1b702 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Fri, 19 Mar 2021 13:11:08 +0100 Subject: [PATCH 1/7] Make pospell to pass in 3.9 --- library/codecs.po | 3 +-- library/tarfile.po | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/library/codecs.po b/library/codecs.po index 1ac4c7cf19..dbcd016e5d 100644 --- a/library/codecs.po +++ b/library/codecs.po @@ -2652,9 +2652,8 @@ msgid "mac_latin2" msgstr "mac_latin2" #: ../Doc/library/codecs.rst:1201 -#, fuzzy msgid "maclatin2, maccentraleurope, mac_centeuro" -msgstr "maclatin2, maccentraleurope" +msgstr "maclatin2, maccentraleurope, mac_centeuro" #: ../Doc/library/codecs.rst:1204 msgid "mac_roman" diff --git a/library/tarfile.po b/library/tarfile.po index 884ff2c688..5e4d9f7648 100644 --- a/library/tarfile.po +++ b/library/tarfile.po @@ -873,7 +873,6 @@ msgid "Added the *set_attrs* parameter." msgstr "Se agregó el parámetro *set_attrs*." #: ../Doc/library/tarfile.rst:448 -#, fuzzy msgid "" "Extract a member from the archive as a file object. *member* may be a " "filename or a :class:`TarInfo` object. If *member* is a regular file or a " @@ -881,10 +880,6 @@ msgid "" "existing members, :const:`None` is returned. If *member* does not appear in " "the archive, :exc:`KeyError` is raised." msgstr "" -"Extract a member from the archive as a file object. *member* may be a " -"filename or a :class:`TarInfo` object. If *member* is a regular file or a " -"link, an :class:`io.BufferedReader` object is returned. Otherwise, :const:" -"`None` is returned." #: ../Doc/library/tarfile.rst:454 msgid "Return an :class:`io.BufferedReader` object." From 6e08e33548344bd6ef280f1772827686540cc9f5 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Fri, 19 Mar 2021 13:21:15 +0100 Subject: [PATCH 2/7] Ignore _setuptools_disclaimer.rst --- conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conf.py b/conf.py index 9e9674cdd2..08e57219c6 100644 --- a/conf.py +++ b/conf.py @@ -44,6 +44,7 @@ _exclude_patterns = [ # This file is not included and it not marked as :orphan: '*/distutils/_setuptools_disclaimer.rst', + 'cpython/Doc/distutils/_setuptools_disclaimer.rst', ] if 'exclude_patterns' in globals(): exclude_patterns += _exclude_patterns From 1906acc6cb64ef98bff63eca71dcd248ca9c8a85 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Fri, 19 Mar 2021 13:21:47 +0100 Subject: [PATCH 3/7] Fix: inconsistent term references in translated message --- library/sys.po | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/sys.po b/library/sys.po index 4ff042c298..96de4f108f 100644 --- a/library/sys.po +++ b/library/sys.po @@ -85,7 +85,6 @@ msgstr "" "argumentos." #: ../Doc/library/sys.rst:40 -#, fuzzy msgid "" "Calling :func:`sys.addaudithook` will itself raise an auditing event named " "``sys.addaudithook`` with no arguments. If any existing hooks raise an " @@ -93,7 +92,7 @@ msgid "" "and the exception suppressed. As a result, callers cannot assume that their " "hook has been added unless they control all existing hooks." msgstr "" -"Lanza un evento de auditoría ``sys.addaudithook`` sin argumentos. Si algún " +"Lanza un evento de auditoría :func:``sys.addaudithook`` sin argumentos. Si algún " "gancho existente genera una excepción derivada de :class:`RuntimeError`, el " "nuevo gancho no se agregará y la excepción se suprimirá. Como resultado, las " "personas que llaman no pueden asumir que su enlace se ha agregado a menos " From 64515a2550493868101d789a8f67618d625c2041 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Fri, 19 Mar 2021 13:26:23 +0100 Subject: [PATCH 4/7] powrap :/ --- library/sys.po | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/sys.po b/library/sys.po index 96de4f108f..81aff2656f 100644 --- a/library/sys.po +++ b/library/sys.po @@ -92,11 +92,11 @@ msgid "" "and the exception suppressed. As a result, callers cannot assume that their " "hook has been added unless they control all existing hooks." msgstr "" -"Lanza un evento de auditoría :func:``sys.addaudithook`` sin argumentos. Si algún " -"gancho existente genera una excepción derivada de :class:`RuntimeError`, el " -"nuevo gancho no se agregará y la excepción se suprimirá. Como resultado, las " -"personas que llaman no pueden asumir que su enlace se ha agregado a menos " -"que controlen todos los enlaces existentes." +"Lanza un evento de auditoría :func:``sys.addaudithook`` sin argumentos. Si " +"algún gancho existente genera una excepción derivada de :class:" +"`RuntimeError`, el nuevo gancho no se agregará y la excepción se suprimirá. " +"Como resultado, las personas que llaman no pueden asumir que su enlace se ha " +"agregado a menos que controlen todos los enlaces existentes." #: ../Doc/library/sys.rst:47 #, fuzzy From 45be85fde03d6982c32e2e9f0e321936802451d4 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Fri, 19 Mar 2021 13:43:24 +0100 Subject: [PATCH 5/7] Inconsistent term --- library/sys.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/sys.po b/library/sys.po index 81aff2656f..678470b0e1 100644 --- a/library/sys.po +++ b/library/sys.po @@ -92,7 +92,7 @@ msgid "" "and the exception suppressed. As a result, callers cannot assume that their " "hook has been added unless they control all existing hooks." msgstr "" -"Lanza un evento de auditoría :func:``sys.addaudithook`` sin argumentos. Si " +"Lanza un evento de auditoría :func:`sys.addaudithook` sin argumentos. Si " "algún gancho existente genera una excepción derivada de :class:" "`RuntimeError`, el nuevo gancho no se agregará y la excepción se suprimirá. " "Como resultado, las personas que llaman no pueden asumir que su enlace se ha " From 57e4e40eabd6857630932748d584af84b5dfa970 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Fri, 19 Mar 2021 13:44:25 +0100 Subject: [PATCH 6/7] Properly exclude a file --- conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index 08e57219c6..26ae74f940 100644 --- a/conf.py +++ b/conf.py @@ -42,8 +42,8 @@ # Extend settings from upstream _exclude_patterns = [ - # This file is not included and it not marked as :orphan: - '*/distutils/_setuptools_disclaimer.rst', + # This file is not included and it's not marked as :orphan: + 'distutils/_setuptools_disclaimer.rst', 'cpython/Doc/distutils/_setuptools_disclaimer.rst', ] if 'exclude_patterns' in globals(): From 363cb45a396ae2dc9915cbc3e2c4db8435483190 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Fri, 19 Mar 2021 13:56:28 +0100 Subject: [PATCH 7/7] Remove this paragraph as because makes Sphinx to break cpython/Doc/library/sys.rst:38:inconsistent term references in translated message. original: [':func:`sys.addaudithook`', ':class:`RuntimeError`'], translated: [':ref:`auditing event `'] --- library/sys.po | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/library/sys.po b/library/sys.po index 678470b0e1..9a973d56c5 100644 --- a/library/sys.po +++ b/library/sys.po @@ -76,28 +76,6 @@ msgstr "" "func:`PySys_AddAuditHook` se llaman primero, seguidos de los ganchos " "agregados en el intérprete actual." -#: ../Doc/library/sys.rst:38 -msgid "" -"Raises an :ref:`auditing event ` ``sys.addaudithook`` with no " -"arguments." -msgstr "" -"Lanza un :ref:`auditing event ` ``sys.addaudithook`` sin " -"argumentos." - -#: ../Doc/library/sys.rst:40 -msgid "" -"Calling :func:`sys.addaudithook` will itself raise an auditing event named " -"``sys.addaudithook`` with no arguments. If any existing hooks raise an " -"exception derived from :class:`RuntimeError`, the new hook will not be added " -"and the exception suppressed. As a result, callers cannot assume that their " -"hook has been added unless they control all existing hooks." -msgstr "" -"Lanza un evento de auditoría :func:`sys.addaudithook` sin argumentos. Si " -"algún gancho existente genera una excepción derivada de :class:" -"`RuntimeError`, el nuevo gancho no se agregará y la excepción se suprimirá. " -"Como resultado, las personas que llaman no pueden asumir que su enlace se ha " -"agregado a menos que controlen todos los enlaces existentes." - #: ../Doc/library/sys.rst:47 #, fuzzy msgid ""