Please look up at the top of your codes, i think you'll see something
like this:

from django.utils.translation import ugettext_lazy as _

That's it!..

--
Ali Rıza

On Tue, 2009-08-18 at 15:08 -0700, Margie Roginski wrote:
> I was trying to figure out how to run the date filter, using
> SETTINGS.DATETIME_FORMAT as an argument.
> 
> When I grepped in the admin app I found this in object_history.html:
> 
> {{ action.action_time|date:_("DATETIME_FORMAT") }}
> 
> Can anyone give me a pointer as to how this works?  What is '_' in
> this case, and where is it defined?  I see {% load il8n %}, but it is
> very hard to grep for '_', can seem to see where it is being defined
> there.
> 
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to