Hi,

I'm trying translate url's in my templates but i don't know how, i'm
using tags url and trans
i'm try this

{% url trans "home_url_presentation" %}
{% url | trans "home_url_presentation" %}
but do not anything

in locale .po files:
/en/LC_MESSAGES/django.po
msgid "home_url_presentation"
msgstr "en_home_url_presentation"

/es/LC_MESSAGES/django.po
msgid "home_url_presentation"
msgstr "es_home_url_presentation"

in urls.py :
url(r'^presentation/$', 'direct_to_template', {'template':
'home_presentation.html'}, name="en_home_url_presentation"),
url(r'^presentacion/$', 'direct_to_template', {'template':
'home_presentation.html'}, name="es_home_url_presentation"),

and how i translate urls in templates with tag URL??

thanks in advance
Ferran Parra


--~--~---------~--~----~------------~-------~--~----~
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