Skip to content

A small library which provides "translate" and "blocktranslate" templatetags

License

Notifications You must be signed in to change notification settings

roverdotcom/django-translation-aliases

Repository files navigation

Overview

docs Documentation Status
tests
Travis-CI Build Status
Coverage Status
package

A small library which adds "translate" and "blocktranslate" template tags and modifies makemessages to work with them.

  • Free software: BSD 3-Clause License

Installation

pip install django-translation-aliases

Add django_translation_aliases to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django_translation_aliases',
)

This will add the translate and blocktranslate template tags to the i18n library so that you can use them in your templates:

{% load i18n %}
{% translate "This message" %}
{% blocktranslate trimmer %}
    Another message
{% endblocktranslate %}

Documentation

https://django-translation-aliases.readthedocs.io/

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows
set PYTEST_ADDOPTS=--cov-append
tox
Other
PYTEST_ADDOPTS=--cov-append tox

About

A small library which provides "translate" and "blocktranslate" templatetags

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published