forked from extern/egroupware
automatic language detection is now working
This commit is contained in:
parent
71cb70e46c
commit
5c98a89a6f
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user