Hi,

I'm running a multilanguage site: French is the default language and there's an English version.
I have a view called "Jobs".
its path is "/jobs".
The same view is used for FR and EN.

I've created menu items manually (not using Views' menu item setting).
Below, inside () the language set for the menu item:
- Emploi (FR) (links to node "/emploi")
--- Offres (FR) (links to view "/jobs")
--- ...
- Employment (EN) (links to node "en/employment" that is the translation of node "/emploi")
--- Jobs (EN) (links to view "/en/jobs")
--- ...

As you can see the menu items have been duplicated so that each shows for a given language.
Everything works fine except one thing:
When viewing "en/jobs", active trail doesn't work and "Jobs" menu item is not marked as active.
(When viewing "/jobs", it works: "Offres" menu item is marked as active.)

Does it mean that I have to create to separate views (one for FR and one for EN) to make this work?
Isn't there a more convenient way?

Comments

alexku’s picture

Subscribing.

I'm in a similar situation right now.

I also noticed that if you have two menus pointing to the same path, active will be the menu item with the smallest id in database.

It's not just the views problem. Same thing happens to paths registered by modules in the menu system.

alexku’s picture

Found a workaround for my site here http://drupal.org/node/313302

It involves creation of separate menus for each language and maybe not suitable for everyone.

anrikun’s picture

You're right, it's not related to Views.
I've written a patch that solves my problem:
http://drupal.org/node/609542#comment-2287924

merlinofchaos’s picture

Status: Active » Fixed

So this is essentially fixed?

anrikun’s picture

Yes, sorry, I forgot to update status :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

haggins’s picture

Version: 6.x-2.6 » 6.x-2.9
Status: Closed (fixed) » Active

I didn't apply the mentioned patch (for testing purposes I did but it didn't help) and have a similar issue:

I've got the same configuration with 2 views instead of one. Curious: one view is changeing the menu trail and the other does not. Both have path ("news" and "orga") but only the "news"-view sets the active-trail correctly.

Do you have any idea where to search for misconfiguration?

anrikun’s picture

You should check your *menu items* language settings:
"news" should be English
"orga" should be German (?)

haggins’s picture

I already have both "news" and "orga" in german and france ( => 4 menu items).

news german item: active trail set (path "news" => de/news)
news france item: active trail set (path "news" => fr/news)
orga german item: active trail set (path "orga" => de/orga)
orga france item: active trail NOT set (path "orga" => fr/orga)

Is my english that bad that you can recognize me as a german? *g*

anrikun’s picture

Did you ensure each *menu item* language setting is correct?
(You use i18nmenu, don't you?)

Your English is not bad at all! I just checked your user page and saw that you speak German ;-)

haggins’s picture

Yes, I use i18nmenu and the language of every menu-item is set either to german or france. I can not see any difference between the "news" menu items and the "orga" ones except:
"news" are filtered by language, "orga" not. But even this additional filter didn't change anything at a try.

Is there any way of debugging the menu-trails?

anrikun’s picture

Can you provide any URL?

merlinofchaos’s picture

Hm. Really Views doesn't set the internationalized menu trails, this should be filed against the module that does that. i18n?

haggins’s picture

dasfest [dot] net

I "fixed" it using the context module:

condition: path -> orga
reaction: menu-trail -> orga

anrikun’s picture

Status: Active » Fixed

Great! Let's mark this as fixed again then :-)

4aficiona2’s picture

Hi there,

I have also some problems with the menu trails (6.x-1.1) module with my multi-lang page.
I run a german and a french instance, there will be as well an italian somewhen ...

So my problem using the menu trails is the following: I use menu trails to let certain node types show up
the menu below choosen menu points. If I do this for german (/de/admin...) everything works fine and on the detail node-view of the defined node type
the menu with the correct active menu path shows up. If I do the same for the french (/fr/admin...) then I override the settings for the german ...

Is there any possibility to get multi-lang support for menu trails? Has anybody a good idea?

anrikun’s picture

@zoorock (#16)
Please post this in the Menu Trails module issues.

4aficiona2’s picture

Yes, I'll do that. Thx anyway

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.