Not sure, but "." in pattern means localized decimal separator (e.g.
".", ","). So if you define \. you have just char "." not separator in
pattern and therefore number is translated as integer...

I have tried this in component annotation (###\.###) and it's just
showing \ in the number string... Maybe doing something wrong... :(

2005/9/29, Kent Tong <[EMAIL PROTECTED]>:
> Tomáš Drenčák <tomas.drencak <at> gmail.com> writes:
>
> > I have following problem. In slovak language we have "," (floating
> > comma) as decimal separator, in english there's "." (floating point)
> > as decimal separator. But it's common practise that everybody use "."
> > as decimal separator in slovak. How can I change this separator to "."
> > even I have slovak locale?   I need this to work with tranlator prefix
> > (in TextField component translator binding)?
>
> Have you tried:
>
>  <binding name="translator" value="translator:number,pattern=#\.0"/>
>
> --
> Author of a book for learning Tapestry (www.agileskills2.org/EWDT)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to