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 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
Next Next commit
Use one dictionary per file
We had a lot of conflict using a shared `dict` file for all the PRs. We are
using a simpler approach now where we create a dictionary file per .po
translated to avoid this conflicts.

When calling pospell, we concatenate all these files together and use the result
to call pospell properly.
  • Loading branch information
humitos committed Jul 11, 2020
commit 1b08bfcaf99ab96653684222665318ce8a3945ee
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.