Skip to main content

Strings extraction and other tools

Project description

puente

This is an experiment. Don’t use this, yet.

Puente is a Python library that handles l10n things for Django projects using Jinja2 templates.

  • extract command to extract strings from your project and shove them into a .pot file

  • merge command that merges new strings from a .pot file into locale .po files

  • code to collapse whitespace for Jinja2’s trans block

  • code to mark all gettext output as safe in templates

  • driven from Django settings

  • solid documentation

This is derived from Tower, but heavily changed.

Code:

https://github.com/mozilla/puente/

Issues:

https://github.com/mozilla/puente/issues

License:

BSD 3-clause; See LICENSE

Contributors:

See AUTHORS.rst

Documentation:

https://puente.readthedocs.org/en/latest/

IRC:

#puente on irc.mozilla.org

Install

From PyPI

Run:

$ pip install puente

For hacking

Run:

# Clone the repository
$ git clone https://github.com/mozilla/puente

# Create a virtualenvironment
...

# Install Puente and dev requirements
$ pip install -r requirements-dev.txt

Usage

See documentation for configuration and usage.

History

0.2 (October 30th, 2015)

  • fix requirements

  • remove mention of elasticutils in release process

  • fix meta information regarding python 3–we don’t support that, yet

0.1 (October 30th, 2015)

Initial writing. Everything has changed!

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

puente-0.2.tar.gz (29.9 kB view hashes)

Uploaded Source

Built Distribution

puente-0.2-py2.py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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