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?
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
Comment #1
tsernobyl_good_times commentedI 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.
Comment #2
Freso commentedI 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()andhook_translation_link_alter()for how to alter the links in a custom module.