The attached patch solves the very annoying bug described below:

Despite that I had added site_frontpage to $conf['i18n_variables'] in settings.php, and properly set node/1 and node/2 to be the frontpages of two languages, Drupal persisted in showing node or whatever frontpage I had set before adding site_frontpage to $conf['i18n_variables']. The reason is that the site_frontpage variable was accessed before the variables was updated with the multilingual values. By just changing the order of these two calls, the problem was solved.

I have marked this bug as critical since it prevents the correct selection of front page, and as a consequence also prevents the correct behaviour when is given in the page specific visibility settings for blocks.

The attached patch solves these problems.

CommentFileSizeAuthor
i18n.patch815 bytesTBarregren

Comments

jlinares’s picture

I had the same problem, has tested the patch and it works. Thanks, Thomas!.

jose reyero’s picture

Status: Needs review » Fixed

Fixed, thanks

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.