Linter for gettext files (*.po)
Created to help the translation of official Python docs in French: https://github.com/python/python-docs-fr
Il faut demander aux traducteurs s'ils n'ont pas de pot quand ils traduisent, maintenant ils ont padpo
…
:smile: :laughing: :stuck_out_tongue_winking_eye: :joy: (note : il était tard le soir quand j'ai trouvé le nom).
WORK IN PROGRESS
BSD 3-clause
Pull request are welcome.
Using the activated virtual environment created during the installation:
For a local input file:
padpo --input-path a_file.po
or for a local input directory:
padpo --input-path a_directory_containing_po_files
or for a pull request in python-docs-fr repository (here pull request #978)
padpo --python-docs-fr 978
or for a pull request in a GitHub repository (here python/python-docs-fr/pull/978)
padpo --github python/python-docs-fr/pull/978
By default, the output is colorless, and formatted like GCC messages. You can use -c
or --color
option to get a colored output.
pip install padpo
-
Install dependencies
poetry install
Note: this uses
poetry
that you can get here: https://poetry.eustace.io/docs/ -
Use virtual environment$
poetry shell
./deliver.sh
- use
pygrammalecte
default message for spelling errors
- use
pygrammalecte
- add continuous integration
- fix #12, #13, #14, #15, #17, #18, #20
- add
--color
CLI option to get a colored output (default is colorless)
- add
--version
CLI option to display the current version ofpadpo
--input-path
CLI option now accepts several paths as inpadpo --input-path file1.po file2.po directory1 directory2
orpadpo -i file1.po file2.po directory1 directory2
- check errors against defined glossaries
- check spelling errors with grammalecte
- tag releases!
- use poetry: https://poetry.eustace.io/docs/
- add some tests with tox and pytests
- fix some false positive issues with grammalecte