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
Comment #1
alexku commentedSubscribing.
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.
Comment #2
alexku commentedFound 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.
Comment #3
anrikun commentedYou're right, it's not related to Views.
I've written a patch that solves my problem:
http://drupal.org/node/609542#comment-2287924
Comment #4
merlinofchaos commentedSo this is essentially fixed?
Comment #5
anrikun commentedYes, sorry, I forgot to update status :-)
Comment #7
haggins commentedI 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?
Comment #8
anrikun commentedYou should check your *menu items* language settings:
"news" should be English
"orga" should be German (?)
Comment #9
haggins commentedI 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*
Comment #10
anrikun commentedDid 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 ;-)
Comment #11
haggins commentedYes, 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?
Comment #12
anrikun commentedCan you provide any URL?
Comment #13
merlinofchaos commentedHm. Really Views doesn't set the internationalized menu trails, this should be filed against the module that does that. i18n?
Comment #14
haggins commenteddasfest [dot] net
I "fixed" it using the context module:
condition: path -> orga
reaction: menu-trail -> orga
Comment #15
anrikun commentedGreat! Let's mark this as fixed again then :-)
Comment #16
4aficiona2 commentedHi 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?
Comment #17
anrikun commented@zoorock (#16)
Please post this in the Menu Trails module issues.
Comment #18
4aficiona2 commentedYes, I'll do that. Thx anyway