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.

CommentFileSizeAuthor
#1 translation.module_1.patch1.18 KBattiks

Comments

attiks’s picture

StatusFileSize
new1.18 KB

I 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?

francoud’s picture

I 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! :)

jose reyero’s picture

Status: Active » Closed (won't fix)

> 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.