Linter for gettext files (*.po)
.gitignore | ||
LICENSE | ||
padpo.py | ||
README.md | ||
requirements.txt | ||
screenshot.png |
padpo
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
…
😄 😆 😜 😂 (note : il était tard le soir quand j'ai trouvé le nom).
WORK IN PROGRESS
License
BSD 3-clause
Pull request are welcome.
Trademark
- Code in one file (TM) 👍
- It works on my machine (TM) 💻
- Need refactoring (TM) 👷
Usage
Using the activated virtual environment created during the installation:
python padpo.py a_file.po
or
python padpo.py a_directory_containing_po_files
Installation
- Create a virtual environment with Python 3.7 and above
python3.7 -m venv venv
- Activate the virtual environment
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Get grammalecte
pip install wheel wget https://grammalecte.net/grammalecte/zip/Grammalecte-fr-v1.5.0.zip unzip Grammalecte-fr-v1.5.0.zip -d Grammalecte-fr-v1.5.0 cd Grammalecte-fr-v1.5.0 pip install .