Pls help me out!

Hi,

I need a solution for this following question. Well, I’m developing a multi-language site both in korean and english. The problem is that I want to display the versions (Korean or english) based upon the settings of the client machine. But both the pages should locate in the same directory. See this eg., www.ahnlab.com

The above site will be in korean if the client’s system settings are in Korean same way in english. I don’t know how it happens. Pls kindly let me know what kinda technology behind this. Both the versions should be in the same directory and it should get displayed according to the OS or System Settings.

Can anybody give me a solution for this? How can I solve it? Expecting a nice answer for this.

Thanks in advance,

Shri.

Why don’t you just have two buttons on a splash page that allow the user to choose what language they want to enter?

Sorry buds…the client doesn’t want to have that kind of button options. Is there any other alternative for that?

Ok well

1)That is kinda stupid :-\

2)It is hard to test this since I don’t have, nor do I fluently speak two different languages.

But here is a way in Flash that I think MIGHT work.

if (System.capabilities.language == "en") {
	getURL("englishFile.html","_self")
} else {
	getURL("koreanFile.html","_self")
}

But all that does is check if it is english, and if it isn’t, it goes to korean. I don’t know what the letters for korean are, I am guessing “ko”, so you can also try this…

if (System.capabilities.language == "en") {
	getURL("englishFile.html", "_self");
} else if (System.capabilities.language == "ko") {
	getURL("koreanFile.html", "_self");
} else {
	getURL("noLanguageSupported.html", "_self");
}

Oh yeah, those actions go on a frame.

And if you run a korean machine, you can find out the proper letters by putting this on a frame then testing the movie…

trace(System.capabilities.language);

The letters that appear in the output window are what you need.

I hope this actually works :-\

I think that can solve my problems…For your kind information, this is not a flash site…The whole coding is in ASP…Will it still work? Its my final question…Weh…

Shri

Ummm, you will need to have the tid bit of flash on the page you are using to redirect your user to the right page. Even if it is just a blank page saying “redirecting” and you have a like a 1px by 1px flash movie in there that has the if statement. But of course, the viewer will have to have the appropriate plugin (Flash 6 [MX]).

I don’t know how to redirect by language in Javascript… something tells me it isn’t easy though. So I can’t help you there :frowning:

No clue, I can’t test it :-\

Using it for english does though.

Hey Shrin… I think I just found a javascript way of doing it.

http://wsabstract.com/script/script2/language.shtml

ANd it doesn’t look difficult at all!!! (but then again, I do code Javascript a bit).

Dude…

Thanks for your help…I think I have to learn many things still…I’m still on the way…:stuck_out_tongue:

No Problem :wink: I am here to help.

I have a brazillian-portuguese windows and english flash, and when I test tha cod of yours:

trace(System.capabilities.language);

the outputwindow returns:

en

:-\

Well it pulls the default language of your computer :-\

Is that set to brazillian-portuguese ?

:-\

Interesting :-\

:-\