From 5bb6927e18d4496395dea37cc5b14bb15cb42cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 5 Dec 2007 16:34:07 +0000 Subject: #196410 report by daniel.soneira, patch by myself, tested by Freso: several fixes to url() generation and path aliasing, fixing path aliases for node paths and front page links in themes --- modules/translation/translation.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/translation/translation.module') 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') ); } -- cgit v1.2.3