Hi,
I'm setting up a bilinugual site with english and swedish with english as default. Sitemenus are created for respective language and uses Menu Block to display them.
Everything works correctly, correct language is showing up for current language, when accessing a node via path alias with language prefix.
However when using drupal's node paths. e.g. node/1 instead of the path alias only the english menus are showing up for english nodes. Situation:
entering drupal path: www.site.com/node/1 (alias www.site.com/en/home) - english menus are showing up
entering drupal path: www.site.com/node/200 (alias www.site.com/sv/home) - swedish menus are NOT showing up
Any clues? I thought that aliasing was just an alias and with the node system is still intact, so how comes that the menus are only showing up for the default language?
My setup:
Content selection: Current language and language neutral
Language neg: Path prefix with language fallback.
Comments
I'm pretty sure there is an
I'm pretty sure there is an option in i18n (or a separate contrib module?) to change the UI language based on the current content showing. By default, the UI language is that of the user, not the content showing (think about users where they speak multiple languages and would prefer the UI to be in their primary language while reviewing other content).
Caused by UI?
Thanks your reply. But is my issue related to UI language? How comes that the menus are showing if I use the URL alias instead, even if I'm logged out?
I think that when you don't
I think that when you don't specify the language in the url that it will default to the default language.
So www.site.com/node/200 will default to English if English is the default language.
I think www.site.com/sv/node/200 should display with Swedish menus
It sure display if prefixing
The menus will display if adding sv prefix. I thought that i18n and the possibility to assign a language to a block, the visibility of this block will be based on content language. I guess not. So what is trigging e.g. a block with swedish language assigned to be visible, is it language prefix?
The presentation language is
The presentation language is determined by the language negotiation. It's explained if you go to this page on your site.
admin/settings/language/configure