Hallo Chris,
thank you for your replay.
I found the jsDate documentation before, but unfortunately I don't
know, how to use/apply.... where to add the code and so on (I'm new on
OO Javascript)
> I am testing for locale by using:
>
> document.getElementsByTagName('html')[0].lang
That doesn't explain the reason why the datepicker uses asian
characters.
But probably that's the reason, why I get the jqPlot version in
english,
because: document.getElementsByTagName('html')[0].lang on my computer
returns "en" while navigator.language retruns "de". (in Firefox)
So if jqPlot is using document.getElementsByTagName('html')[0].lang,
that will be the reason, why I have an english version of jqPlot.
Could it be an idea to change :
jsDate.regional.getLocale = function () {
var l = jsDate.config.defaultLocale;
if ( document && document.getElementsByTagName('html') &&
document.getElementsByTagName('html')[0].lang ) {
l = document.getElementsByTagName('html')[0].lang;
if (!jsDate.regional.hasOwnProperty(l)) {
l = jsDate.config.defaultLocale;
}
}
Into
jsDate.regional.getLocale = function () {
var l = jsDate.config.defaultLocale;
if ( document && document.getElementsByTagName('html') &&
navigator.language ) {
l = navigator.language;
if (!jsDate.regional.hasOwnProperty(l)) {
l = jsDate.config.defaultLocale;
}
}
??
Thank you, Brn