I have a internationalization problem to solve in the template system.
In my model:
[...]
text_pt = TextField()
text_en = TextField()
[...]

In my template:
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}

{% ifequal LANGUAGE_CODE 'en' %}
{{ object.text_en }}
{% else %}
{{ object.text_pt }}
{% endifequal %}

Any idea to resolve this , this don't scale. If I what to add another 
language, I have to patch all of my templates.

Thanks in advance,
Nuno

--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to