mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
improved default preferences
- setting country from lang - setting dateformat for lang != en to 'd.m.Y' - setting curreny for lang != en to 'EUR' - also setting spellcheck_lang (no idea why this is a separate option)
This commit is contained in:
parent
d9a1970fe8
commit
c1da9e199b
@ -137,6 +137,10 @@ else
|
||||
// give admin access to default apps, not yet set for the default group
|
||||
function insert_default_prefs($accountid)
|
||||
{
|
||||
$lang = get_var('ConfigLang',Array('POST','COOKIE'),'en');
|
||||
list(,$country) = explode('-',$lang);
|
||||
if (empty($country)) $country = $lang;
|
||||
|
||||
$defaultprefs = array(
|
||||
'common' => array(
|
||||
'maxmatchs' => 15,
|
||||
@ -144,11 +148,13 @@ else
|
||||
'theme' => 'idots',
|
||||
'navbar_format' => 'icons',
|
||||
'tz_offset' => 0,
|
||||
'dateformat' => 'Y/m/d',
|
||||
'dateformat' => $lang == 'en' ? 'Y/m/d' : 'd.m.Y',
|
||||
'timeformat' => '24',
|
||||
'lang' => get_var('ConfigLang',Array('POST','COOKIE'),'en'),
|
||||
'lang' => $lang,
|
||||
'spellchecker_lang' => $lang,
|
||||
'country' => strtoupper($country),
|
||||
'default_app' => 'calendar',
|
||||
'currency' => '$',
|
||||
'currency' => $lang == 'en' ? '$' : 'EUR',
|
||||
'show_help' => True,
|
||||
'max_icons' => 12,
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user