0

Possible Duplicate:
JavaScript for detecting browser language preference
How to getting browser current locale preference using javascript?

I have a wordpress website that I am in the works of localizing. I don't really have much php or javascript knowledge, and don't really know what I am looking for in terms of doing this.

I have a support tab that users can click to go to my helpdesk. I can create multiple tabs for different languages and get the code to display it.

So my question is: Is their an if then statement in javascript that I can use to help detect the language of the browser and display the correct tab? Or is their a better way of doing this? Since my localized domains format is "ru.domain.com" I could even have the if then statement check for the language code in the current page url. Any help would be appreciated.

3

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.