#14181: Template tag needed to disable/force L10N formatting on a per-variable
basis
-------------------------------------------+--------------------------------
Reporter: russellm | Owner: piquadrat
Status: new | Milestone: 1.3
Component: Internationalization | Version: 1.2
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by piquadrat):
* owner: nobody => piquadrat
* milestone: => 1.3
Comment:
How about
{{{
{% localize off %}
{{ value }}
{% endlocalize %}
{% localize "de-ch" %}
{{ value }}
{% endlocalize %}
}}}
using `{% localize off %}` instead of `{% unlocalized %}` would save us
one additional tag in the global namespace. Granted, `{% endlocalize %}`
to re-enable localization looks a little weird, but there's precedence in
the `{% autoescape %}` tag.
I'll adapt my patch from #13617 to this syntax and upload it here.
--
Ticket URL: <http://code.djangoproject.com/ticket/14181#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.