From: skodak Date: Sat, 7 Feb 2009 13:35:01 +0000 (+0000) Subject: MDL-14924 language autorefresh and starting to reimplement welcome.html support ... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4d928665b931ab788f96da53d71a6233207bf166;p=moodle.git MDL-14924 language autorefresh and starting to reimplement welcome.html support + strings.txt cleanup --- diff --git a/install.php b/install.php index 8fd14f21e8..0892c464a3 100644 --- a/install.php +++ b/install.php @@ -442,6 +442,13 @@ if ($config->stage == INSTALL_ENVIRONMENT or $config->stage == INSTALL_PATHS) { +if ($config->stage == INSTALL_DISTRIBUTION) { + // TODO: reimplement welcome.html support for win installer + $config->stage = INSTALL_PATHS; +} + + + if ($config->stage == INSTALL_PATHS) { $paths = array('wwwroot' => get_string('wwwroot', 'install'), 'dirroot' => get_string('dirroot', 'install'), @@ -509,7 +516,7 @@ install_print_header($config, get_string('language'), $languages = install_get_list_of_languages(); echo '
'; echo '
'; -echo ''; foreach ($languages as $name=>$value) { $selected = ($name == $CFG->lang) ? 'selected="selected"' : ''; echo ''; diff --git a/install/stringnames.txt b/install/stringnames.txt index d3947aa042..c428f33cb5 100644 --- a/install/stringnames.txt +++ b/install/stringnames.txt @@ -1,134 +1,23 @@ -admindirerror -admindirname -admindirsettinghead -admindirsettingsub -bypassed +admindir cannotcreatelangdir -cannotcreatetempdir cannotdownloadcomponents cannotdownloadzipfile cannotfindcomponent cannotsavemd5file cannotsavezipfile cannotunzipfile -caution -check chooselanguagehead chooselanguagesub -closewindow -compatibility -compatibilitysettingshead -compatibilitysettingssub -componentisuptodate -configfilenotwritten -configfilewritten -configurationcompletehead -configurationcompletesub -continue -ctyperecommended -ctyperequired -curlrecommended -curlrequired -customcheck -database -databasecreationsettingshead -databasecreationsettingssub -databasecreationsettingssub2 -databasesettings -databasesettingshead -databasesettingssub -databasesettingssub_mssql -databasesettingssub_mssql_n -databasesettingssub_mysql -databasesettingssub_mysqli -databasesettingssub_oci8po -databasesettingssub_odbc_mssql -databasesettingssub_postgres7 -databasesettingswillbecreated -databasetypehead -databasetypesub +environment +errorsinenvironment +environmentsub2 dataroot -datarooterror -datarootpublicerror -dbconnectionerror -dbcreationerror -dbhost -dbprefix -dbtype -dbwrongencoding -dbwronghostserver -dbwrongnlslang -dbwrongprefix -directorysettingshead -directorysettingssub dirroot -dirrooterror -download -downloadedfilecheckfailed -downloadlanguagebutton -downloadlanguagehead -downloadlanguagenotneeded -downloadlanguagesub -environment -environmenterrortodo -environmenthead -environmentrecommendcustomcheck -environmentrecommendinstall -environmentrecommendversion -environmentrequirecustomcheck environmentrequireinstall environmentrequireversion -environmentsub -environmentsub2 -environmentxmlerror -error -errorsinenvironment -fail -fileuploads -fileuploadserror -gdversion -gdversionerror -gdversionhelp -globalsquotes -globalsquoteserror -globalswarning -help -iconvrecommended -info installation -invalidmd5 -langdownloaderror -langdownloadok language -magicquotesruntime -magicquotesruntimeerror -mbstringrecommended -memorylimit -memorylimiterror -memorylimithelp -missingrequiredfield -moodledocslink -mssql -mssql_n -mssqlextensionisnotpresentinphp -mysql -mysqli -mysql416bypassed -mysql416required -mysqlextensionisnotpresentinphp -mysqliextensionisnotpresentinphp -name -nativemysqli -next -oci8po -ociextensionisnotpresentinphp -odbc_mssql -odbcextensionisnotpresentinphp -ok -opensslrecommended parentlanguage -pass -password paths pathsrodataroot pathshead @@ -139,45 +28,11 @@ pathssubadmindir pathsunsecuredataroot pathswrongadmindir pathswrongdirroot -pgsqlextensionisnotpresentinphp -php50restricted -php52versionerror -php52versionhelp phpextension phpversion -phpversionerror -phpversionhelp -postgres7 -prefixcannotbeempty -prefixtoolong -previous -qtyperqpwillberemoved -qtyperqpwillberemovedanyway reload -remotedownloaderror -remotedownloadnotallowed -report -requiredentrieschanged -restricted -safemode -safemodeerror -serverchecks -sessionautostart -sessionautostarterror -skipdbencodingtest -sqliteextensionisnotpresentinphp -status -this_direction -tableprefix thischarset -thisdirection thislanguage -unicoderecommended -unicoderequired -upgradingactivitymodule -upgradingbackupdb -upgradingblocksdb -user welcomep10 welcomep20 welcomep30 @@ -185,11 +40,4 @@ welcomep40 welcomep50 welcomep60 welcomep70 -wrongdestpath -wrongsourcebase -wrongzipfilename wwwroot -wwwrooterror -yourchoice -xmlrpcrecommended -ziprequired diff --git a/lib/installlib.php b/lib/installlib.php index efc05d1a9b..4797cb7d85 100644 --- a/lib/installlib.php +++ b/lib/installlib.php @@ -5,12 +5,13 @@ */ define('INSTALL_WELCOME', 0); -define('INSTALL_ENVIRONMENT', 1); -define('INSTALL_PATHS', 2); -define('INSTALL_DOWNLOADLANG', 3); -define('INSTALL_DATABASETYPE', 4); -define('INSTALL_DATABASE', 5); -define('INSTALL_SAVE', 6); +define('INSTALL_DISTRIBUTION', 1); +define('INSTALL_ENVIRONMENT', 2); +define('INSTALL_PATHS', 3); +define('INSTALL_DOWNLOADLANG', 4); +define('INSTALL_DATABASETYPE', 5); +define('INSTALL_DATABASE', 6); +define('INSTALL_SAVE', 7); /** *Tries to detect the right www root setting. @@ -211,15 +212,22 @@ function install_print_footer($config, $reload=false) { global $CFG; if ($config->stage > INSTALL_WELCOME) { - $first = ''; + $first = ''; } else { - $first = ''; + $first = ''; + $first .= ' +'; } if ($reload) { - $next = ''; + $next = ''; } else { - $next = ''; + $next = ''; } echo ''; @@ -329,7 +337,7 @@ fieldset { width:95%; } -.stage6 .stage { +.stage7 .stage { font-weight: bold; color: red; }