Hi,

was spending the last two hours trying to translate the front-page in drupal 7. Can't believe this isn't in core, but that's something different. I just wanted to ask how to do it right... I now did it in the hook _variable_boot and there i wrote

i18n_variable_set('site_frontpage', "node/13", "ru");

for example. I know, this can't be the way to do it. Even in drupal 5 you could edit the settings.php and add the fields you wanted to translate... Is it because of the alpha state or did I get something wrong?

I would be glad to here the solution after searching so long...

Thanks and greets!

Comments

mrsimonelliott’s picture

I installed http://drupal.org/project/variable
Enabled all the variables here admin/config/regional/i18n/variable (sire_frontpage is not on this list)
Then changed one I did not need to site_frontpage here admin/config/system/variable/edit/i18n_variable_conf
Now when you navigate to site information, front page is a multilingual variable.

kris digital’s picture

Thank's for your hint! I tried it and this way is much more reasonable, even if it is hidden very well...

jose reyero’s picture

Status: Active » Closed (fixed)

Path variables were not marked as translatable by default. If you upgrade to latest variable module you'll see they are now.

kris digital’s picture

Thank's I will give it a try soon!