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
Metadata
Release files for django-monkeytranslate 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-monkeytranslate-0.1.1.tar.gz | 2.1 kB | Without provenance | Details for django-monkeytranslate-0.1.1.tar.gz |
Release files / django-monkeytranslate-0.1.1.tar.gz
| Download URL | django-monkeytranslate-0.1.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32d0e11a295ab696c553a4849e71fcfd251db2f74cbe65318bc4f69686a11f87
|
|
BLAKE2b-256 checksum How to use checksums |
f8c8175f8712ffa78ea3c3cb048ad89949b6c878e47caa612e9cc42108fa70e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-monkeytranslate 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.