language switcher not working

shuvuu - June 11, 2008 - 12:37
Project:Amadou
Version:6.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:jwolf
Status:patch (code needs review)
Description

with module Internationalization's language switcher not working

#1

jwolf - June 11, 2008 - 14:13
Priority:critical» normal
Status:active» active (needs more info)

Would it be possible to provide more information? Additional information would be useful to figure out what's the problem.
Also, so that I don't have to go hunting around for the module could you provide a link to the module in question?

#2

toemaz - July 31, 2008 - 11:15
Version:6.x-1.1» 6.x-1.x-dev
Status:active (needs more info)» patch (code needs review)

I had the same problem and was able to fix it. Took me 4 hours of hunting ...

In template.php, line 88

<?php
        $output
.= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html);
?>

should be
<?php
        $output
.= l($link['title'], $link['href'], $link);
?>

The reason why the original code was wrong is bc the $link array holds an extra field ['language'] which is lost.
Now it isn't anymore.

At your service.

#3

jwolf - August 8, 2008 - 19:41
Assigned to:shuvuu» jwolf

Great! Thank you Thomas.
I will create a new release with above mentioned changes.

 
 

Drupal is a registered trademark of Dries Buytaert.