drupal_set_message(st('The @drupal installer requires write permissions to %file during the installation process.',array('@drupal'=>drupal_install_profile_name(),'%file'=>$settings_file)),'error');
drupal_set_title('Drupal database setup');
drupal_set_title(st('Drupal database setup'));
printtheme('install_page','');
exit;
}
...
...
@@ -140,8 +149,8 @@ function install_change_settings() {
'#value'=>'Your web server does not appear to support any common database types. Check with your hosting provider to see if they offer any databases that <a href="http://drupal.org/node/270#database">Drupal supports</a>.',
'#value'=>st('Your web server does not appear to support any common database types. Check with your hosting provider to see if they offer any databases that <a href="@drupal-databases">Drupal supports</a>.',array('@drupal-databases'=>'http://drupal.org/node/270#database')),
);
}
else{
$form['basic_options']=array(
'#type'=>'fieldset',
'#title'=>'Basic options',
'#title'=>st('Basic options'),
'#description'=>st('<p>To set up your @drupal database, enter the following information.</p>',array('@drupal'=>drupal_install_profile_name())),
);
...
...
@@ -169,7 +178,7 @@ function install_settings_form($profile, $settings_file, $db_url, $db_type, $db_
// Database type
$form['basic_options']['db_type']=array(
'#type'=>'radios',
'#title'=>'Database type',
'#title'=>st('Database type'),
'#required'=>TRUE,
'#options'=>drupal_detect_database_types(),
'#default_value'=>$db_type,
...
...
@@ -191,7 +200,7 @@ function install_settings_form($profile, $settings_file, $db_url, $db_type, $db_
// Database name
$form['basic_options']['db_path']=array(
'#type'=>'textfield',
'#title'=>'Database name',
'#title'=>st('Database name'),
'#default_value'=>$db_path,
'#size'=>45,
'#maxlength'=>45,
...
...
@@ -202,7 +211,7 @@ function install_settings_form($profile, $settings_file, $db_url, $db_type, $db_
// Database username
$form['basic_options']['db_user']=array(
'#type'=>'textfield',
'#title'=>'Database username',
'#title'=>st('Database username'),
'#default_value'=>$db_user,
'#size'=>45,
'#maxlength'=>45,
...
...
@@ -212,7 +221,7 @@ function install_settings_form($profile, $settings_file, $db_url, $db_type, $db_
// Database username
$form['basic_options']['db_pass']=array(
'#type'=>'password',
'#title'=>'Database password',
'#title'=>st('Database password'),
'#default_value'=>$db_pass,
'#size'=>45,
'#maxlength'=>45,
...
...
@@ -221,27 +230,27 @@ function install_settings_form($profile, $settings_file, $db_url, $db_type, $db_
$form['advanced_options']=array(
'#type'=>'fieldset',
'#title'=>'Advanced options',
'#title'=>st('Advanced options'),
'#collapsible'=>TRUE,
'#collapsed'=>TRUE,
'#description'=>'These options are only necessary for some sites. If you\'re not sure what you should enter here, leave the default settings or check with your hosting provider.'
'#description'=>st('These options are only necessary for some sites. If you\'re not sure what you should enter here, leave the default settings or check with your hosting provider.')
);
// Database host
$form['advanced_options']['db_host']=array(
'#type'=>'textfield',
'#title'=>'Database host',
'#title'=>st('Database host'),
'#default_value'=>$db_host,
'#size'=>45,
'#maxlength'=>45,
'#required'=>TRUE,
'#description'=>'If your database is located on a different server, change this.',
'#description'=>st('If your database is located on a different server, change this.'),
);
// Database prefix
$form['advanced_options']['db_prefix']=array(
'#type'=>'textfield',
'#title'=>'Database prefix',
'#title'=>st('Database prefix'),
'#default_value'=>$db_prefix,
'#size'=>45,
'#maxlength'=>45,
...
...
@@ -251,13 +260,13 @@ function install_settings_form($profile, $settings_file, $db_url, $db_type, $db_
@@ -398,8 +463,8 @@ function install_select_profile_form($profiles) {
*/
functioninstall_no_profile_error(){
drupal_maintenance_theme();
drupal_set_title('No profiles available');
printtheme('install_page','<p>We were unable to find any installer profiles. Installer profiles tell us what modules to enable and what schema to install in the database. A profile is necessary to continue with the installation process.</p>');
drupal_set_title(st('No profiles available'));
printtheme('install_page',st('<p>We were unable to find any installer profiles. Installer profiles tell us what modules to enable and what schema to install in the database. A profile is necessary to continue with the installation process.</p>'));
exit;
}
...
...
@@ -411,8 +476,8 @@ function install_already_done_error() {
global$base_url;
drupal_maintenance_theme();
drupal_set_title('Drupal already installed');
printtheme('install_page','<ul><li>To start over, you must empty your existing database.</li><li>To install to a different database, edit the appropriate <em>settings.php</em> file in the <em>sites</em> folder.</li><li>To upgrade an existing installation, proceed to the <a href="'.$base_url.'/update.php">update script</a>.</li></ul>');
drupal_set_title(st('Drupal already installed'));
printtheme('install_page',st('<ul><li>To start over, you must empty your existing database.</li><li>To install to a different database, edit the appropriate <em>settings.php</em> file in the <em>sites</em> folder.</li><li>To upgrade an existing installation, proceed to the <a href="@base-url/update.php">update script</a>.</li></ul>',array('@base-url'=>$base_url)));
exit;
}
...
...
@@ -432,7 +497,7 @@ function install_complete($profile) {
$output=st('<p>Congratulations, @drupal has been successfully installed.</p>',array('@drupal'=>drupal_install_profile_name()));
$output.=st('<p>Congratulations, @drupal has been successfully installed.</p>',array('@drupal'=>drupal_install_profile_name()));
// Show profile finalization info.
$function=$profile.'_profile_final';
...
...
@@ -442,8 +507,7 @@ function install_complete($profile) {
}
else{
// No more steps
$msg=drupal_set_message()?'Please review the messages above before continuing on to <a href="%url">your new site</a>.':'You may now visit <a href="%url">your new site</a>.';
$output.='<p>'.(drupal_set_message()?st('Please review the messages above before continuing on to <a href="@url">your new site</a>.',array('@url'=>url(''))):st('You may now visit <a href="@url">your new site</a>.',array('@url'=>url('')))).'</p>';