Local and number format

Hi,

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.

See post http://forum.servoy.com/viewtopic.php?f=22&t=9116

Now I encounter some problems, if I want to set a day name or month name, it comes in french. I wander if there is a solution to this problem yet.

Now that you bring it up:

There are language and country settings.

Language settings are lowercase.
Country settings are uppercase.

I am not sure which of these take care of the numeric settings. For the US the decimal separator is a point. For the UK it is a comma.

Have you tried setting the country code to UK?

something like setLocale(“en”, “GB”);

Or maybe setLocale(“en”, “NL”) will work as well (not tested)…

Have a look at the client preferences, you can set the number format indipendently from the language.

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: ‘,’ :D

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?

IT2Be:
Brilliant idea. Have you tested this?

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… :lol:

Hmm, searching for this gives me many first and last names of people with, apparently, an Albanian background.