You do not need to do that. Just use the EDIT page, create a language file for mexican and translate the format strings. This will be taken care of automatically everywhere.
On Aug 12, 3:06 pm, Francisco <betancourt.franci...@gmail.com> wrote: > Hello everyone. > > I have just started learning web2py. It's really great! > Now the question I have is about the locale. > I'm from Mexico so my applications must be in Spanish. In some part of > the application I want to get a date doing something like this from > within a view: > > {{=consulta.fecha_consulta.strftime("%A %d %B %Y")}} > > and it works, but the date is displayed in English. In what way can I > set the locale for the date to be displayed in Spanish? > > Thanks for the help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---