Hugh Jass
10-02-2000, 07:36 PM
If you visit Microsoft’s http://windowsupdate.microsoft.com/default.htm?page=productupdates
The page will be shown according to your language settings.
To test this:
In MSIE: Tools Menu --> Internet Options...
Then click the 'Languages' button near the bottom of the page.
Click 'Add' then find a language e.g. French (fr) & move it to the top of your list
Then re-visit http://windowsupdate.microsoft.com/default.htm?page=productupdates
The page will then be shown in French.
In NN: Edit Menu --> Preferences...
Then click the '+' box next to 'Navigator' and click 'Languages'
Click 'Add' then find a language e.g. French (fr) & move it to the top of your list
Then re-visit http://windowsupdate.microsoft.com/default.htm?page=productupdates
The page will then be shown in French. ( I THINK! )
Can anyone simplify there script for me ?
I don’t know much about JavaScript & I know nothing about frames.
What I’m trying to do is display 1 page to English (en) users & a different page to French (fr) users.
I found a script which I thought would do the same thing at http://javascript.internet.com/user-details/language.html which uses a re-direct rather than frames.
Unfortunately it doesn’t work, even if I change …
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.userLanguage;
to
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
Any help would be greatly appreciated.
Hugh
[This message has been edited by Hugh Jass (edited 10-02-2000).]
The page will be shown according to your language settings.
To test this:
In MSIE: Tools Menu --> Internet Options...
Then click the 'Languages' button near the bottom of the page.
Click 'Add' then find a language e.g. French (fr) & move it to the top of your list
Then re-visit http://windowsupdate.microsoft.com/default.htm?page=productupdates
The page will then be shown in French.
In NN: Edit Menu --> Preferences...
Then click the '+' box next to 'Navigator' and click 'Languages'
Click 'Add' then find a language e.g. French (fr) & move it to the top of your list
Then re-visit http://windowsupdate.microsoft.com/default.htm?page=productupdates
The page will then be shown in French. ( I THINK! )
Can anyone simplify there script for me ?
I don’t know much about JavaScript & I know nothing about frames.
What I’m trying to do is display 1 page to English (en) users & a different page to French (fr) users.
I found a script which I thought would do the same thing at http://javascript.internet.com/user-details/language.html which uses a re-direct rather than frames.
Unfortunately it doesn’t work, even if I change …
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.userLanguage;
to
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
Any help would be greatly appreciated.
Hugh
[This message has been edited by Hugh Jass (edited 10-02-2000).]