Wiadomość napisana w dniu 2008-10-23, o godz. 22:26, przez Gerard
Petersen:
> I have an include tag to a file with context help information. My
> app is fully i18n-ed, but I don't want to handle the bigger the
> helptext via i18n because of its size. I want to end up with
> something like this: myapp/customer_side.en.html.
>
> The code snippet:
>
> <div id="right">
> {% include "myapp/customer_side.html" %}
> </div>
>
> I'm thinking about a custom templatetag that picks up on the locale.
> Does anybody have other suggestions on how to do this?
I'd suggest writing your own template loader, it works also with {%
include %} tag. There is a section on this in Django Book (maybe this
should find its way to official docs too?).
--
We read Knuth so you don't have to. - Tim Peters
Jarek Zgoda, R&D, Redefine
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---