Skip to main content

Overview

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

Changelog

0.0.0 (2019-06-22)

  • First release on PyPI.

Metadata

Release files for django-translation-aliases 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-translation-aliases 0.1.0
File Size Uploaded
django-translation-aliases-0.1.0.tar.gz 26.4 kB Details

Release files / django-translation-aliases-0.1.0.tar.gz

Download URL django-translation-aliases-0.1.0.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e981fe363ad130fc4c7e22f7718b553059fb781bccd6d143a97d44a50be826da
BLAKE2b-256 checksum
How to use checksums
7e1b1eb7b457e08147a8711bf91f92628e85813f45ea978537944a25351b3d7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/3.6.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page