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:

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

Screenshot

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

    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 .
    

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.1.tar.gz (6.2 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.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: padpo-0.1.tar.gz
  • Upload date:
  • Size: 6.2 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.1.tar.gz
Algorithm Hash digest
SHA256 fb88d37e45857c43ecd14e042a42c4cfe0e281adf929a06c3aa457d9feec6153
MD5 3aa7880a1ddc44b03d1e07d28ff4725a
BLAKE2b-256 ecc24ed7abefbafb3fc17e7b29ee5d1bb344d8e19825a6cd72848028361e515f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: padpo-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5f3fd5bdb1b48a6f2bffa0c20b93f22d7d3b431b0ad27906ab2c2b3ff2006d1
MD5 d6e17e9c0c8e970e9e60b0a27418c801
BLAKE2b-256 57716e4298883902f63776796f71c3ac8f88d678153779f4f60baf29000e8f0e

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