Skip to content

Dejar solo es_ES como diccionario #960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 19, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/3.8' into usar-solo-es
  • Loading branch information
cmaureir committed Dec 18, 2020
commit 9d51fe2dcb6fe252233a34ad5ac33edfbf4646e4
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
push:
branches:
- 3.*
pull_request:

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Preparar Python v3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Sincronizar con CPython
run: |
git submodule sync
git submodule update --init --force cpython
- name: Instalar dependencias
run: |
sudo apt-get update
sudo apt-get install -y hunspell hunspell-es gettext
python -m pip install -r requirements.txt
pip list
pospell --version
powrap --version
- name: Powrap
run: powrap --check --quiet **/*.po
- name: Pospell
run: |
python scripts/create_dict.py
pospell -p dict.txt -l es_AR -l es_ES **/*.po
- name: Construir documentación
run: PYTHONWARNINGS=ignore::FutureWarning sphinx-build -j auto -W --keep-going -b html -d cpython/Doc/_build/doctree -D language=es . cpython/Doc/_build/html
4 changes: 2 additions & 2 deletions .overrides/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pospell. Pospell puede ser instalada en tu entorno de Python empleando pip
Una vez instalado, para chequear el fichero .po sobre el que estás trabajando,
ejecuta desde el directorio principal del repo::

awk 1 dict dictionaries/*.txt > dict.txt
pospell -p dict.txt -l es_AR -l es_ES path/tu_fichero.po
python scripts/create_dict.py # para crear el archivo 'dict.txt'
pospell -p dict.txt -l es_ES path/tu_fichero.po

pospell emplea la herramienta de diccionarios hunspell. Si pospell falla dando
como error que no tiene hunspell instalado, lo puedes instalar así:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ repos:
hooks:
- id: merge-dicts
name: merge-dicts
entry: ./scripts/merge-dicts.sh
language: script
entry: python ./scripts/create_dict.py
language: python
# This one requires package ``hunspell-es_es`` in Archlinux
- repo: https://github.com/JulienPalard/pospell
rev: v1.0.5
Expand Down
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ progress: venv

.PHONY: spell
spell: venv
# 'cat' tenia el problema que algunos archivos no tenían una nueva línea al final
# 'awk 1' agregará una nueva línea en caso que falte.
awk 1 dict dictionaries/*.txt > dict.txt
$(VENV)/bin/python scripts/create_dict.py
$(VENV)/bin/pospell -p dict.txt -l es_ES **/*.po


Expand Down
3 changes: 3 additions & 0 deletions TRANSLATORS
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,14 @@ Willian Garcia (@wgarcia1309)
Ana Medina Bernal (@ana-med)
Juan Biondi (@yeyeto2788)
Hugo Valencia Vargas(@psicobloc)
Azul Maia Vallejos Salgado (@bleucode)
Iracema Caballero (@iracaballero)
Andreu Vallbona Plazas (@avallbona)
Javier Artiga Garijo (@jartigag)
Ayose Figuera (@ayosefiguera)
Alvaro Cárdenas (@alvaruz)
Daniel Vera Nieto (@dveni)
Beatriz Cabrero Saiz (@Xhiel23)
Andros Fenollosa Hurtado (@tanrax)
María Saiz Muñoz (@mariasm87)
Sofia Carballo (@sofiacarballo)
Expand All @@ -119,3 +121,4 @@ Enrique Zárate (@enrique-zarate)
Jaume Montané (@jaumemy)
Endika Gil (@endikagil)
Federico Zuccolo (@fzuccolo)
Ulises Alexander Argüelles Monjaraz (@UlisesAlexanderAM)
22 changes: 9 additions & 13 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,15 @@

if not os.environ.get('SPHINX_GETTEXT') == 'True':
# Override all the files from ``.overrides`` directory
import glob
for root, dirs, files in os.walk('.overrides'):
for fname in files:
if fname == 'README.rst' and root == '.overrides':
continue
destroot = root.replace('.overrides', '').lstrip('/')
outputdir = os.path.join(
'cpython',
'Doc',
destroot,
fname,
)
os.system(f'ln -nfs `pwd`/{root}/{fname} {outputdir}')
from pathlib import Path
overrides_paths = Path('.overrides')

for path in overrides_paths.glob('**/*.*'):
if path.name == 'README.rst' and path.parent == '.overrides':
continue
destroot = str(path.parent).replace('.overrides', '').lstrip('/')
outputdir = Path('cpython/Doc') / destroot / path.name
os.system(f'ln -nfs `pwd`/{path.parent}/{path.name} {outputdir}')

gettext_compact = False
locale_dirs = ['../locales', 'cpython/locales'] # relative to the sourcedir
Expand Down
2 changes: 2 additions & 0 deletions dictionaries/library_cursesascii.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mnemónicos
teleimpresora
11 changes: 11 additions & 0 deletions dictionaries/library_email.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
submódulo
subcomponentes
parser
serializada
serializado
instanciando
serializa
serializarlo
serializan
extensibilidad
Unicode
6 changes: 6 additions & 0 deletions dictionaries/library_msilib.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Database
View
Summary
Information
Record
Directory
3 changes: 3 additions & 0 deletions dictionaries/library_tracemalloc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
desinstala


18 changes: 12 additions & 6 deletions distutils/_setuptools_disclaimer.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,29 @@
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python en Español 3.7\n"
"Project-Id-Version: Python en Español 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"PO-Revision-Date: 2020-11-27 17:49-0600\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"X-Generator: Poedit 2.4.1\n"

#: ../Doc/distutils/_setuptools_disclaimer.rst:3
msgid ""
"This document is being retained solely until the ``setuptools`` "
"documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html "
"independently covers all of the relevant information currently included here."
msgstr ""
"Este documento se conserva únicamente hasta que la documentación de "
"``setuptools`` en https://setuptools.readthedocs.io/en/latest/setuptools."
"html cubra de forma independiente toda la información relevante incluida "
"actualmente aquí."
39 changes: 28 additions & 11 deletions distutils/index.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,54 +6,60 @@
# Check https://github.com/python/python-docs-es/blob/3.8/TRANSLATORS to
# get the list of volunteers
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"PO-Revision-Date: 2020-11-21 17:08-0500\n"
"Language-Team: python-doc-es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Last-Translator: \n"
"Language: es\n"
"X-Generator: Poedit 2.4.1\n"

#: ../Doc/distutils/index.rst:5
msgid "Distributing Python Modules (Legacy version)"
msgstr ""
msgstr "Distribución de módulos de Python (versión heredada)"

#: ../Doc/distutils/index.rst
msgid "Authors"
msgstr ""
msgstr "Autores"

#: ../Doc/distutils/index.rst:7
msgid "Greg Ward, Anthony Baxter"
msgstr ""
msgstr "Greg Ward, Anthony Baxter"

#: ../Doc/distutils/index.rst
msgid "Email"
msgstr ""
msgstr "Email"

#: ../Doc/distutils/index.rst:8
msgid "distutils-sig@python.org"
msgstr ""
msgstr "distutils-sig@python.org"

#: ../Doc/distutils/index.rst:12
msgid ":ref:`distributing-index`"
msgstr ""
msgstr ":ref:`distributing-index`"

#: ../Doc/distutils/index.rst:13
msgid "The up to date module distribution documentations"
msgstr ""
msgstr "La documentación de distribución de módulos actualizada"

#: ../Doc/distutils/_setuptools_disclaimer.rst:3
msgid ""
"This document is being retained solely until the ``setuptools`` "
"documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html "
"independently covers all of the relevant information currently included here."
msgstr ""
"Este documento se conserva únicamente hasta que la documentación de "
"``setuptools`` en https://setuptools.readthedocs.io/en/latest/setuptools."
"html cubra de forma independiente toda la información relevante que se "
"incluye actualmente aquí."

#: ../Doc/distutils/index.rst:19
msgid ""
Expand All @@ -63,6 +69,12 @@ msgid ""
"recommendations section <https://packaging.python.org/guides/tool-"
"recommendations/>`__ in the Python Packaging User Guide for more information."
msgstr ""
"Esta guía solo cubre las herramientas básicas para compilar y distribuir "
"extensiones que se proporcionan como parte de esta versión de Python. Las "
"herramientas de terceros ofrecen alternativas más seguras y más fáciles de "
"usar. Consulte la `sección de recomendaciones rápidas <https://packaging."
"python.org/guides/tool-recommendations/>`__ en la Guía del usuario de Python "
"Packaging para obtener más información."

#: ../Doc/distutils/index.rst:25
msgid ""
Expand All @@ -71,3 +83,8 @@ msgid ""
"capabilities that ``setuptools`` builds on to allow Python developers to "
"make Python modules and extensions readily available to a wider audience."
msgstr ""
"Este documento describe las utilidades de distribución de Python (\"Distutils"
"\") desde el punto de vista del desarrollador del módulo, describiendo las "
"capacidades subyacentes sobre las que se basan las ``setuptools`` para "
"permitir que los desarrolladores de Python hagan que los módulos y "
"extensiones de Python estén disponibles para una audiencia más amplia."
14 changes: 9 additions & 5 deletions distutils/uploading.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,30 @@
# Check https://github.com/python/python-docs-es/blob/3.8/TRANSLATORS to
# get the list of volunteers
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"PO-Revision-Date: 2020-12-06 20:23-0300\n"
"Language-Team: python-doc-es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Last-Translator: \n"
"Language: es\n"
"X-Generator: Poedit 2.4.2\n"

#: ../Doc/distutils/uploading.rst:5
msgid "Uploading Packages to the Package Index"
msgstr ""
msgstr "Subir paquetes al índice de paquetes"

#: ../Doc/distutils/uploading.rst:7
msgid ""
"References to up to date PyPI documentation can be found at :ref:`publishing-"
"python-packages`."
msgstr ""
"Referencias a la documentación actualizada de PyPI pueden encontrarse en :"
"ref:`publishing-python-packages`."
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.