get user language

Hi Clifton,
In my program I distinguish between English GB and English US. The problem is window.navigator.language doesn't help much because it is the default language used when the browser was installed! Users can install and use other languages and these are in window.navigator.languages[0] etc. but there no way of telling which one is being used as far as I can tell. At the moment all I can get is fr So I assume the other langauges that I use will be en de es it. Apart from English there is no problem because I can test for these codes even if the complete codes are different like es-AR for example. Could you check what your browsers return please? If it is en-US my problem is solved. If not, I shall just have to ask the user to choose.
Regarding my previous post the password field is now functioning correctly but I cannot get the browsers to ask to save the password. I am quite sure that in the past this was not a problem. I remember creating a password field and as soon as it was used the browser responded by asking if the password should be saved. I have found a lot of stuff about this on Stack Overflow but it's all about forms and submit buttons that I am not using at the moment.
John
In my program I distinguish between English GB and English US. The problem is window.navigator.language doesn't help much because it is the default language used when the browser was installed! Users can install and use other languages and these are in window.navigator.languages[0] etc. but there no way of telling which one is being used as far as I can tell. At the moment all I can get is fr So I assume the other langauges that I use will be en de es it. Apart from English there is no problem because I can test for these codes even if the complete codes are different like es-AR for example. Could you check what your browsers return please? If it is en-US my problem is solved. If not, I shall just have to ask the user to choose.
Regarding my previous post the password field is now functioning correctly but I cannot get the browsers to ask to save the password. I am quite sure that in the past this was not a problem. I remember creating a password field and as soon as it was used the browser responded by asking if the password should be saved. I have found a lot of stuff about this on Stack Overflow but it's all about forms and submit buttons that I am not using at the moment.
John