I was asked by a customer, not to link to each individual pages translation, but to the front page with the desired language.
For now I've hard coded this into a manual block, but maybe this could be an option in the module?

Comments

tsernobyl_good_times’s picture

I would find this feature very useful as well. This is because Drupal sites behave weirdly when not all content is translated to all languages. For example if user clicks to a page that is not yet translated and then clicks language icon to another language -> Drupal shows horizontal navigation in both languages which messes up the layout.

Freso’s picture

Status: Active » Closed (works as designed)

I believe this to be outside the scope of this module. This module simply adds icons to the language links already provided by core, and as such doesn't alter the links themselves in any way.

Have a look at hook_link_alter() and hook_translation_link_alter() for how to alter the links in a custom module.