msgid = _('YYYY-MM-DD')
res = translate(msgid, context=self.request, default=msgid)
return renderElement("span", contents=escape(res),
cssClass=self.cssClass)
Eh.. some lines disappeared ;) from the above code.
Should be something like:
from zope.i18nmessageid import MessageFactory
_ = MessageFactory("calendar")
msgid = _('%Y-%m-%d')
format = translate(msgid, context=self.request, default=msgid)
content = content.strftime(format)
return renderElement("span",
contents=escape(content),
cssClass=self.cssClass)
--
Maciej Wisniowski
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )