the language switch of a translated node does not change the language part of the URL, block switcher works fine
In the example, node 2 is in spanish and node 3 in english
the block switcher goes to the right ..../en/node/3 and the node language switcher to ..../es/node/3. the problem is that "es" remains unchanged.

CommentFileSizeAuthor
i18n error.jpg33.61 KBgustavol

Comments

jose reyero’s picture

Status: Active » Fixed

Try beta3

jguffey’s picture

Status: Fixed » Active

Actually, when the node is also the home page and you switch languages, the problem still exists.

For example,
www.mysite.com/node/1 correctly goes to www.mysite.com/es/node/1
but
www.mysite.com/ goes to www.mysite.com/es, where the node is still in the default language, but the interface is translated.

jose reyero’s picture

Status: Active » Closed (works as designed)

That's just how it is expected to work. If you don't like it please file a bug for Drupal core.

jguffey’s picture

Wow, ok, well then I guess to solve my problem, and anyone else's that may have a simular problem of having different languages for their front page of their site, I'll have to put together a little custom module that will switch the homepage properly when a user switches the language.

Weither this is a fix to Core, or a fix to i18n, I think it'll be helpful, so when I'm done I'll post back my code here.

Thanks for your help.