Localizer menu return always to the same language.
| Project: | Localizer |
| Version: | 5.x-3.10 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
After we have upgraded the localizer module from 3.8 to 3.10 the Default front page: was the Italian version node/14.
I notice that after the upgrade to 3.10 when I change the language from Italian to any other language the menu is loaded correctly in the language selected, but when i click on a menu item the menu go back to Italian and the page is correctly in the other language, to have the correct menu with the correct page I have to select again the language flag.
I tried to change the Default front page to English, but the problem persist, the menu go back to Italian when I click on the English menu item.
I tried to go back to the Drupal default setting "node" with the setting "Default front page : node" but the front page is always the Italian node.
I noticed that if I select the new option "Do not add prefix on the site default language" the only language without prefix is the Italian, even if the default front page is the English one or the default setting node.
This is the web site www.mytranslationexpert.com

#1
#2
> "Do not add prefix on the site default language"
What does happen if you disable this option ?
Thanks, Roberto
#3
Ciao Roberto,
If I disable the option "Do not add prefix on the site default language" the problem persist.
I checked all the possible setting and I finally found a workaround that can help to reproduce the problem, if I select "Automatically append language prefix to all content (node) pages" the problem disappear.
Now I left my website with the option "Automatically append language prefix to all content (node) pages" NOT SELECTED, since I don't want to add the language prefix, but I noticed that were I used the "URL aliases" the language prefix is not shown even if the "Automatically append language prefix..." is selected.
Thanks Enrico
#4
Ok, it seems to me that the problem is you don't have translations for all your menu entries, right ?
#5
I have translation for all the menus item, the web site was working properly with 3.8, I upgraded to 3.10 since the sitemap had problem with the language prefix in the home page.
If I select "Automatically append language prefix to all content (node) pages" the web site keep correctly the right menu.
If I don't select "Automatically append language prefix to all content (node) pages" when, for example I click on the flag and change from Italian to English, then when I select a menu item in the English menu, the English page load correctly but the menu go back to the Italian menu, so at the end the page is English but the menu is Italian.
I was wrong on the URL ALIAS, If I use the alias when I select "Automatically append language prefix to all content (node) pages" the prefix is added to the alias, so I can't use this workaround to keep the same "path".
#6
I have made some more test and I decieded to use the option "Automatically append language prefix to all content (node) pages" to eliminate the issue.
#7
I have exactly the same problem as enrico. My site uses two languages: Dutch and English.
The nodes are being translated as expected but the menu stays Dutch all the time. So when I click the English flag on a Dutch page, I see the English translation of that page with a Dutch menu. When I click an item from the menu I automatically open the Dutch version and the site language is Dutch again.
Same goed for the $locale variable. When I use this variable in a block, it always has the value 'nl' (dutch). Maybe this is why my menu displays in Dutch all the time?
The site adds a prefix to the Dutch language, although the default language is Dutch.
The database version version is MySQL 4.0.24
Please help! I spend days looking for a solution, but I cannot get it to work.