Hi,

shouldn't <code>this.tr("cldr_number_decimal_separator")</code> give the right
one? Although the "tr" method returns a qx.locale.LocalizedString object it
should be easy to convert it to native JavaScript String, or am I missing
something?

<code>
var str = "" + this.tr("cldr_number_decimal_separator");
</code>

Cheers,
  Peter

On 2010-05-07 17:04 Jean-Baptiste BRIAUD -- Novlog wrote:
> Hi,
> 
> Is there a way to know what is the decimal separator as it depends on local ?
> 
> I set up a filter on TextField to force number :
> setFilter(/[0-9\.]/);
> 
> Unfortunately, it is sometimes a comma, sometimes a dot...
> 
> I googled it and found : 
> http://stackoverflow.com/questions/1074660/with-a-browser-how-do-i-know-which-decimal-separator-does-the-client-use
> but apparently, it is not multibrowser.
> 
> Any idea ?

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to