Hi.

I'm just in the process of translating my project and have hit a
stumbling block.

I use several includes for longer text which I don't want to have
cluttering up my template.
Can I translate the parameter to an {% include %} template tag?

I have a file welcome.html, which includes a lot of text. I don't want
to put the whole HTML text into the po file, so I throught I'd just
translate the inlcude file name, to welcome.html and welcome_en.html,
so that depending on language I would end up with either
{% include "welcome.html" %}
or
{% include "welcome_en.html" %}
and then provide both files.

I tried this, but neither
{% include {% trans "welcome.html" %} %}
nor
{% include "{% blocktrans %}welcome.html{% endblocktrans %}" %}
appear to work (make-messages doesn't even seem to find these
translation strings).

What would be the correct/best way to do this?

  Daniel


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to