Hi, you have missed the language option in your rebuilding link hook.

Which should be

399       if (isset($link['href'])) {
400         $link_options = array('attributes'  => $link['attributes'],
401                               'query'       => $link['query'],
402                               'fragment'    => $link['fragment'],
403                               'absolute'    => FALSE,
404                               'html'        => $html,
405                               'language'    => $link['language']);                              //  <----
406         $output .= l($link['title'], $link['href'], $link_options);
407       } 

Otherwise this may cause all the other lauanges lost the prefix of that lauange link.

I have attached a patch file.

thanks

CommentFileSizeAuthor
blogbuzz-multilanguage-template.patch1.01 KBwqmeng
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cannedbrain’s picture

Thanks! This solved my problem with a multilingual site.

manuel.adan’s picture

Status: Needs review » Reviewed & tested by the community

Thank you too for the patch, it should be ported into dev.