Its about 50/50 according to the ones on my machine anyway

so...
        var fullStopCultures = ["", "ar-sa", "zh-tw", "en-us", "he-
il", "ja-jp", "ko-kr", "th-th", "ur-pk", "fa-ir", "hy-am", "af-za",
"hi-in", "sw-ke", "pa-in", "gu-in", "ta-in", "te-in", "kn-in", "mr-
in", "sa-in", "kok-in", "syr-sy", "dv-mv", "ar-iq", "zh-cn", "de-ch",
"en-gb", "es-mx", "it-ch", "ar-eg", "zh-hk", "en-au", "ar-ly", "zh-
sg", "en-ca", "es-gt", "fr-ch", "ar-dz", "zh-mo", "de-li", "en-nz",
"ar-ma", "en-ie", "es-pa", "ar-tn", "en-za", "es-do", "ar-om", "en-
jm", "ar-ye", "en-029", "ar-sy", "en-bz", "es-pe", "ar-jo", "en-tt",
"ar-lb", "en-zw", "ar-kw", "en-ph", "ar-ae", "ar-bh", "ar-qa", "es-
sv", "es-hn", "es-ni", "es-pr", "bn-bd", "en-sg", "en-my", "mn-mong-
cn", "qut-gt", "rm-ch", "mi-nz", "ug-cn", "moh-ca", "ga-ie", "ii-cn",
"quz-pe", "ig-ng", "nso-za", "yo-ng", "ha-latn-ng", "fil-ph", "ne-np",
"am-et", "iu-cans-ca", "si-lk", "lo-la", "km-kh", "cy-gb", "bo-cn",
"as-in", "ml-in", "or-in", "bn-in", "en-in", "es-us", "mt-mt", "zu-
za", "xh-za", "tn-za", "iu-latn-ca"];
        function numberLocale(value, locale) {
            return Number(value.replace(fullStopCultures.indexOf
((locale || navigator.language || navigator.userLanguage).toLowerCase
()) > -1 ? /[^0-9\.]/ : /[^0-9,]/, ""));
        }

This i will remove everything but the decimal marker according to the
locale passed or the one your browser is set to.
Changing the language list in your browser does not work in this case
as navigator.language || navigator.userLanguage pick up the accepted
languages.
So to support the accepted languages, I'm going for a server-side
solution which is a shame, but there we go.

Ant

On Jul 6, 9:21 pm, Már <mar.orlygs...@gmail.com> wrote:
> On Jul 6, 7:10 pm, "Anthony Johnston" <anthony.johns...@antix.co.uk>
> wrote:
>
> > 1.200,45 is a valid number format for some locales
>
> Actually, it's a valid format for lots and lots! of locales. :-)
> 1 200,45 and 1'200,45 are also fairly common formats.
>
> --
> Már
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to