drupal_set_message(st('The %module module is required but was not found. Please move it into the <em>modules</em> subdirectory.',array('%module'=>$module)),'error');
'description'=>st('The following modules are required but were not found. Please move them into the appropriate modules subdirectory, such as <em>sites/all/modules</em>. Missing modules: !modules',array('!modules'=>implode(', ',$modules))),
// If Drupal is not set up already, we need to create a settings file.
if(!$verify){
...
...
@@ -909,48 +915,37 @@ function install_check_requirements($profile, $verify) {
$exists=TRUE;
}
}
if(!$exists){
drupal_set_message(st('The @drupal installer requires that you create a settings file as part of the installation process.
<ol>
<li>Copy the %default_file file to %file.</li>
<li>Change file permissions so that it is writable by the web server. If you are unsure how to grant file permissions, please consult the <a href="@handbook_url">on-line handbook</a>.</li>
</ol>
More details about installing Drupal are available in INSTALL.txt.',array('@drupal'=>drupal_install_profile_name(),'%file'=>$file,'%default_file'=>$conf_path.'/default.settings.php','@handbook_url'=>'http://drupal.org/server-permissions')),'error');
$requirements['settings file exists']=array(
'title'=>st('Settings file'),
'value'=>st('The settings file does not exist.'),
'severity'=>REQUIREMENT_ERROR,
'description'=>st('The @drupal installer requires that you create a settings file as part of the installation process. Copy the %default_file file to %file. More details about installing Drupal are available in INSTALL.txt.',array('@drupal'=>drupal_install_profile_name(),'%file'=>$file,'%default_file'=>$conf_path.'/default.settings.php')),
);
}
elseif(!$writable){
drupal_set_message(st('The @drupal installer requires write permissions to %file during the installation process. If you are unsure how to grant file permissions, please consult the <a href="@handbook_url">online handbook</a>.',array('@drupal'=>drupal_install_profile_name(),'%file'=>$file,'@handbook_url'=>'http://drupal.org/server-permissions')),'error');
$message.=' ('.st('Currently using !item !version',array('!item'=>$requirement['title'],'!version'=>$requirement['value'])).')';
}
drupal_set_message($message,'error');
}
if(!$writable){
$requirements['settings file writable']=array(
'title'=>st('Settings file'),
'value'=>st('The settings file is not writable.'),
'severity'=>REQUIREMENT_ERROR,
'description'=>st('The @drupal installer requires write permissions to %file during the installation process. If you are unsure how to grant file permissions, please consult the <a href="@handbook_url">online handbook</a>.',array('@drupal'=>drupal_install_profile_name(),'%file'=>$file,'@handbook_url'=>'http://drupal.org/server-permissions')),