diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 80166ee..e7ee511 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -1508,7 +1508,7 @@ function install_select_language(&$install_state) { return; } else { - throw new Exception(st('Sorry, you must select a language to continue the installation.')); + throw new Exception(t('Sorry, you must select a language to continue the installation.')); } } } @@ -1697,7 +1697,7 @@ function install_get_localization_release() { * Indicates that there are no profiles available. */ function install_no_profile_error() { - drupal_set_title(st('No profiles available')); + drupal_set_title(t('No profiles available')); return t('We were unable to find any installation profiles. Installation 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.'); } @@ -1707,7 +1707,7 @@ function install_no_profile_error() { function install_already_done_error() { global $base_url; - drupal_set_title(st('Drupal already installed')); + drupal_set_title(t('Drupal already installed')); return t('', array('@base-url' => $base_url)); } @@ -1727,7 +1727,7 @@ function install_load_profile(&$install_state) { $install_state['profile_info'] = install_profile_info($install_state['parameters']['profile'], $install_state['parameters']['langcode']); } else { - throw new Exception(st('Sorry, the profile you have chosen cannot be loaded.')); + throw new Exception(t('Sorry, the profile you have chosen cannot be loaded.')); } } diff --git a/core/includes/install.inc b/core/includes/install.inc index 41dc7e7..1abb0f8 100644 --- a/core/includes/install.inc +++ b/core/includes/install.inc @@ -309,11 +309,11 @@ function drupal_rewrite_settings($settings = array(), $settings_file = NULL) { // Write the new settings file. if (file_put_contents(DRUPAL_ROOT . '/' . $settings_file, $buffer) === FALSE) { - throw new Exception(st('Failed to modify %settings. Verify the file permissions.', array('%settings' => $settings_file))); + throw new Exception(t('Failed to modify %settings. Verify the file permissions.', array('%settings' => $settings_file))); } } else { - throw new Exception(st('Failed to open %settings. Verify the file permissions.', array('%settings' => $settings_file))); + throw new Exception(t('Failed to open %settings. Verify the file permissions.', array('%settings' => $settings_file))); } } @@ -474,7 +474,7 @@ function drupal_install_config_directories() { // itself. But if it somehow fails anyway, the installation cannot proceed. // Bail out using a similar error message as in system_requirements(). if (!install_ensure_config_directory($config_type)) { - throw new Exception(st('The directory %directory could not be created or could not be made writable. To proceed with the installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more information, see the online handbook.', array( + throw new Exception(t('The directory %directory could not be created or could not be made writable. To proceed with the installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more information, see the online handbook.', array( '%directory' => config_get_config_directory($config_type), '@handbook_url' => 'http://drupal.org/server-permissions', ))); diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php index 1c97985..bb30901 100644 --- a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php +++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php @@ -161,7 +161,7 @@ function checkBinaryOutput() { '%needed_value' => 'escape', '!query' => "" . $query . "", ); - $this->fail(st("The %setting setting is currently set to '%current_value', but needs to be '%needed_value'. Change this by running the following query: !query", $replacements)); + $this->fail(t("The %setting setting is currently set to '%current_value', but needs to be '%needed_value'. Change this by running the following query: !query", $replacements)); } } } @@ -229,10 +229,10 @@ function initializeDatabase() { LANGUAGE \'sql\' '); - $this->pass(st('PostgreSQL has initialized itself.')); + $this->pass(t('PostgreSQL has initialized itself.')); } catch (\Exception $e) { - $this->fail(st('Drupal could not be correctly setup with the existing database. Revise any errors.')); + $this->fail(t('Drupal could not be correctly setup with the existing database. Revise any errors.')); } } }