Hi Dimitris, instead of using the toplevel domain-name, you schould look at the accept-language header from the browser. Did you think of the users neither using a .de or .gr domain provider? E.g. aol.com... Additionally, no flag is needed. (Only if you tell your users, how they can make the setting in their browsers the first time) May advice is further, create only folders and methods like /en /gr etc in them. the acquired index_html can make the choice and all links direct to the folder / Regards Tino Dimitris Andrakakis wrote:
pattreea wrote:
i would like to create a homepage which have two languages. If I put the language flags in the menu, how can I keep track the language and check which language is selected?
This is how we do it... like Philippe said, we've split the site in two parts, /en for english and /gr for greek. /index_html is only a redirector: if user comes from the .gr domain, the browser is redirected to /gr, else to /en. Clicking the flag icon sends him to the other root, i.e. if his in /gr/anywhere and clicks on the english flag, he is sent to /en (and not /en/anywhere). This is done mainly because the two parts do *not* contain the same content.
Dimitris @ Nuclear