django-monkeytranslate-0.1.1
توضیحات
Monkeypatch django do-translation
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-monkeytranslate-0.1.1 |
| نام | django-monkeytranslate |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ashley Camba Garrido |
| ایمیل نویسنده | ashwoods@gmail.com |
| آدرس صفحه اصلی | https://github.com/ashwoods/django-monkeytranslate |
| آدرس اینترنتی | https://pypi.org/project/django-monkeytranslate/ |
| مجوز | BSD |
Django monkey patch translate
=============================
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`
نحوه نصب
نصب پکیج whl django-monkeytranslate-0.1.1:
pip install django-monkeytranslate-0.1.1.whl
نصب پکیج tar.gz django-monkeytranslate-0.1.1:
pip install django-monkeytranslate-0.1.1.tar.gz