Monkeypatch django do-translation
Project description
Small utility app for monkeypatching Django do_translate functions. It enables you to easily mark translations by wrapping them in curly braces, or do more funky stuff like override how static translations are handled completely.
Install
Install into your python environment of choice using pip from the parent folder:
pip install django-monkeytranslate
Settings
In your settings file include:
MONKEYTRANSLATE_ENABLED = True
And if you want to define the callable:
MONKEYTRANSLATE_CALLABLE = callable
- Take a look at monkeytranslate.utils for an example of a callable to
monkeypatch django.utils.translation.trans_real.do_translate
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
File details
Details for the file django-monkeytranslate-0.1.1.tar.gz
.
File metadata
- Download URL: django-monkeytranslate-0.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32d0e11a295ab696c553a4849e71fcfd251db2f74cbe65318bc4f69686a11f87 |
|
MD5 | 3f6c85856394ff2eb4263e5d33d3cd09 |
|
BLAKE2b-256 | f8c8175f8712ffa78ea3c3cb048ad89949b6c878e47caa612e9cc42108fa70e3 |