Answering to my own question:
I added @src-locale="en_US" to the i18n-tag, which helped. The transformer
was using the locale from my server, which caused incorrect formatting.
-Tuomo
On Tue, 23 May 2006, Tuomo L wrote:
Hello,
I'm trying to format currency using i18n:number. In the docs, there is an
example:
<i18n:number type="currency" value="1703.7434" />
which should return: "$1,703.74" using US-locale. I get "1703,00 e" using
finnish locale. After trying different combinations, it seems that the
decimal part is always returned as zeros only.
Is this a known bug in i18n-transformer or java? Could someone please verify
this, so I can then report it to Jira.
Cocoon-2.1.9
Java 1.5.0 (beta 6)