I am trying to figure out if using the il8n stuff is the right approach for translating keyword names into multiline descriptions for use in ajax tooltips. The idea is I want to have a url that is like this:
url(r'tooltip/(?P<tooltip_key>)/$', get_tooltip) Then in my get_tooltip() view method I'd have something like this: def get_tooltip(request, tooltip_key): return HttpRepsponse(ugettext(tooltip_key)) The overall idea is that when the user clicks on a '?' next to a particular field, I'd use a jquery plugin to send a request for the tooltip description using a url that contains the field name in the <tooltip_key> portion of the url. Then I'd decode that to the full tooltip description using ugettext(). I'm thinking this would allow me to generate the tooltip description right now in my default language, but provide a mechanism for the future that would allow me to create tooltip descriptions in other languages as well. I haven't used this il8n support before, so I'm not sure if this is a good approach or if there is some better way to be doing this. Once concern I have is that we aren't currently using il8n for anything right now, so perhaps it is overkill to enable this just for these tooltips. Perhaps I should just be using a custom solution, or perhaps there is something more standard that folks are using? Anyone with some experience in this area that can comment? Much appreciated, Margie -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.