restructured setup a bit:

- move most of the lang-code from setup/lang.php to phpgwapi/inc/class.translation_sql.inc.php
- added a minimal-auto-configuration, so one does not need to enter the config-step at all for a running installation
- added the language of the admin to the installed languages
This commit is contained in:
Ralf Becker 2003-10-04 13:27:38 +00:00
parent 658dfdce96
commit c65032a812

View File

@ -117,8 +117,7 @@
/* Create tables and insert new records for each app in this list */
$passing = $this->current($pass,$DEBUG);
$passing = $this->default_records($passing,$DEBUG);
$my_lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
$passing = $this->add_langs($passing,$DEBUG,array($my_lang,'en'));
$passing = $this->add_langs($passing,$DEBUG,array(get_var('ConfigLang',Array('POST','COOKIE')),'en'));
$this->save_minimal_config();
break;
case 'upgrade':