From 613b561668e8b55eb33761940fa23a436ef6f587 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Wed, 27 Dec 2006 13:02:34 +0000 Subject: =?UTF-8?q?#105303=20by=20G=C3=A1bor=20Hojtsy.=20Improve=20transla?= =?UTF-8?q?tion=20converage=20for=20installation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/install.mysql.inc | 2 +- includes/install.mysqli.inc | 2 +- includes/install.pgsql.inc | 2 +- includes/theme.inc | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'includes') 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 .= "

The following $errors must be resolved before you can continue the installation process:

"; + $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 .= '

' .$title. ':

'; $output .= theme('status_messages', 'error'); } if (isset($messages['status'])) { - $warnings = count($messages['status']) > 1 ? 'warnings' : 'warning'; - $output .= "

The following installation $warnings should be carefully reviewed, but in most cases may be safely ignored:

"; + $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 .= '

' .$title. ':

'; $output .= theme('status_messages', 'status'); } -- cgit v1.2.3