[schooltool-dev] Date in views
Jean-François Roche
jfroche at jfroche.be
Wed Dec 6 13:09:28 EST 2006
Hello,
Wondering what's the best way to translate dates ? For the moment (in
calendar) a date is printed: "Wednesday, 2006-12-06" , i need it in
french and to the European format (Mercredi, 06-12-2006).
What's the nicest solution ?
* Work in the view so that calling from the template for ex:
"view/currentDate" just return the date in the right language with the
right format.
* Call a method from a tool with the date that will translate the
date. Ex: "python:datetimeTool.translate(view.currentDate)" in the
template ? [solution used in Plone] Next question such a tool already
exists ?
* Work with i18n:translate ?
* Something else?
Thanks for your help,
Jeff
More information about the Schooltool-dev
mailing list