Skip to main content

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:

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

Installation

Automatic installation

pip install padpo

Manual installation

  1. Create a virtual environment with Python 3.7 and above

    python3.7 -m venv venv
    
  2. Activate the virtual environment

    source venv/bin/activate
    
  3. Install dependencies

    pip install -r requirements.txt
    
  4. 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.py and in padpo.__init__
  • clean
    • rm -rf build/ dist/ eggs/
    • TODO make a script for this (and better clean)
  • python setup.py sdist
  • python setup.py bdist_wheel
  • twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

padpo-0.3.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

padpo-0.3.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file padpo-0.3.0.tar.gz.

File metadata

  • Download URL: padpo-0.3.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

Hashes for padpo-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a60d0df1ae99aaf21527dfc7884f17b0edd5afe8c142b81e7976cf10a59a17b8
MD5 090706137017fce5d0328179eb7b77dc
BLAKE2b-256 2b8b2458090860d3f371aa63127b2397880ca61a78ea4d7bd63999c7900b3f0c

See more details on using hashes here.

File details

Details for the file padpo-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: padpo-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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

Hashes for padpo-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab8e1d82eb2a7cbb4290d94507e8732315e06a9ee87e0dced20d53148dd330e5
MD5 1a933a332bf938774762f7dd83e987c0
BLAKE2b-256 cc7834e0096714a5412acccb78c92fff709dbd1c599f901596a000da15c7edee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page