[Zope3-Users] Problem with zope.i18n.locales, currency formatting,
and encodings
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Jan 8 03:58:23 EST 2007
On Friday 22 December 2006 13:41, Doyon, Jean-Francois wrote:
> For posterity and the list archive:
>
> - currency formatting, as provided by zope.i18n.locales is broken, it does
> not add the proper currency symbol. Instead, a strange circle/star
> character always appears where a currency symbol would be expected.
Correct. Unfortunately, this is more than a quick fix, because you need to be
able to select the currency. I totally overlooked currencies when I
implemented locales. There is even an unimplmented API method.
> - This symbol can be found in the xml locale definition files in
> zope/i18n/locales/data ... In the <pattern> section for currencies.
Yes.
> - The xml files are correct.
Yes.
> - The problem is in the function at zope.i18n.format.parseNumberPattern,
> which does not handle the special symbol properly, and does not replace it
> with the symbol character as it should.
Not the parsinging should do this, but the formatting.
> A bug has been filed here:
>
> http://www.zope.org/Collectors/Zope3-dev/742
Thanks.
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-users
mailing list