Drupal: Multilanguage Home Page
This article would tell you how show article on the home page of your Drupal-based site on different languages. One of the possible ways is to output a node on the main page that will be changed to the respective language when the language was changed for a whole site.
First make sure that multilanguage is set for your site and an ability to translate nodes is enabled.
Then you should:
- Open the required node for editing and set a path: “home”.
- Make the same for all translations using the same value of a path (“home”)
- Open “Site information” page admin/settings/site-information and specify a path to main page (“home”)
- Save settings and check languages switching on the main page.
Possible problems:
If you receive this message:
user warning: Duplicate entry ‘home-en’ for key 2 query: UPDATE url_alias SET src = ‘node/126′, dst = ‘home’, language = ‘en’ WHERE dst = ‘home’ in /home/ … /modules/path/path.module on line 108.
Then you already used such path synonym but for a page that is neutral to language.
You can try to change path synonyms here: admin/build/path. Find your path synonym and delete it, if language column shows “All”.
How to show node on the home page in one language
If you wish to shoe a node in home page of multilanguage site always in one language, you should open admin/settings/site-information and specify system path to the node instead of path synonym there:
node/10