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

2008-05-23 Thread Adam GROSZER
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?


-- 
Best regards,
 Adam GROSZER  mailto:[EMAIL PROTECTED]
--
Quote of the day:
I believe that there are too many accommodating preachers... Jesus Christ did 
not say Go into the world and tell the world that it is quite right. The 
Gospel is something completely different. In fact, it is directly opposed to 
the world. 
- C.S. Lewis 

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2008-05-23 Thread Brian Sutherland
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)

 
 
 -- 
 Best regards,
  Adam GROSZER  mailto:[EMAIL PROTECTED]
 --
 Quote of the day:
 I believe that there are too many accommodating preachers... Jesus Christ did 
 not say Go into the world and tell the world that it is quite right. The 
 Gospel is something completely different. In fact, it is directly opposed to 
 the world. 
 - C.S. Lewis 
 
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users

-- 
Brian Sutherland
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2008-05-23 Thread Christian Theune
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 · [EMAIL PROTECTED]
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
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2008-05-23 Thread Stephan Richter
On Friday 23 May 2008, Christian Theune wrote:
  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.

A bug that is oin my backlog since years. :-( It would be a very easy fix for 
someone to do though.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users