I want to have my locale set as english, but it is not possible because then, the decimal separators are set to “.” instead of “,” so I have to set my locale in Francais(belgique), as suggested by Servoy.
IT2Be:
Or maybe setLocale(“en”, “NL”) will work as well
Sorry Marcel, it won’t… custom country/language combinations will return strange results.
All ‘en’ languages have a ‘.’ as decimal seperator.
ngervasi:
set the number format
This is really about formatting a number, not about assigning different seperators.
We’ve been struggling with the same issue and asking Servoy about this, but there’s simply no solution (yet???)
I think we’ll end up setting the locals to an eastern europe country.
For sure this language will not be supported in i18n so it will return the default (in English) & these eastern europe people still know how to seperate decimal… exactly: ‘,’
I think we’ll end up setting the locals to an eastern europe country.
For sure this language will not be supported in i18n so it will return the default (in English) & these eastern europe people still know how to seperate decimal… exactly: ‘,’
Brilliant idea. Have you tested this?
And, if so, what locale settings did you use?
I did do a small test and it seems to work out fine.
IT2Be:
what locale settings did you use?
I use the following settings:
// i18n.setLocale('nl','NL'); for dutch
// i18n.setLocale('en','EN'); for english
// i18n.setLocale('et','EE'); for english with ',' as decimal separator
IT2Be:
Or maybe setLocale(“en”, “NL”) will work as well (not tested)…
I think I’d give you the proper answer: if you use this servoy will set locale to ‘shqipe’…
Don’t ask me where on the world this is, but for sure: they won’t speak english and use ‘,’ as decimal seperator…