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.
Usage
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
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
poetry installNote: this uses
poetrythat you can get here: https://poetry.eustace.io/docs/
Update on PyPI
./deliver.sh
Changelog
v0.7.0 (2019-12-11)
- add
--versionCLI option to display the current version ofpadpo --input-pathCLI option now accepts several paths as inpadpo --input-path file1.po file2.po directory1 directory2orpadpo -i file1.po file2.po directory1 directory2
v0.6.0 (2019-12-9)
- check errors against defined glossaries
v0.5.0 (2019-12-3)
- check spelling errors with grammalecte
- tag releases!
v0.4.0 (2019-12-2)
- use poetry: https://poetry.eustace.io/docs/
- add some tests with tox and pytests
- fix some false positive issues with grammalecte
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.7.0.tar.gz.
File metadata
- Download URL: padpo-0.7.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0b8 CPython/3.8.0 Linux/4.15.0-72-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d9106fd57682c55eb6ecbcb7698fbb838a6a1ca4994f12e7aaa6d3bb8541df4
|
|
| MD5 |
59c770cc4a3e62edc4a4d9b47e65baa8
|
|
| BLAKE2b-256 |
067f0d872ff5c12e8f36f17ecacfb8c4f4b118cfe09d4fc7e97127de5a2da843
|
File details
Details for the file padpo-0.7.0-py3-none-any.whl.
File metadata
- Download URL: padpo-0.7.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0b8 CPython/3.8.0 Linux/4.15.0-72-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
131fcc377bb6c06cf872b7d43fe87a008c20c6e03983c49b9a724cb2adea3311
|
|
| MD5 |
a6ce903c74b301ee2afa3a6fbff67daf
|
|
| BLAKE2b-256 |
25f461c95ddcb262c5bb8d92e2b242a9c34803a3b094131c825a338200007906
|