it should be possible to disable the i18n links in node_links(). if you have a multilangual site you normally enable the language block. now that the i18n and the l10n module both honor that block the i18n links are imho useless and may confuse the user. So it should be at least possible to disable them.

i would make it a global option that matches on all notes with i18n enabled.

darix

Comments

chx’s picture

Assigned: Unassigned » chx
Category: feature » task
Marc Bijl’s picture

If this is not going to be fixed, can anyone please tell what is the best way to hack around this?

kje’s picture

I'd fix it via style.css in respective theme folder:

/* i18n
--------------------------------------------------*/
.i18n-link {
  display: none;
}

HTH, Kurt

joe.murray’s picture

what is the l10n module? location?

Marc Bijl’s picture

#3: Thanks Kurt. Thought about such a workaround as well, but I was just wondering if there's a way to completely remove the link from the code. Do you know if such a thing is possible (of course it is...), and how this can be done?

kje’s picture

#5: To completely remove the i18n-link block, you have to modify i18n.inc at modules/i18n/

goto function theme_i18n_link_name_flag

comment out the line starting with "return"

function theme_i18n_link_name_flag($lang, $path, $attributes = array()) {
  static $languages;
  if (!isset($languages)) {
    $languages = i18n_supported_languages();
  }
//  return '<span class="i18n-link">'. l($languages[$lang], $path, $attributes, NULL, NULL, FALSE, TRUE) . '&nbsp;' . l(i18n_flag($lang) , $path, $attributes, NULL, NULL, FALSE, TRUE) .'</span>';
}

keep dingin'

Kurt

Neil Adair’s picture

Title: Option to disable the flag i18n links in node_links() » what is the l10n module? location?
jose reyero’s picture

Title: what is the l10n module? location? » Option to disable the flag i18n links in node_links
Marc Bijl’s picture

Found this one too:

- http://drupal.org/node/17829

Look at #16: works pretty good! It adds a radiobutton for showing language link below the node (enabled/disabled). Really cool stuff...

Marc Bijl’s picture

The radiobutton itself is part of the i18n settings, not the node of course :-)

jose reyero’s picture

This is alredy implemented in HEAD, for 4.7

jose reyero’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)