diff options
-rw-r--r-- | includes/install.mysql.inc | 2 | ||||
-rw-r--r-- | includes/install.mysqli.inc | 2 | ||||
-rw-r--r-- | includes/install.pgsql.inc | 2 | ||||
-rw-r--r-- | includes/theme.inc | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/includes/install.mysql.inc b/includes/install.mysql.inc index 9bab82c7a..7fe8ab7a9 100644 --- a/includes/install.mysql.inc +++ b/includes/install.mysql.inc @@ -21,7 +21,7 @@ function mysql_is_available() { */ function drupal_test_mysql($url, &$success) { if (!mysql_is_available()) { - drupal_set_message('PHP MySQL support not enabled.', 'error'); + drupal_set_message(st('PHP MySQL support not enabled.'), 'error'); return FALSE; } diff --git a/includes/install.mysqli.inc b/includes/install.mysqli.inc index ae5831f4e..0d243752f 100644 --- a/includes/install.mysqli.inc +++ b/includes/install.mysqli.inc @@ -21,7 +21,7 @@ function mysqli_is_available() { */ function drupal_test_mysqli($url, &$success) { if (!mysqli_is_available()) { - drupal_set_message('PHP MySQLi support not enabled.', 'error'); + drupal_set_message(st('PHP MySQLi support not enabled.'), 'error'); return FALSE; } diff --git a/includes/install.pgsql.inc b/includes/install.pgsql.inc index cc9da3998..6a37e06ed 100644 --- a/includes/install.pgsql.inc +++ b/includes/install.pgsql.inc @@ -21,7 +21,7 @@ function pgsql_is_available() { */ function drupal_test_pgsql($url, &$success) { if (!pgsql_is_available()) { - drupal_set_message('PHP PostgreSQL support not enabled.', 'error'); + drupal_set_message(st('PHP PostgreSQL support not enabled.'), 'error'); return FALSE; } diff --git a/includes/theme.inc b/includes/theme.inc index 0b475d4f6..6581b5cdb 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -453,14 +453,14 @@ function theme_install_page($content) { $messages = drupal_set_message(); if (isset($messages['error'])) { - $errors = count($messages['error']) > 1 ? 'errors' : 'error'; - $output .= "<h3>The following $errors must be resolved before you can continue the installation process:</h3>"; + $title = count($messages['error']) > 1 ? st('The following errors must be resolved before you can continue the installation process') : st('The following error must be resolved before you can continue the installation process'); + $output .= '<h3>' .$title. ':</h3>'; $output .= theme('status_messages', 'error'); } if (isset($messages['status'])) { - $warnings = count($messages['status']) > 1 ? 'warnings' : 'warning'; - $output .= "<h4>The following installation $warnings should be carefully reviewed, but in most cases may be safely ignored:</h4>"; + $warnings = count($messages['status']) > 1 ? st('The following installation warnings should be carefully reviewed, but in most cases may be safely ignored') : st('The following installation warning should be carefully reviewed, but in most cases may be safely ignored'); + $output .= '<h4>' .$title. ':</h4>'; $output .= theme('status_messages', 'status'); } |