Hi Esau,

Thanks for reply my messages,

for do that:
{% if es_home_url_presentation %}
something
{% if en_home_url_presentation %}
something else

i'm before need  trans tag because "es_home_url_presentation" and
"en_home_url_presentation" are a i18n string's  for this tag, and
represents the named url's in urls.py

I think, can i extends url tag for use i18n before??

On Sep 22, 10:16 am, Esau Rodriguez <[EMAIL PROTECTED]> wrote:
> On Saturday 22 September 2007 08:51:11 ferran wrote:
>
> > 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
>
> I see what you want to get but i'm not sure you can do it using your aproach.
> I probably try to write my own templatetag; however you may rather to use
>
> {% if es_home_url_presentation %}
> something
> {% if en_home_url_presentation %}
> something else
>
> --
> ==============================================
> Esaú Rodríuez Sicilia
> Email1: [EMAIL PROTECTED]
> Email2: [EMAIL PROTECTED]
> IM1: [EMAIL PROTECTED]
> IM2: [EMAIL PROTECTED]
> IM3: [EMAIL PROTECTED]
> C/Callao de Lima 38 3ºizq 38002 S/C de Tenerife
> ==============================================


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