Hello!

I translated my site with il18n, everything is fine but the attribut "active" for active links is somehow lost.

If I visit /en/home for example, the menu entry "home" in primary links is not active, also ist points to /en/home ...
Whats wrong here? Since my menu layout depends on the use of "active" That is a Problem for me ...
Any solution/sugestion?

Comments

Roberto Gerola’s picture

Hello.

Take a look to my post about this problem :

http://drupal.org/node/82817#comment-133657
--
http://www.speedtech.it

florianr’s picture

OK sorry, didn't find it before, thanks,

Could you explain where to put the php code?

Thanks for your help!

Roberto Gerola’s picture

You have to replace the original function l() with the my modified version in contrib.inc file, under includes
directory of your Drupal installation.

--
http://www.speedtech.it

florianr’s picture

Sorry, but I can't find a contrib.inc file in my drupal/include directory.

Roberto Gerola’s picture

I'm sorry.
The file is common.inc.

--
http://www.speedtech.it

florianr’s picture

Thanks Roberto works dine for me ...

found function l() in common.inc ...

Edit:
Thanks roberto was even faster ... ;)

florianr’s picture

Hmm the patch did the trick, for en menu and de menu, but in nl menu only nl/home has attribute active, but all other menu entries don't.
I can't fugure out any differences betwen the de and en sites on one hand, and nl sites on the other hand. Also there seems to be no differenz between nl/home and other nl sites.

Done. ....

Seems to depend on the replace_active_link function.
Strange that it only affected th nl sites ....