Language Restriction in the front-end

ashutosh_24in's picture

Hello Everyone,

I have got a site in 2 languages (English and German). In the header of the site, I have provided the option for end users to switch the site in any of the 2 languages. Till now both sites have same contents so there was no problem for end user in switching between the sites. But now I'll be going to have specific menu and associated pages for either English or German site.

So if I create a menu for German site only(say its name is GS) and link a German page to it (say its name is LS). When a end user will open this new page in the browser they will see it in the German site but the option to switch the site to English is still available in the header and on clicking it user can go to English site but there is no corresponding menu and page in the English site.

Now my question is how can I redirect the end user to the homepage of English site when they click on the language switch in the header from the web page created only for German site.

tomgeo's picture

simply configure language

make language switching more efficient use Internationalization module and language switch modules
http://drupal.org/project/languageicons
http://drupal.org/project/lang_dropdown
then you must configure Language negotiation
go to site configuration >> Languages >> Configure (admin/settings/language/configure)
set the Language negotiation.