Closed (fixed)
Project:
Internationalization
Version:
7.x-1.0-alpha2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2011 at 12:59 UTC
Updated:
1 Mar 2011 at 15:29 UTC
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
Comment #1
mrsimonelliott commentedI 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.
Comment #2
kris digital commentedThank's for your hint! I tried it and this way is much more reasonable, even if it is hidden very well...
Comment #3
jose reyero commentedPath variables were not marked as translatable by default. If you upgrade to latest variable module you'll see they are now.
Comment #4
kris digital commentedThank's I will give it a try soon!