This feature seems to have been provided by i18n for Drupal 6, but I can't find equivalent settings for Drupal 7. Perhaps the feature didn't make it to core?

On http://drupal-translation.com/content/frequently-asked-questions this question is answered for Drupal 6:
You can do this from the Multilingual setup page: admin/settings/language/i18n
Select "Hide content translation links".

I'm interested in overriding the function that puts the links on the page. Basically I want to output the links to another location on the page, but not use the Language Switcher.

I'm very new to Drupal, so please advise if this is the wrong forum for this question.

Thank you!

Comments

dantz’s picture

Component: Documentation » Code
Category: support » bug

I have the same problem. The Checkbox supposed to control this (Hide content translation links) doesn't work. Looks like a bug.

andy inman’s picture

Haven't looked, but I'd guess you could turn it off by setting the correct $conf variable in settings. It appears the variable name is i18n_hide_translation_links (in D6), so try:

$conf['i18n_hide_translation_links'] = FALSE;

... in settings.php.

Haven't tested this may be off-track, just trying to help. In any case, the above change shouldn't do any harm.

70111m’s picture

The modification in the settings.php seems not to work here :(

andy inman’s picture

Oh well, needs further investigation then, I don't have time, sorry.

andy inman’s picture

Ooops! Sorry, my brain was inverted! Try...

$conf['i18n_hide_translation_links'] = TRUE;
zwervertje’s picture

Having the same issue. Checkbox does not seem functional.
Also changing the settings.php does not help anything.

As a temporary workaround I am using CSS:

.translation-link {
display: none;
}

freshness’s picture

Going with #6 for now on. It aint pretty but at least the design looks ok.

rvilar’s picture

Assigned: Unassigned » rvilar

I'm working in this issue in #drupaldevdays

rvilar’s picture

Fixed in github https://github.com/rvilar/i18n/commit/bc1082a60ea25bf75de0ae98be021485e3...

I also fixed some other problems on that branch

rvilar’s picture

Status: Active » Needs review

I mark this issue with the proper state

rvilar’s picture

Status: Needs review » Fixed

Fixed in github

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

orkutmuratyilmaz’s picture

Component: Code » Blocks

For D7, please go to admin/config/regional/i18n/node and select "Hide content translation links".

marktheshark’s picture

Note that you need to have the "Multilingual content" i18n sub-module enabled in order to have access to this option (per #13).

joknjokn’s picture

I have a similar problem. When trying to log out of drupal, one has to click the logout button several times, and i get some logout-handler error, pointing to a javascriptline with "debugger".

After it is logged out, it is also logged out of facebook in another browser tab.

Xagarsan’s picture

Solution #13 worked for me. Thanks!

houmem’s picture

Issue summary: View changes

go to the display settings of your content type and disable the language field