Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
tstaar CreditAttribution: tstaar commentedSo 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.
Comment #2
degeer CreditAttribution: degeer commentedI had the same problem in drupal 6.
Solution:
$conf['language_default'] = (object) array('language' => 'sv');
http://api.drupal.org/api/function/language_default/6
Comment #3
nedjoComment #4
ar-jan CreditAttribution: ar-jan commented@ #2 Thanks you saved me! (from #348942: Aliased pages not found (404) on language-bound domains).