[Zope3-dev] Re: Internationalisation

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Jan 9 07:24:51 EST 2004


On Thursday 08 January 2004 05:28, Philipp von Weitershausen wrote:
> Marcus,
>
> > from zope.i18n import MessageIDFactory
> > _ = MessageIDFactory('lwproducts')
> >
> > class MessageSized:
> >
> >     implements(ISized)
> >
> >     def sizeForDisplay(self):
> >         'See ISized'
> >       [...]
> >         if number == 1:
> >             size = "1 reply"
>
>                size = _("1 reply")
>
> >         else:
> >             size = "${replies} replies"
>
>                size = _("${replies} replies")
>                size.mapping = {'replies':`number`}
>            return size

Thanks for pointing this mistake out. Marcus, thanks for making a comment in 
the Wikis.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training



More information about the Zope3-dev mailing list