I have a multi site multi language drupal set up using the i18n module. I would like to set the default language for each site in the settings.php for that site. Is there a $conf array('locale' => 'fr'); setting or something?

BTW $conf array('locale' => 'fr'); doesn't work.

is there some sort of $conf['i18n_variables'] = array(); that I could use?

Comments

So I solved it.

using $conf['i18n_variables'] = array();

I set up the various translations for each language.

Then I hacked the i18n.module:i18n_default_language() to bits.

function i18n_default_language(){

set the default language based on the URL

}

it's not pretty.

I had the same problem in drupal 6.

Solution:
$conf['language_default'] = (object) array('language' => 'sv');

http://api.drupal.org/api/function/language_default/6

Status:Active» Fixed

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.