[Zope3-Users] zope.i18n.locales and currency

Christian Theune ct at gocept.com
Fri May 23 09:48:29 EDT 2008


On Fri, May 23, 2008 at 01:34:21PM +0200, Brian Sutherland wrote:
> On Fri, May 23, 2008 at 12:16:41PM +0200, Adam GROSZER wrote:
> > Hello,
> > 
> > Which is the sane to format currencies?
> > 
> > locale.numbers.getFormatter('currency').format(value)
> > Holds something like: ¤1,000,000.00
> > 
> > Should I simply replace "¤" with the currency sign or is there a
> > better way?
> 
> That's more or less what I've been doing. I looked extensively, but
> couldn't find a better way. (or even any documentation)

What I understand is that  "¤" is a symbol that would be replaced by the
`correct` sign/character/string during translation for a given language and
currency. I haven't seen it working myself though.

Christian

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development


More information about the Zope3-users mailing list