On 16 ene, 21:35, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> Please see some questions below:
>
>
>
> > This is the function, I'm sorry it's written in Spanish but I think
> > you can understan what I'm saying
>
> > def items(bloque, padre):
> >                 if padre == 0:
> >                         entradasMenu =
> > bloque.menu_set.filter(padre__isnull = True,
> > visible=True).order_by('orden')
> >                 else:
> >                         entradasMenu = bloque.menu_set.filter(padre =
> > padre,visible=True).order_by('orden')
> >                 salida=""
> >                 if entradasMenu:
> >                         for entrada in entradasMenu:
> > (1)----->>>               salida += u"\t<li><a href='%s' title='%s'>
> > %s</a>\n" %( entrada.enlace, entrada.nombre, entrada.nombre )
>
> Where do you keep the translations for entrada.enlace, entrada.nombre,
> entrada.nombre? Are they in a DB? If so, what's the model in which
> they are stored? Do these menus change often? If you had the language
> code available in this templatetag function, would you be able to
> fetch the correct translations from the DB?

Hi! Here I answer your questions:
I don't have the translations anywhere right now, I'd like to have
them in the po file. The menus don't change often, this is the reason
I think that it's better to keep translations in the po file (if
possilbe)
I don't have translations in the db.

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