I have configured my system according to the settings below.
admin/config/system/site-information:
-default front page = /hem
admin/config/regional/language:
-Swedish = Default language
admin/config/search/path:
-Alias System Language =
/hem node/17 Swedish
/hem node/24 English
However, if I set the front page under,
sv/admin/config/system/site-information:
to /hem,
it is set to "node/17" under,
en/admin/config/system/site-information
and vice versa, i.e, it's set to node/24 if I set default front page under en/admin/config/system/site-information to /hem.
I can not find any solution to this using the GUI and is trying to find the database entry to solve this manually.
I've had this problem for a long time, and I have tried working with translation sets to no avail.
I find it strange that this has not been reported because and Home link that will take you to the root http://www.domain.com/(languagecode)/ will not be shown in the right language, which is pretty much essential for any multilanguage site.
I believe I have reported this two times before but I could not find the issue now and it appears to have disappeared.
I'm struggling to find the database entry to set the manually, but with no luck so far..
Comments
Comment #1
acp commentedHi there,
I'm having the same issue here and I'm not using i18n. I think this is a core related issue. When setting the frontpage to an alias, what gets stored in the DB is the actual node reference node/XXX.
I just solved this by modifying my DB by hand. Search for site_frontpage in {variable}. It is also stored on cache so you should flush it (or update it also) to be sure...
Comment #2
jose reyero commentedYou need to use 'multilingual variables' to set a different front-page for each language. Please read the module's handbook.
About #1, this is just how it should work.
Comment #3
dhatman commentedI have searched the handbook and found nothing explaining how I can make my website translate the frontpage correctly in the root path of the site ( domain.com/en/ or domain.com/sv/ ).
As I wrote in my first post, if I set the front to /hem, they will be redirected to the same page (not the page from the chosen language). The configuration module appears to set frontpage to the specified node/id and not to the url-alias that it should, as specified in the configuration setting of the languagecode that you used to set it.
If it's really possible,
and not some kind of mistake in logic of procedure,
I'd really like to learn how.
It is far from clear how to make CORRECT translation/direction of frontpage into respective language-node as specified by URL-alias and in the URLprefix (/en/ or /sv/).
Comment #4
dhatman commentedOk, so these are the modules I have activated in i18n
x Block languages
x Internationalization
x Multilingual content
x Path translation
x String translation
x Translation redirect
x Translation sets
x Variable translation
I have URL paths set for /hem to two different nodes in each respective language.
What do I have to do to make http://www.imjore.se/sv/ and http://www.imjore.se/en/ go to different nodes?
I have set frontpage to /hem in Configuration - Site Information, but whenever I set it to /hem in English-admin settings, it links the frontpage in Swedish-admin settings to it's english node (node/xx NOT /hem) like it should be, and that would work as URL-alias is defined for both languages to the right node.
I have looked through the manual and I can find nothing that resolves this.
Comment #5
jose reyero commentedComment #6
jose reyero commentedComment #7
ckuert commentedgot the same problem.
Comment #8
jose reyero commentedSee http://drupal.org/node/1216132