I´ve two languages active (englich and czech). Translations are provided vie i18n. The menu structure looks like this:

1. level menu (firstchild)
-- 2. level first item czech
-- 2. level first item english
-- 2. level second item czech
-- 2. level second item english

When I´m in czech, its OK. But when I switch to the english translation, the firstchild is still pointed to the "2. level first item czech" page. Its possible to make firstchild aware of current user language? So it will skip the links in different language and use the one with the current selected (or the one with language independent)?
I´m now going to make the 1. level menu (firstchild) duplicated for the english part, but it will mess up my menus a bit, so its not quite good solutions.

Anyway thank you for this module, I use it often.

Comments

anrikun’s picture

Category: support » feature

Menu Firstchild *fully* supports i18n.
So *don't* create 2 menus!
The problem you're having might come from your menu items' language settings themselves.
Configuration is a bit tricky:
1) I18n Menu translation must be installed
2) You must ensure that language set for items in Czech is Czech, not "All languages"
3) You must ensure that language set for items in English is English, not "All languages"
4) There's also a bug in Core, so you might try to patch your menu.inc file using http://drupal.org/node/609542#comment-2287992.
The provided patch is for 6.14 but it should work with 6.16 too.
5) Read also the project page part about breadcrumb.
Try these and tell me if it solves your problem.

anrikun’s picture

Category: feature » support
petr illek’s picture

Category: feature » support

Thanks for your answer.
I've succesfully used a different approach.
I only change the order of the submenus, so first is the english variant, and then czech. With this arrangement everything works fine.

Petr

anrikun’s picture

Status: Active » Closed (fixed)

Ok Petr.
Glad it works!

gagarine’s picture

Version: 6.x-1.4 » 7.x-1.0
Status: Closed (fixed) » Active

I have this issue back on 7.x. language for node are "Undefined" and can't be change (they are set from the node language).

gagarine’s picture

Title: current language sensitivity » current language sensitivity (i18)
Category: support » bug

Tips from #3 works but it's a bug if it's sensitive to the order... no?

anrikun’s picture

Could you please describe your problem better?
Any screenshot? What you expect and what you get?
Thanks

gagarine’s picture

Sure.

So if menu are in this order it will not work. level first item czech will always show up still where we are in english.

1. level menu (firstchild)
-- 2. level first item czech
-- 2. level first item english
-- 2. level second item czech
-- 2. level second item english

But if they are in this order it's ok

1. level menu (firstchild)
-- 2. level first item english
-- 2. level first item czech
-- 2. level second item czech
-- 2. level second item english

anrikun’s picture

Ok.
Now please list *all* your i18n related settings.

Did you follow this?
1) i18n_menu must be installed
2) You must ensure that the language set for each menu item in Czech is Czech, not "All languages"
3) You must ensure that the language set for each menu item in English is English, not "All languages"

anrikun’s picture

Category: bug » support
anrikun’s picture

Status: Active » Closed (works as designed)

No answer. Closing.