Linter for gettext files
Project description
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…
:smile: :laughing: :stuck_out_tongue_winking_eye: :joy: (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) :+1:
- It works on my machine (TM) :computer:
- Need refactoring (TM) :construction_worker:
Usage
Using the activated virtual environment created during the installation:
For a local input file:
python padpo.py --input-path a_file.po
or for a local input directory:
python padpo.py --input-path a_directory_containing_po_files
or for a pull request in python-docs-fr repository (here pull request #978)
python padpo.py --python-docs-fr 978
or for a pull request in a GitHub repository (here python/python-docs-fr/pull/978)
python padpo.py --github python/python-docs-fr/pull/978
Installation
Automatic installation
pip install padpo
Manual 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 (normally this is done automatically at first usage)
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 .
Update on PyPI
- git pull
- activate venv
- change version in
setup.pyand inpadpo.__init__ - clean
rm -rf build/ dist/ eggs/- TODO make a script for this (and better clean)
python setup.py sdistpython setup.py bdist_wheeltwine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file padpo-0.2.0.tar.gz.
File metadata
- Download URL: padpo-0.2.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a3418465c352cb026dd8403c4118aa5a681f98c18006b88c694dae52ce7f76c
|
|
| MD5 |
417078555b2fa8f1a48ae61ec03678c6
|
|
| BLAKE2b-256 |
d2c2acabb67bc9b0facc6fdfe8a03ad74ce43be7b6aad35016d36fa9b1e42e90
|
File details
Details for the file padpo-0.2.0-py3-none-any.whl.
File metadata
- Download URL: padpo-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7b91289649020cec7a9ed3a0a694beede4c26818774ec67ef89af7305bde52a
|
|
| MD5 |
88736fdb7e3ca1f69be102838cc9c60a
|
|
| BLAKE2b-256 |
344730eb2932acbc298ae1e9eff757e3984c973563d6eaed06d84ec4ec5d3b1a
|