automatic language detection is now working

This commit is contained in:
Lars Kneschke 2001-01-06 23:06:00 +00:00
parent 71cb70e46c
commit 5c98a89a6f
2 changed files with 2 additions and 3 deletions

View File

@ -367,7 +367,8 @@
$preferences_update = True;
}
if (!isset($phpgw_info["user"]["preferences"]["common"]["lang"]) || !$phpgw_info["user"]["preferences"]["common"]["lang"]) {
$phpgw->preferences->change("common","lang","en");
#$phpgw->preferences->change("common","lang","en");
$phpgw->preferences->change("common","lang",$phpgw->common->getPreferredLanguage());
$preferences_update = True;
}
if ($preferences_update) {

View File

@ -225,8 +225,6 @@
$db2->next_record();
$pref_info = $db2->f("preference_value");
$this->preference = unserialize($pref_info);
# if ($this->preference["common"]["lang"] == "auto")
# $this->preference["common"]["lang"] = $phpgw->common->getPreferredLanguage();
}
}