Linter for gettext files (*.po)
Go to file
Vincent Poulailleau 2cda64a5d4 v0.8.0 2020-08-25 17:52:27 +02:00
padpo fix #12 2020-08-25 17:41:10 +02:00
tests fix #14 2020-08-25 17:33:35 +02:00
.codeclimate.yml use travis and codeclimate 2020-08-02 21:37:35 +02:00
.gitignore add test data 2019-12-02 18:38:25 +01:00
.travis.yml use travis and codeclimate 2020-08-02 21:37:35 +02:00
LICENSE Initial commit 2019-11-05 16:30:14 +01:00
README.md GFM 2020-08-25 17:49:55 +02:00
deliver.sh ensure package upload 2019-12-03 10:59:27 +01:00
poetry.lock fix #18 2020-08-25 17:17:39 +02:00
pyproject.toml v0.8.0 2020-08-25 17:52:27 +02:00
screenshot.png fix #15 2020-08-25 17:11:45 +02:00

README.md

padpo

PyPI PyPI Travis Code style: Black Downloads Test Coverage Maintainability

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.

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

Screenshot

Color

By default, the output is colorless, and formatted like GCC messages. You can use -c or --color option to get a colored output.

Installation

Automatic installation

pip install padpo

Manual installation

  1. Install dependencies

    poetry install
    

    Note: this uses poetry that you can get here: https://poetry.eustace.io/docs/

  2. Use virtual environment$

    poetry shell
    

Update on PyPI

./deliver.sh

Changelog

v0.8.0 (2020-08-25)

  • 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)

v0.7.0 (2019-12-11)

  • add --version CLI option to display the current version of padpo
  • --input-path CLI option now accepts several paths as in padpo --input-path file1.po file2.po directory1 directory2 or padpo -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)