diff --git a/UPGRADE.txt b/UPGRADE.txt index 8619f539c23f..9bf9bd707f07 100644 --- a/UPGRADE.txt +++ b/UPGRADE.txt @@ -41,7 +41,7 @@ Let's begin! in step #10 if you are unable to log on as user ID 1. Do not close your browser until the final step is complete. -3. Place the site in "Off-line" mode, to let the database updates run without +3. Place the site in "Offline" mode, to let the database updates run without interruption and avoid displaying errors to end users of the site. This option is at http://www.example.com/?q=admin/settings/site-maintenance (replace www.example.com with your installation's domain name and path). diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 6aca6d5c009d..89e51536973a 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1064,7 +1064,7 @@ function _drupal_bootstrap($phase) { * Enables use of the theme system without requiring database access. * * Loads and initializes the theme system for site installs, updates and when - * the site is in off-line mode. This also applies when the database fails. + * the site is in offline mode. This also applies when the database fails. * * @see _drupal_maintenance_theme() */ diff --git a/includes/common.inc b/includes/common.inc index c9127a5bda4b..c1c2f6dfb441 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -325,12 +325,12 @@ function drupal_goto($path = '', $query = NULL, $fragment = NULL, $http_response } /** - * Generates a site off-line message. + * Generates a site offline message. */ function drupal_site_offline() { drupal_maintenance_theme(); drupal_set_header('HTTP/1.1 503 Service unavailable'); - drupal_set_title(t('Site off-line')); + drupal_set_title(t('Site offline')); print theme('maintenance_page', filter_xss_admin(variable_get('site_offline_message', t('@site is currently under maintenance. We should be back shortly. Thank you for your patience.', array('@site' => variable_get('site_name', 'Drupal')))))); } diff --git a/includes/database.inc b/includes/database.inc index 41116091bb7c..f662fc3d170a 100644 --- a/includes/database.inc +++ b/includes/database.inc @@ -169,7 +169,7 @@ function db_set_active($name = 'default') { /** * Helper function to show fatal database errors. * - * Prints a themed maintenance page with the 'Site off-line' text, + * Prints a themed maintenance page with the 'Site offline' text, * adding the provided error message in the case of 'display_errors' * set to on. Ends the page request; no return. * @@ -180,7 +180,7 @@ function _db_error_page($error = '') { global $db_type; drupal_maintenance_theme(); drupal_set_header('HTTP/1.1 503 Service Unavailable'); - drupal_set_title('Site off-line'); + drupal_set_title('Site offline'); $message = '
The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.
'; $message .= 'If you are the maintainer of this site, please check your database settings in the settings.php file and ensure that your hosting provider\'s database server is running. For more help, see the handbook, or contact your hosting provider.
' . t('Review the languages page for more information on adding support for additional languages.', array('@languages' => url('admin/settings/language'))) . '
'; return $output; case 'admin/build/translate/import': - $output = '' . t('This page imports the translated strings contained in an individual Gettext Portable Object (.po) file. Normally distributed as part of a translation package (each translation package may contain several .po files), a .po file may need to be imported after off-line editing in a Gettext translation editor. Importing an individual .po file may be a lengthy process.') . '
'; + $output = '' . t('This page imports the translated strings contained in an individual Gettext Portable Object (.po) file. Normally distributed as part of a translation package (each translation package may contain several .po files), a .po file may need to be imported after offline editing in a Gettext translation editor. Importing an individual .po file may be a lengthy process.') . '
'; $output .= '' . t('Note that the .po files within a translation package are imported automatically (if available) when new modules or themes are enabled, or as new languages are added. Since this page only allows the import of one .po file at a time, it may be simpler to download and extract a translation package into your Drupal installation directory and add the language (which automatically imports all .po files within the package). Translation packages are available for download on the Drupal translation page.', array('@language-add' => url('admin/settings/language/add'), '@translations' => 'http://drupal.org/project/translations')) . '
'; return $output; case 'admin/build/translate/export': return '' . t('This page exports the translated strings used by your site. An export file may be in Gettext Portable Object (.po) form, which includes both the original string and the translation (used to share translations with others), or in Gettext Portable Object Template (.pot) form, which includes the original strings only (used to create new translations with a Gettext translation editor).') . '
'; case 'admin/build/translate/search': - return '' . t('This page allows a translator to search for specific translated and untranslated strings, and is used when creating or editing translations. (Note: For translation tasks involving many strings, it may be more convenient to export strings for off-line editing in a desktop Gettext translation editor.) Searches may be limited to strings found within a specific text group or in a specific language.', array('@export' => url('admin/build/translate/export'))) . '
'; + return '' . t('This page allows a translator to search for specific translated and untranslated strings, and is used when creating or editing translations. (Note: For translation tasks involving many strings, it may be more convenient to export strings for offline editing in a desktop Gettext translation editor.) Searches may be limited to strings found within a specific text group or in a specific language.', array('@export' => url('admin/build/translate/export'))) . '
'; case 'admin/build/block/configure': if ($arg[4] == 'locale' && $arg[5] == 0) { return '' . t('This block is only shown if at least two languages are enabled and language negotiation is set to something other than None.', array('@languages' => url('admin/settings/language'), '@configuration' => url('admin/settings/language/configure'))) . '
'; diff --git a/modules/system/maintenance-page.tpl.php b/modules/system/maintenance-page.tpl.php index e29f2cb10c25..1c8b4b329972 100644 --- a/modules/system/maintenance-page.tpl.php +++ b/modules/system/maintenance-page.tpl.php @@ -4,7 +4,7 @@ /** * @file maintenance-page.tpl.php * - * Theme implementation to display a single Drupal page while off-line. + * Theme implementation to display a single Drupal page while offline. * * All the available variables are mirrored in page.tpl.php. Some may be left * blank but they are provided for consistency. diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 0c8a50a7b868..2314ea07783f 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1699,15 +1699,15 @@ function system_site_maintenance_settings() { '#type' => 'radios', '#title' => t('Site status'), '#default_value' => variable_get('site_offline', 0), - '#options' => array(t('Online'), t('Off-line')), - '#description' => t('When set to "Online", all visitors will be able to browse your site normally. When set to "Off-line", only users with the "administer site configuration" permission will be able to access your site to perform maintenance; all other visitors will see the site off-line message configured below. Authorized users can log in during "Off-line" mode directly via the user login page.', array('@user-login' => url('user'))), + '#options' => array(t('Online'), t('Offline')), + '#description' => t('When set to "Online", all visitors will be able to browse your site normally. When set to "Offline", only users with the "administer site configuration" permission will be able to access your site to perform maintenance; all other visitors will see the site offline message configured below. Authorized users can log in during "Offline" mode directly via the user login page.', array('@user-login' => url('user'))), ); $form['site_offline_message'] = array( '#type' => 'textarea', - '#title' => t('Site off-line message'), + '#title' => t('Site offline message'), '#default_value' => variable_get('site_offline_message', t('@site is currently under maintenance. We should be back shortly. Thank you for your patience.', array('@site' => variable_get('site_name', 'Drupal')))), - '#description' => t('Message to show visitors when the site is in off-line mode.') + '#description' => t('Message to show visitors when the site is in offline mode.') ); return system_settings_form($form); diff --git a/modules/system/system.install b/modules/system/system.install index 044f52ef4cbb..55eb7b10df58 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -210,7 +210,7 @@ function system_requirements($phase) { elseif ($phase == 'install') { // For the installer UI, we need different wording. 'value' will // be treated as version, so provide none there. - $description = $error . ' ' . $t('An automated attempt to create this directory failed, possibly due to a permissions problem. 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, please see INSTALL.txt or the on-line handbook.', array('@handbook_url' => 'http://drupal.org/server-permissions')); + $description = $error . ' ' . $t('An automated attempt to create this directory failed, possibly due to a permissions problem. 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, please see INSTALL.txt or the online handbook.', array('@handbook_url' => 'http://drupal.org/server-permissions')); $requirements['file system']['value'] = ''; } if (!empty($description)) { diff --git a/modules/system/system.module b/modules/system/system.module index a8aa32e056f4..b34c39f55412 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -55,7 +55,7 @@ function system_help($path, $arg) { $output .= '' . t('For more information, see the online handbook entry for System module.', array('@system' => 'http://drupal.org/handbook/modules/system/')) . '
'; return $output; case 'admin': @@ -580,7 +580,7 @@ function system_menu() { ); $items['admin/settings/site-maintenance'] = array( 'title' => 'Site maintenance', - 'description' => 'Take the site off-line for maintenance or bring it back online.', + 'description' => 'Take the site offline for maintenance or bring it back online.', 'page callback' => 'drupal_get_form', 'page arguments' => array('system_site_maintenance_settings'), 'access arguments' => array('administer site configuration'), diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index f2cef06a2a5f..b4134ff9b469 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -175,8 +175,8 @@ ini_set('url_rewriter.tags', ''); # 'theme_default' => 'minnelli', # 'anonymous' => 'Visitor', /** - * A custom theme can be set for the off-line page. This applies when the site - * is explicitly set to off-line mode through the administration page or when + * A custom theme can be set for the offline page. This applies when the site + * is explicitly set to offline mode through the administration page or when * the database is inactive due to an error. It can be set through the * 'maintenance_theme' key. The template file should also be copied into the * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.