A small library which adds "translate" and "blocktranslate" templatetags as and modified makemessages to work with them.
Project description
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
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 |
Changelog
0.0.0 (2019-06-22)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-translation-aliases-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e981fe363ad130fc4c7e22f7718b553059fb781bccd6d143a97d44a50be826da |
|
MD5 | f3a928a81ebc98a23f705ee3f5ef7ff2 |
|
BLAKE2b-256 | 7e1b1eb7b457e08147a8711bf91f92628e85813f45ea978537944a25351b3d7d |