The more tests i make, the more i am confused.

What is the correct way to create a localized front page (localized content at all)?

I have tested both 5.x with "locale" and "i18n" and 6.x with "locale".

I want an internationalized (de / en) content page as the default front page. Referencing the node directly results in displaying hardcoded the respective language (5.x and 6.x).

registering the same alias will not work with 5.x. With 6.x, the same alias is accepted for the page (bug?),but can't be used for the default front page. Even more strange - using the alias always selects the same page, regardless of language active.

The same problem applies for all kind of links: how do i reference content independent from its language with a common name (as front page, from menu, from external link)?

What am i missing?

Comments

demenece’s picture

I'm with the same problems... no answers since january for this?

blueminds’s picture

Hi,

this is my solution for localizing menu:

1) Create two menus, one for each language.
2) Create all the menu items in appropriate language linking to appropriate language mutation of content

The result should be number of menus shown, each dedicated for one language. Therefore, the point now is to make hide all others that are not appropriate for current selected language.

3) Go to administration of blocks (admin/build/blocks) and go to configuration page of one of the menu blocks.
4) Configure section "Page specific visibility settings" as follows: click the third option saying about PHP (for being able doing this you need to have installed the PHP Filter module) and paste this code inside the textarea below the radios while setting the appropriate language code in the if condition.

<?php 
$uri_params = explode("/", request_uri());
if ($uri_params[1] != "en") {
return true;
}
?>

Unfortunately there is no way how you can localize static front page without additional coding in your theme...