Skip to content
forked from mozilla/puente

Django/Jinja2 l10n extract/merge commands and things (Tower replacement)

License

Notifications You must be signed in to change notification settings

vericant/puente

 
 

Repository files navigation

puente

puente_logo.jpg

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
  • add pgettext and npgettext to template environment and they correctly escape things and work the same way as Jinja2's newstyle gettext
  • configured using Django settings
  • solid documentation
  • solid tests

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.io/
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 <https://puente.readthedocs.io/> for configuration and usage.

About

Django/Jinja2 l10n extract/merge commands and things (Tower replacement)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.6%
  • Makefile 2.5%
  • HTML 1.9%