Skip to content

Use one dictionary per file #547

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 2 commits into from
Jul 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Doc/CONTRIBUTING.rst
Doc/translation-memory.rst
Doc/upgrade-python-version.rst
locales/
dict.txt

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
12 changes: 12 additions & 0 deletions .overrides/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ Estamos trabajando para unificar el uso de un mismo set de diccionarios de espa
pero por el momento el chequeo que hacemos es con los diccionarios es_AR y es_ES.


¿Cómo agrego una palabra al diccionario?
----------------------------------------

Si ``pospell`` falla diciendo que no conoce una palabra, pero estamos seguros que esa palabra está bien escrita,
debemos agregarla al diccionario que ``pospell`` usa internamente para comprobar las palabras.

Para eso debes editar (o crear, si no existe) el archivo ``<archivopo>.txt`` dentro del direcorio ``dictionaries``
y agregar esa palabra al final de este archivo.
Nota que debes reemplazar ``<archivopo>`` por el nombre del archivo que estés traduciendo.
Por ejemplo, si estás traduciendo ``library/decimal.po``, debes editar/crear el archivos ``dictionaries/library_decimal.txt``.


¿Cómo puedo configurar git para manejar correctamente los finales de línea en Windows?
--------------------------------------------------------------------------------------

Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ install:
- powrap --version
script:
- powrap --check --quiet **/*.po
- pospell -p dict -l es_AR -l es_ES **/*.po
- cat dict dictionaries/*.txt > dict.txt
- pospell -p dict.txt -l es_AR -l es_ES **/*.po
- make build
branches:
only:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ progress: venv

.PHONY: spell
spell: venv
$(VENV)/bin/pospell -p dict -l es_ES **/*.po
cat dict dictionaries/*.txt > dict.txt
$(VENV)/bin/pospell -p dict.txt -l es_ES **/*.po


.PHONY: wrap
Expand Down
Empty file.