Title says it all ;-)
I want to be able to hide the link to the active language since it refers to the current page anyway, i changed translation.module line 1043:
$url = translation_url($path, $lang);
$links[]= theme('i18n_link', $names[$lang], i18n_path($url, $lang) , $lang, $query);
with
if ($current != $lang) {
$url = translation_url($path, $lang);
$links[]= theme('i18n_link', $names[$lang], i18n_path($url, $lang) , $lang, $query);
}
If someone is interested i'm willing to patch this as well as an administrator option to toggle this, just le me know.
Comments
Comment #1
attiks commentedI added the option to the admin settings, see patch in attach
All feedback is appreciated
Will this be automatically added to the new version of this module?
Comment #2
francoud commentedI cant believe that this very useful patch hasn't still been included in the module...
I tried it and it works and is exactly what I needed....
I vote for including it in the main code as soon as possibile! :)
Comment #3
jose reyero commented> I cant believe that this very useful patch hasn't still been included in the module...
Well, you can. No new features for 5.x.
These issues you fix them in your theme not with module options.