summaryrefslogtreecommitdiff
path: root/modules/translation
diff options
context:
space:
mode:
Diffstat (limited to 'modules/translation')
-rw-r--r--modules/translation/translation.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module
index 466bedb63..a26b3973c 100644
--- a/modules/translation/translation.module
+++ b/modules/translation/translation.module
@@ -164,11 +164,12 @@ function translation_link($type, $node = NULL, $teaser = FALSE) {
if ($type == 'node' && ($node->tnid) && $translations = translation_node_get_translations($node->tnid)) {
// Do not show link to the same node.
unset($translations[$node->language]);
- $languages = locale_language_list('native');
+ $languages = language_list();
foreach ($translations as $language => $translation) {
$links["node_translation_$language"] = array(
- 'title' => $languages[$language],
+ 'title' => $languages[$language]->native,
'href' => "node/$translation->nid",
+ 'language' => $languages[$language],
'attributes' => array('title' => $translation->title, 'class' => 'translation-link')
);
}