Hi all

If I dont misunderstood it is possible to set a language for each menu item and this item will be displayed only in that language, or I can set the language as neutral and this item would be translatable and will be displayed in all languages. am I right???

Well in my case it is not working this way, and i dont understand what i have done wrong or what am i missing.

In my case parent is called club (all languages) and i have 2 childs called Introduction (language English) and Introduccion (language spanish), Bolth childs are displayed no matter language. Are the childs getting the properties from the parent item???

How could i fix this??? I think that i need to make it this way because in this section there is also a form (webform) which is fully tranlatable. menu items that calls this form is set as all languages, translation is working perfect.

Thanks

sorry i forgot to sat hat i am using also local menu, parents are displyed on header and childs are displayed in a central vertical menu

Comments

machi27’s picture

I will explain this isse a bit deeper.

Main menu is horizontal situated on top of the page below the header,
parents are displyed but child are hide by css, i use local menu to display these childs into another block, (marinelli theme, leftside bar), After making visible childs in main menu i realized that the menu language settings are working there, but they are not working with local menu, which is displaying all the child of the selected main menu item no matter language in his current block.

Any idea about how to fix this???

Thanks

mtsanford’s picture

I've noticed i18n does not work perfectly for menus in all cases, and can be a little confusing.

How were the menu items created? This is important.

"sorry i forgot to sat hat i am using also local menu". What do you mean "local menu"?

Did you use "Add Item" tab? If so, this is what I found works: Create *two* items, and in one select spanish as the language, and the other english, and link to the correct content. Only the correct menu shows. Using "language neutral" and trying to translate does not seem to work correctly.

Or did you create the menu item within the node form using "menu settings"? I recall having some trouble using this approach, and did what I mentioned above.

machi27’s picture

Local menu is a module that allows you to display childs of the main menu in another block.

I've been almost all day long with this issue so i can tell that i have tried almost all the ways.
first i created menu item 1 lang en and as you said linked to his node, and them item 2 lang sp linked to his node, so bolth menu items where displayed in english and spanish.
them i tried the other option which is create the node and add the menu item there, same thing.

after searching more i found a topic, so i visit: admin/settings/language/i18n
and change "Content selection mode" to "Mixed..". Then it ALMOST works...

I am saying almost because the parent in main menu (all languages) only shows in spanish.

Did you make it work with: "If so, this is what I found works: Create *two* items, and in one select spanish as the language, and the other english, and link to the correct content."

could you please check admin/settings/language/i18n and tell me what Content selection mode are you using???

Maybe there is the thing that i am missing.

Thanks again

mtsanford’s picture

>> could you please check admin/settings/language/i18n and tell me what Content selection mode are you using???

Current language and language neutral.

Another issue that came up for me was moving/renaming menu items. They then become "customized" and the translation settings I then change don't seem to stick. If I "reset" the menu item, then moved it back or renamed it again, the translation worked. You might check to see if the items in question have a "reset" link on them and give that a try.

Sorry I can't be more specific. I know this stuff can be a bit confusing because I recently had to deal with it. I'm not sure if what I'm doing is exactly the same, but it sounds similar:

I have two help pages, "help" which is English, and "ayuda" which is spanish. The menu looks like this depending on language

Contribute
- contribute help
- ...other items
...Other top levell items

Contribuir
- Ayuda de Contribuir
- .. other items
...Other top levell items

I'm pretty sure this what I did:

0) English language selected as current language
1) Created the "Contribute" menu using "add item"... left as "all languages". (right now it just links an english page)
2) Went to admin/build/translate/search, and searched for "Contribute"
3) Found the item in group "menu", clicked "edit" and put in a spanish translation ("Contribuir")
4) Made my help page "contribute help", selected english as language, and in "menu settings" added it as a child menu item to the "contribute" menu item. Save.
5) Click "translate" tab, click "add translation" for spanish. In menu settings add it as child menu to "contribute" menu item, and title "Ayuda de Contribuir"

mtsanford’s picture

"I am saying almost because the parent in main menu (all languages) only shows in spanish."

Did you go to admin/build/translate to translate the item?

machi27’s picture

Well at the end i am gonna leave at it was at the beggining, sol i wil have a menu for each language.
My problem is that for example webforms doesnt have a language, so if i place a item in each menu things are not working as expected, item is spanish iw working perfect, but in english if I navigate through the invite item, mene tracking stop working.

So i guess that if a render the webform as a block, create a node for each invite item (one for each lang) and tell taht block to only show in that specifyc node it will made what i want.

Now i have to realized how to render a webform as a block, but I think this will work (in theory)

Thanks a lot for your help and time IT REALLY HELP ME A LOT!!!!!

machi27’s picture

I started doing this in a completly diferent way, I decide to make 2 diferents menus, all under the same main menu estructure.
for example for the club section i had parent club (en), childs: intro (en), etc (en) and parent club (es), child intro(es), etc(es),
everything was going the way that i expected,

until i had to link a content which is a form (node/200) fully translatable to both languages (menus), so i added an item called invite (en) into club (en) an linked to node/200, them add a item invita (es) into club(es) and linked to node/200, also tried to do this with an aboslute url, in spanish was working perfect but in english as soon as i cliked on the invite i was redirect to the form in english but the menu swap into spanish, this is way i started to found diff ways to do this...