Language Switcher for Drupal 7 is an enhancement for core language switcher block in local module. It's very useful for websites with multi-languages where you want to display content in different languages side-by-side. Watch this video to better understand the concept.
Divide your website page to a number of sections where each sections contains nodes in one language (see the screenshot).
- When lands into D7 core, the code base for this module will be much simpler, and cleaner.
- Currently with core locale module, there is two language switcher blocks, one for interface, and the other for the content. This module should only alter the content one, not the interface one. Currently, it alters the interface block!
- Enable Locale and Content Translation modules.
- Add other languages, e.g. Arabic, French (admin/config/regional/language).
- Go to Language Switcher config page (admin/config/regional/language/language_switcher), select what mode you want to use.
- Go the content type you want the translation to be enabled on, select `Enable, with node translation` (e.g. admin/structure/types/manage/article).
- Add nodes, add translations.
- From blocks page select Language Switcher block and put it in sidebar for example.
- Go back to the home page, the language switcher block now is clickable not just links, you should see nodes flying over there if you selected multi mode, go try it!
Language Switcher is now working on listing page, like homepage, I want to make it working with node's view, so when you click on a node, you get the node in all languages available, just like homepage but for node's view.
Locale core module.
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 5,098 sites currently report using this module. View usage statistics.
- Downloads: 23,145
- Last modified: December 2, 2014
- Stable releases receive coverage from the Drupal Security Team.
Look for the shield icon below.