Proposal: load translations from settings.TEMPLATE_DIRS
|Reported by:||Joost Cassee||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Template paths from
settings.TEMPLATE_DIRS are not always (often not?) located within the Python project directory. These directories contain site-wide templates that may contain i18n strings that should be translated. It makes sense to locate the message catalogs for these string with the templates. I propose the following additional convention for translations:
- Look for a
localedirectory in every path in
settings.TEMPLATE_DIRS. If Django finds a translation, the translation will be installed.
This set-up is already possible by setting
settings.LOCALE_PATHS, but this ticket is about proposing a new convention for templates.
If this ticket is accepted I am willing to do the patch.
Change History (6)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|
comment:3 Changed 8 years ago by
|Triage Stage:||Design decision needed → Accepted|