lndex - language index
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
lndex - language index
This tiny module allows site administrators to define own paths for language switch links.
The reason I created this module is that Drupal by default only changes the language prefix ('en' for English, 'sv' for Swedish, etc.) when you select a different language with the Language switcher block. Instead of doing this and hoping the node has a translation for that language I wanted every change of language to return the user to the <front> page. Of course, this can easily be achieved with a single line of jQuery. However, I felt that this was such a basic feature of Drupal that it should be done in Drupals own admin interface.
While creating lndex I decided it would be best to allow site administrators to set their own specific paths for each language.
lndex offers:
- return users to <front> when changing site language (default)*
- specify node path of choice per language
- specify an alias of choice per language
* = Using Language switch block in Dashboard keeps you there while language changes.
Requirements
As with the Language switcher block in core, this module requires at least two enabled languages and language negotiation to be either URL or session.
Drupal version
Created for Drupal 7.x
Known issues
Form validation in the latest commit only accepts characters that are alphabetic, numeric or slash. Next commit should accept ampersand (&) and equal sign (=).
