Skip to content

Commit

Permalink
Merge branch '3.12' into traduccion-library-gc
Browse files Browse the repository at this point in the history
  • Loading branch information
martorelli617 authored Nov 8, 2023
2 parents dba20a2 + 33a5e9c commit 2b7f4f6
Show file tree
Hide file tree
Showing 43 changed files with 606 additions and 503 deletions.
63 changes: 53 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,77 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
# Obtención del código
- uses: actions/checkout@v4
with:
submodules: 'true'
# Necesario para que tj-actions/changed-files se ejecute
# dentro de un tiempo adecuado
fetch-depth: 2

# Instalación de dependencias
- name: Preparar Python v3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Sincronizar con CPython
- name: Configura dpkg/apt para ejecutarse de manera eficiente
uses: abbbi/github-actions-tune@v1
- name: Deshabilita triggers de postgresql-common
run: sudo sed -i '/postgresql-common/d' /var/lib/dpkg/triggers/File
- name: Instalar dependencias de sistema
run: |
git submodule update --init --depth=1 cpython
- name: Instalar dependencias
sudo apt-get install -y hunspell hunspell-es gettext language-pack-es locales-all
- name: Instalar dependencias de Python
run: |
sudo apt-get update
sudo apt-get install -y hunspell hunspell-es gettext language-pack-es
python -m pip install -r requirements.txt
- name: Listar paquetes y versiones
run: |
pip list
pospell --version
powrap --version
# Cálculo de los archivos .po a verificar.
# En el caso de un PR, sólo se chequean los .po que se están editando,
# mientras que en caseo de un push a las ramas 3.* queremos revisar
# todos los archivos
- name: Obtiene la lista de archivos .po con cambios (sólo en PRs)
if: github.event_name == 'pull_request'
id: changed-po-files
uses: tj-actions/changed-files@v40
with:
files: |
**/*.po
- name: Calcula lista de archivos .po a revisar
id: po-files-to-check
env:
PO_FILES_TO_CHECK: ${{ steps.changed-po-files.conclusion == 'skipped' && '**/*.po' || steps.changed-po-files.outputs.all_changed_files }}
run: |
echo "po_files_to_check=$PO_FILES_TO_CHECK" >> $GITHUB_OUTPUT
echo "any_po_files_to_check=`test -n \"$PO_FILES_TO_CHECK\" && echo true || echo false`" >> $GITHUB_OUTPUT
- name: Muestra outputs de steps anteriores para debugueo
env:
CHANGED_PO_FILES: ${{ toJson(steps.changed-po-files) }}
PO_FILES_TO_CHECK: ${{ toJson(steps.po-files-to-check) }}
run: |
echo "steps.changed-po-files=$PO_FILES_TO_CHECK"
echo "steps.po-files-to-change.$CHANGED_PO_FILES"
# Chequeos a realizar
- name: TRANSLATORS
run: |
diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS)
- name: Powrap
run: powrap --check --quiet **/*.po
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
run: powrap --check --quiet ${{ steps.po-files-to-check.outputs.po_files_to_check }}
- name: Sphinx lint
run: |
sphinx-lint */*.po
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
run: sphinx-lint ${{ steps.po-files-to-check.outputs.po_files_to_check }}
- name: Pospell
run: |
python scripts/check_spell.py
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
run: python scripts/check_spell.py ${{ steps.po-files-to-check.outputs.po_files_to_check }}

# Construcción de la documentación
- name: Construir documentación
run: |
# FIXME: Relative paths for includes in 'cpython'
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Agrega comentario a PR

on:
pull_request_target:

jobs:
pr-comment:
name: Entradas sin traducción
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
persist-credentials: false
- name: Preparar Python v3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Instalar dependencias
run: |
python -m pip install -r requirements.txt
- name: Obtiene lista de archivos con cambios
id: changed-files
uses: tj-actions/changed-files@v39
with:
files: |
**/*.po
- name: Calcular entradas faltantes
if: steps.changed-files.outputs.any_changed == 'true'
id: create-pr-comment
env:
CHANGED_PO_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
{
echo 'comment<<EOF'
python scripts/list_missing_entries.py --github $CHANGED_PO_FILES
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Agregar comentario con entradas faltantes
if: steps.changed-files.outputs.any_changed == 'true'
uses: thollander/actions-comment-pull-request@v2
with:
message: ${{ steps.create-pr-comment.outputs.comment }}
comment_tag: missing-entries
14 changes: 7 additions & 7 deletions library/abc.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2021-08-07 10:37+0200\n"
"Last-Translator: Cristián Maureira-Fredes <[email protected]>\n"
"Language: es\n"
"PO-Revision-Date: 2023-11-02 09:22+0100\n"
"Last-Translator: Marcos Medrano <[email protected]>\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.4\n"

#: ../Doc/library/abc.rst:2
msgid ":mod:`abc` --- Abstract Base Classes"
Expand All @@ -43,7 +44,6 @@ msgstr ""
"de tipos para números basados en CBAs.)"

#: ../Doc/library/abc.rst:20
#, fuzzy
msgid ""
"The :mod:`collections` module has some concrete classes that derive from "
"ABCs; these can, of course, be further derived. In addition, the :mod:"
Expand All @@ -54,8 +54,8 @@ msgstr ""
"El módulo :mod:`collections` tiene algunas clases concretas que se derivan "
"de ABC; estos, por supuesto, pueden derivarse más. Además, el submódulo :mod:"
"`collections.abc` tiene algunos ABC que se pueden usar para probar si una "
"clase o instancia proporciona una interfaz en particular, por ejemplo, si es "
"hash o si es un mapeo."
"clase o instancia proporciona una interfaz en particular, por ejemplo, si "
"es :term:`hashable` o si es un mapeo."

#: ../Doc/library/abc.rst:27
msgid ""
Expand Down
7 changes: 3 additions & 4 deletions library/asynchat.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +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: 2022-11-11 17:02-0300\n"
"Last-Translator: Sofía Denner <sofi.denner@gmail.com>\n"
"PO-Revision-Date: 2023-11-02 09:23+0100\n"
"Last-Translator: Marcos Medrano <marcosmedrano0@gmail.com>\n"
"Language-Team: python-doc-es\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"
"X-Generator: Poedit 3.4\n"

#: ../Doc/library/asynchat.rst:2
msgid ":mod:`asynchat` --- Asynchronous socket command/response handler"
Expand Down Expand Up @@ -73,7 +73,6 @@ msgstr ""
"`asyncore.dispatcher` genera nuevos objetos de canal :class:`asynchat."
"async_chat`, al recibir peticiones de conexión entrantes."

#, fuzzy
msgid ":ref:`Availability <availability>`: not Emscripten, not WASI."
msgstr ":ref:`Disponibilidad <availability>`: no Emscripten, no WASI."

Expand Down
7 changes: 3 additions & 4 deletions library/asyncio-protocol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2023-11-01 14:32+0100\n"
"PO-Revision-Date: 2023-11-02 09:24+0100\n"
"Last-Translator: Marcos Medrano <[email protected]>\n"
"Language-Team: python-doc-es\n"
"Language: es\n"
Expand Down Expand Up @@ -982,15 +982,14 @@ msgstr ""
"conexión esté abierta."

#: ../Doc/library/asyncio-protocol.rst:556
#, fuzzy
msgid ""
"However, :meth:`protocol.eof_received() <Protocol.eof_received>` is called "
"at most once. Once ``eof_received()`` is called, ``data_received()`` is not "
"called anymore."
msgstr ""
"Sin embargo, :meth:`protocol.eof_received() <Protocol.eof_received>` se "
"llama como máximo una vez. En el momento que se llama a `eof_received()`, ya "
"no se llama a ``data_received()``."
"llama como máximo una vez. Luego de llamar a ``eof_received()``, ya no se "
"llama más a ``data_received()``."

#: ../Doc/library/asyncio-protocol.rst:562
msgid ""
Expand Down
8 changes: 3 additions & 5 deletions library/asyncore.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +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: 2022-11-26 16:40-0300\n"
"Last-Translator: Sofía Denner <sofi.denner@gmail.com>\n"
"PO-Revision-Date: 2023-11-04 23:10+0100\n"
"Last-Translator: Marcos Medrano <marcosmedrano0@gmail.com>\n"
"Language-Team: python-doc-es\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"
"X-Generator: Poedit 3.4\n"

#: ../Doc/library/asyncore.rst:2
msgid ":mod:`asyncore` --- Asynchronous socket handler"
Expand Down Expand Up @@ -54,7 +54,6 @@ msgstr ""
"Este módulo proporciona la infraestructura básica para escribir servicio de "
"socket asincrónicos, clientes y servidores."

#, fuzzy
msgid ":ref:`Availability <availability>`: not Emscripten, not WASI."
msgstr ":ref:`Disponibilidad <availability>`: no Emscripten, no WASI."

Expand Down Expand Up @@ -496,7 +495,6 @@ msgstr ""
"pasará al constructor :class:`file_wrapper`."

#: ../Doc/library/asyncore.rst:283 ../Doc/library/asyncore.rst:292
#, fuzzy
msgid ":ref:`Availability <availability>`: Unix."
msgstr ":ref:`Disponibilidad <availability>`: Unix."

Expand Down
12 changes: 6 additions & 6 deletions library/audit_events.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ msgstr ""
"Project-Id-Version: Python en Español 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-12 19:43+0200\n"
"PO-Revision-Date: 2021-08-07 10:33+0200\n"
"Last-Translator: Cristián Maureira-Fredes <[email protected]>\n"
"Language: es\n"
"PO-Revision-Date: 2023-11-02 09:27+0100\n"
"Last-Translator: Marcos Medrano <[email protected]>\n"
"Language-Team: es <[email protected]>\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.4\n"

#: ../Doc/library/audit_events.rst:6
msgid "Audit events table"
Expand Down Expand Up @@ -134,6 +135,5 @@ msgid "``obj``"
msgstr "``obj``"

#: ../Doc/library/audit_events.rst:3
#, fuzzy
msgid "audit events"
msgstr "Evento de auditoría"
msgstr "eventos de auditoría"
24 changes: 12 additions & 12 deletions library/code.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2021-08-07 10:30+0200\n"
"Last-Translator: Cristián Maureira-Fredes <[email protected]>\n"
"Language: es\n"
"PO-Revision-Date: 2023-11-02 12:44+0100\n"
"Last-Translator: Marcos Medrano <[email protected]>\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.4\n"

#: ../Doc/library/code.rst:2
msgid ":mod:`code` --- Interpreter base classes"
Expand Down Expand Up @@ -305,7 +306,6 @@ msgid "Print an exit message when exiting."
msgstr "Imprime un mensaje de salida al salir."

#: ../Doc/library/code.rst:164
#, fuzzy
msgid ""
"Push a line of source text to the interpreter. The line should not have a "
"trailing newline; it may have internal newlines. The line is appended to a "
Expand All @@ -319,13 +319,13 @@ msgid ""
msgstr ""
"Envía una línea de texto fuente al intérprete. La línea no debe tener un "
"salto de línea al final; puede tener nuevas líneas internas. La línea se "
"agrega a un búfer y se llama al método :meth:`runsource` del intérprete con "
"el contenido concatenado del búfer y la nueva fuente. Si indica que el "
"comando se ejecutó o no es válido, el búfer se restablece; de lo contrario, "
"el comando está incompleto y el búfer se deja como estaba después de agregar "
"la línea. Si se requieren más entradas el valor de retorno es ``True``, "
"``False`` si la línea se procesó de alguna manera (esto es lo mismo que :"
"meth:`runsource`)."
"agrega a un búfer y se llama al método :meth:`~InteractiveInterpreter."
"runsource` del intérprete con el contenido concatenado del búfer y la nueva "
"fuente. Si indica que el comando se ejecutó o no es válido, el búfer se "
"restablece; de lo contrario, el comando está incompleto y el búfer se deja "
"como estaba después de agregar la línea. Si se requieren más entradas el "
"valor de retorno es ``True``, ``False`` si la línea se procesó de alguna "
"manera (esto es lo mismo que :meth:`!runsource`)."

#: ../Doc/library/code.rst:176
msgid "Remove any unhandled source text from the input buffer."
Expand Down
Loading

0 comments on commit 2b7f4f6

Please sign in to comment.