Closed (fixed)
Project:
Multilingual Drupal
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
7 Jun 2010 at 08:13 UTC
Updated:
15 Jun 2010 at 19:11 UTC
hi, i have a multilingual multidomain drupal site and for some reason, he doesn't get the right language in the second domain.
I explain it in details :
- i have www.bruxelles-renouvelable.be who is in french and homepage is /node/1
-the other site is in dutch : www.hernieuwbaar-brussel.be and homepage is /nl/node/14
french is not the problem.... dutch is.
I try to create a php code that whe he sees that the adress begins with www.hernieuwbaar-brussel.be, he changes the language in dutch...
But it doesn't wok...
anybody could help me ?
function _i18n_get_lang() {
switch($_SERVER['SERVER_NAME']) {
case 'http://www.bruxelles-renouvelable.be':
return 'fr';
case 'http://www.hernieuwbaar-brussel.be':
return 'nl';
}
Comments
Comment #1
gregius commentedup ?
Comment #2
jose reyero commentedLooks like you have some problem with language settings "NL/node/14" ?
Anyway, this is not an i18n module issue. Language selection is done by Drupal core.