From 7b9e62bf4b57c9623681bc713170dd1e62460041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20=C3=81lvarez?= Date: Tue, 5 Dec 2023 15:30:54 +0100 Subject: [PATCH 1/4] Traducido archivo library/cgi.po --- library/cgi.po | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/library/cgi.po b/library/cgi.po index f56b019aeb..578584379d 100644 --- a/library/cgi.po +++ b/library/cgi.po @@ -11,15 +11,16 @@ msgstr "" "Project-Id-Version: Python 3.8\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-10-12 19:43+0200\n" -"PO-Revision-Date: 2022-12-20 23:03+0800\n" +"PO-Revision-Date: 2023-12-05 15:28+0100\n" "Last-Translator: Rodrigo Tobar \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.13.0\n" +"X-Generator: Poedit 3.0.1\n" #: ../Doc/library/cgi.rst:2 msgid ":mod:`cgi` --- Common Gateway Interface support" @@ -77,7 +78,6 @@ msgstr "" "que el tamaño de las solicitudes es ilimitado." #: ../Doc/includes/wasm-notavail.rst:3 -#, fuzzy msgid ":ref:`Availability `: not Emscripten, not WASI." msgstr ":ref:`Disponibilidad `: no Emscripten, no WASI." @@ -1034,47 +1034,45 @@ msgstr "" #: ../Doc/library/cgi.rst:10 msgid "WWW" -msgstr "" +msgstr "WWW" #: ../Doc/library/cgi.rst:10 msgid "server" -msgstr "" +msgstr "servidor" #: ../Doc/library/cgi.rst:10 ../Doc/library/cgi.rst:389 #: ../Doc/library/cgi.rst:462 msgid "CGI" -msgstr "" +msgstr "CGI" #: ../Doc/library/cgi.rst:10 msgid "protocol" -msgstr "" +msgstr "protocolo" #: ../Doc/library/cgi.rst:10 msgid "HTTP" -msgstr "" +msgstr "HTTP" #: ../Doc/library/cgi.rst:10 msgid "MIME" -msgstr "" +msgstr "MIME" #: ../Doc/library/cgi.rst:10 msgid "headers" -msgstr "" +msgstr "cabeceras" #: ../Doc/library/cgi.rst:10 msgid "URL" -msgstr "" +msgstr "URL" #: ../Doc/library/cgi.rst:10 -#, fuzzy msgid "Common Gateway Interface" -msgstr ":mod:`cgi` --- Soporte de Interfaz de Entrada Común (CGI)" +msgstr "Interfaz de Entrada Común (CGI)" #: ../Doc/library/cgi.rst:389 msgid "security" -msgstr "" +msgstr "seguridad" #: ../Doc/library/cgi.rst:462 -#, fuzzy msgid "debugging" -msgstr "Depurando scripts de CGI" +msgstr "depurando scripts de CGI" From e7400bf95fe5b525a75ecb6a1c567994e054e7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20=C3=81lvarez?= Date: Mon, 11 Dec 2023 16:36:35 +0100 Subject: [PATCH 2/4] Traducido archivo library/cgi.po --- scripts/completed_index.py | 77 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100755 scripts/completed_index.py diff --git a/scripts/completed_index.py b/scripts/completed_index.py new file mode 100755 index 0000000000..4a54cc1c76 --- /dev/null +++ b/scripts/completed_index.py @@ -0,0 +1,77 @@ +#!/bin/python +""" +Script to identify and complete general index entries with original content. + +This script processes .po files, identifies out-of-order entries based on the +source order, and completes them with original content. + +Usage: + python script_name.py [list of .po files] + +If no list of .po files is provided, the script processes all .po files in the +current directory and its immediate subdirectories. +""" + +from pathlib import Path +import sys + +import polib + + +def out_of_order_entries(po_file): + """ + Compare the order of source lines against the order in which they appear in + the file, and return a generator with entries that are out of order. + """ + po_entries = [entry for entry in po_file if not entry.obsolete] + val_max = 0 + + for entry in po_entries: + source_index = int(entry.occurrences[0][1]) + + if source_index <= val_max: + yield entry + + val_max = max(val_max, source_index) + + +def complete_index(po_files=None): + """ + Identifies general index entries based on source order and completes them + with original content. + + args: + po_files: List of .po files to process. If not provided, it processes + all .po files in the current directory and immediate subdirectories. + """ + + # Read .po files + if not po_files: + po_files = Path(".").glob("**/*.po") + + for po_file_path in po_files: + + try: + po_file = polib.pofile(po_file_path) + + # Ask to complete entries out of order with original text + for entry in out_of_order_entries(po_file): + user_input = input(f"\n{entry}\nIs this a index entry? (y/N):") + if user_input.lower() == "y": + entry.msgstr = entry.msgid + po_file.save() # Save if an entry has been modified + + except KeyboardInterrupt: + break + + except Exception as e: + print(f"Error! file {po_file_path}: {e}\n") + + else: + print(f"\n---\n{po_file_path} processed!\n---") + + +if __name__ == "__main__": + po_files = sys.argv[1:] + complete_index(po_files) + From b3d95d8969e58482270e344d0d3935d649dd60bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20=C3=81lvarez?= Date: Mon, 11 Dec 2023 16:51:47 +0100 Subject: [PATCH 3/4] Traducido archivo library/cgi.po --- library/cgi.po | 14 +++---- scripts/completed_index.py | 77 -------------------------------------- 2 files changed, 7 insertions(+), 84 deletions(-) delete mode 100755 scripts/completed_index.py diff --git a/library/cgi.po b/library/cgi.po index 578584379d..191cacb471 100644 --- a/library/cgi.po +++ b/library/cgi.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Python 3.8\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-10-12 19:43+0200\n" -"PO-Revision-Date: 2023-12-05 15:28+0100\n" +"PO-Revision-Date: 2023-12-11 16:23+0100\n" "Last-Translator: Rodrigo Tobar \n" "Language-Team: python-doc-es\n" "Language: es\n" @@ -1038,7 +1038,7 @@ msgstr "WWW" #: ../Doc/library/cgi.rst:10 msgid "server" -msgstr "servidor" +msgstr "server" #: ../Doc/library/cgi.rst:10 ../Doc/library/cgi.rst:389 #: ../Doc/library/cgi.rst:462 @@ -1047,7 +1047,7 @@ msgstr "CGI" #: ../Doc/library/cgi.rst:10 msgid "protocol" -msgstr "protocolo" +msgstr "protocol" #: ../Doc/library/cgi.rst:10 msgid "HTTP" @@ -1059,7 +1059,7 @@ msgstr "MIME" #: ../Doc/library/cgi.rst:10 msgid "headers" -msgstr "cabeceras" +msgstr "headers" #: ../Doc/library/cgi.rst:10 msgid "URL" @@ -1067,12 +1067,12 @@ msgstr "URL" #: ../Doc/library/cgi.rst:10 msgid "Common Gateway Interface" -msgstr "Interfaz de Entrada Común (CGI)" +msgstr ":mod:`cgi` --- Soporte de Interfaz de Entrada Común (CGI)" #: ../Doc/library/cgi.rst:389 msgid "security" -msgstr "seguridad" +msgstr "security" #: ../Doc/library/cgi.rst:462 msgid "debugging" -msgstr "depurando scripts de CGI" +msgstr "Depurando scripts de CGI" diff --git a/scripts/completed_index.py b/scripts/completed_index.py deleted file mode 100755 index 4a54cc1c76..0000000000 --- a/scripts/completed_index.py +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/python -""" -Script to identify and complete general index entries with original content. - -This script processes .po files, identifies out-of-order entries based on the -source order, and completes them with original content. - -Usage: - python script_name.py [list of .po files] - -If no list of .po files is provided, the script processes all .po files in the -current directory and its immediate subdirectories. -""" - -from pathlib import Path -import sys - -import polib - - -def out_of_order_entries(po_file): - """ - Compare the order of source lines against the order in which they appear in - the file, and return a generator with entries that are out of order. - """ - po_entries = [entry for entry in po_file if not entry.obsolete] - val_max = 0 - - for entry in po_entries: - source_index = int(entry.occurrences[0][1]) - - if source_index <= val_max: - yield entry - - val_max = max(val_max, source_index) - - -def complete_index(po_files=None): - """ - Identifies general index entries based on source order and completes them - with original content. - - args: - po_files: List of .po files to process. If not provided, it processes - all .po files in the current directory and immediate subdirectories. - """ - - # Read .po files - if not po_files: - po_files = Path(".").glob("**/*.po") - - for po_file_path in po_files: - - try: - po_file = polib.pofile(po_file_path) - - # Ask to complete entries out of order with original text - for entry in out_of_order_entries(po_file): - user_input = input(f"\n{entry}\nIs this a index entry? (y/N):") - if user_input.lower() == "y": - entry.msgstr = entry.msgid - po_file.save() # Save if an entry has been modified - - except KeyboardInterrupt: - break - - except Exception as e: - print(f"Error! file {po_file_path}: {e}\n") - - else: - print(f"\n---\n{po_file_path} processed!\n---") - - -if __name__ == "__main__": - po_files = sys.argv[1:] - complete_index(po_files) - From 60422282894b64e09463b125c050f7deb2a3d22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20=C3=81lvarez?= Date: Sun, 24 Dec 2023 11:46:59 +0100 Subject: [PATCH 4/4] Traducido archivo library/cgi.po --- library/cgi.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/cgi.po b/library/cgi.po index 191cacb471..5b5ab46cb6 100644 --- a/library/cgi.po +++ b/library/cgi.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Python 3.8\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-10-12 19:43+0200\n" -"PO-Revision-Date: 2023-12-11 16:23+0100\n" +"PO-Revision-Date: 2023-12-24 11:45+0100\n" "Last-Translator: Rodrigo Tobar \n" "Language-Team: python-doc-es\n" "Language: es\n" @@ -1075,4 +1075,4 @@ msgstr "security" #: ../Doc/library/cgi.rst:462 msgid "debugging" -msgstr "Depurando scripts de CGI" +msgstr "debugging" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy