From e32ace088ae6134a1f3273125d78e193c79ccf96 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 10 Jul 2004 09:26:28 +0000 Subject: [PATCH] added language-selection --- setup/check_install.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/setup/check_install.php b/setup/check_install.php index 67d9db2ff2..e92292b106 100644 --- a/setup/check_install.php +++ b/setup/check_install.php @@ -426,7 +426,6 @@ if ($run_by_webserver) { - //echo "\n
\nChecking the eGroupWare install\n
\n\n"; $tpl_root = $GLOBALS['phpgw_setup']->html->setup_tpl_dir('setup'); $setup_tpl = CreateObject('setup.Template',$tpl_root); $setup_tpl->set_file(array( @@ -435,9 +434,17 @@ )); $ConfigDomain = get_var('ConfigDomain',Array('POST','COOKIE')); if (@$_GET['intro']) { + if($ConfigLang = get_var('ConfigLang',array('POST','COOKIE'))) + { + $GLOBALS['phpgw_setup']->set_cookie('ConfigLang',$ConfigLang,(int) (time()+(1200*9)),'/'); + } $GLOBALS['phpgw_setup']->html->show_header(lang('Welcome to the eGroupWare Installation'),False,'config'); echo '

'.lang('Welcome to the eGroupWare Installation')."

\n"; - echo lang('The first step in installing eGroupWare is to ensure your environment has the necessary settings to correctly run the application.'); + if(!$ConfigLang) + { + echo '

Please Select your language '.lang_select(True,'en')."

\n"; + } + echo '

'.lang('The first step in installing eGroupWare is to ensure your environment has the necessary settings to correctly run the application.'); echo '

'.lang('We will now run a series of tests, which may take a few minutes. Click the link below to proceed.'); echo '

'.lang('Run installation tests').'

'; $setup_tpl->pparse('out','T_footer');