diff options
Diffstat (limited to 'modules/translation/translation.module')
-rw-r--r-- | modules/translation/translation.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module index b1348c948..531555912 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -182,7 +182,7 @@ function translation_form_alter(&$form, &$form_state, $form_id) { function translation_node_view($node, $view_mode) { if (isset($node->tnid) && $translations = translation_node_get_translations($node->tnid)) { $path = 'node/' . $node->nid; - $links = language_negotiation_get_switch_links(LANGUAGE_TYPE_CONTENT, $path); + $links = language_negotiation_get_switch_links(LANGUAGE_TYPE_INTERFACE, $path); if (is_object($links)) { $links = $links->links; // Do not show link to the same node. @@ -440,7 +440,7 @@ function translation_path_get_translations($path) { * Replaces links with pointers to translated versions of the content. */ function translation_language_switch_links_alter(array &$links, $type, $path) { - if ($type == LANGUAGE_TYPE_CONTENT && $paths = translation_path_get_translations($path)) { + if ($type == LANGUAGE_TYPE_INTERFACE && $paths = translation_path_get_translations($path)) { foreach ($links as $langcode => $link) { if (isset($paths[$langcode])) { // Translation in a different node. |