diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-05 16:34:07 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-05 16:34:07 +0000 |
commit | 5bb6927e18d4496395dea37cc5b14bb15cb42cad (patch) | |
tree | b3142f8a63bb7defa33ddca8cb6dd23d0c306b22 /modules/translation/translation.module | |
parent | c99dd5c2064df28932f13e5182676f281a699d48 (diff) | |
download | brdo-5bb6927e18d4496395dea37cc5b14bb15cb42cad.tar.gz brdo-5bb6927e18d4496395dea37cc5b14bb15cb42cad.tar.bz2 |
#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
Diffstat (limited to 'modules/translation/translation.module')
-rw-r--r-- | modules/translation/translation.module | 5 |
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') ); } |