From 205f8ff01bbbbf010a5bee4734cc169e67d8d452 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Sat, 25 Nov 2006 09:04:22 +0000 Subject: #97941 by webchick. Consistent defaults for 'site_name' variable. --- modules/aggregator/aggregator.module | 2 +- modules/drupal/drupal.module | 2 +- modules/system/system.module | 2 +- modules/user/user.module | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index ccaf7909b..e8396558d 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -1212,7 +1212,7 @@ function aggregator_page_rss() { $output .= "\n"; $output .= "\n"; - $output .= format_rss_channel(variable_get('site_name', t('Drupal')) . ' ' . t('aggregator'), url('aggregator' . $url, NULL, NULL, TRUE), variable_get('site_name', t('Drupal')) . ' - ' . t('aggregated feeds') . $title, $items, 'en'); + $output .= format_rss_channel(variable_get('site_name', 'Drupal') . ' ' . t('aggregator'), url('aggregator' . $url, NULL, NULL, TRUE), variable_get('site_name', 'Drupal') . ' - ' . t('aggregated feeds') . $title, $items, 'en'); $output .= "\n"; drupal_set_header('Content-Type: application/rss+xml; charset=utf-8'); diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module index f41119abb..dbc6529b1 100644 --- a/modules/drupal/drupal.module +++ b/modules/drupal/drupal.module @@ -41,7 +41,7 @@ print drupal_client_page(); return t('

Using this your site can "call home" to another Drupal server. By calling home to drupal.org and sending a list of your installed modules and themes, you help rank projects on drupal.org and so assist all Drupal administrators to find the best components for meeting their needs. If you want to register with a different server, you can change the Drupal XML-RPC server setting -- but the server has to be able to handle Drupal XML. Some XML-RPC servers may present directories of all registered sites. To get all your site information listed, go to the site information settings page and set the site name, the e-mail address, the slogan, and the mission statement.

', array('@site-settings' => url('admin/settings/site-information'))); case 'user/help#drupal': return variable_get('drupal_authentication_service', 0) ? t('

Drupal is the name of the software that powers %this-site. There are Drupal websites all over the world, and many of them share their registration databases so that users may freely log in to any Drupal site using a single Drupal ID.

-

So please feel free to log in to your account here at %this-site with a username from another Drupal site. The format of a Drupal ID is similar to an e-mail address: username@server. An example of a valid Drupal ID is mwlily@drupal.org.

', array('@Drupal' => 'http://drupal.org', '%this-site' => variable_get('site_name', 'this website'))) : ''; +

So please feel free to log in to your account here at %this-site with a username from another Drupal site. The format of a Drupal ID is similar to an e-mail address: username@server. An example of a valid Drupal ID is mwlily@drupal.org.

', array('@Drupal' => 'http://drupal.org', '%this-site' => variable_get('site_name', 'Drupal'))) : ''; } } diff --git a/modules/system/system.module b/modules/system/system.module index 4665ee86f..86fc004bc 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -838,7 +838,7 @@ function system_site_maintenance_settings() { $form['site_offline_message'] = array( '#type' => 'textarea', '#title' => t('Site off-line 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', t('This Drupal site'))))), + '#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.') ); diff --git a/modules/user/user.module b/modules/user/user.module index 3095d75aa..470737600 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -897,10 +897,10 @@ function user_login($msg = '') { '#attributes' => array('tabindex' => '1'), ); if (variable_get('drupal_authentication_service', FALSE) && count(user_auth_help_links()) > 0) { - $form['name']['#description'] = t('Enter your @s username, or an ID from one of our affiliates: !a.', array('@s' => variable_get('site_name', 'local'), '!a' => implode(', ', user_auth_help_links()))); + $form['name']['#description'] = t('Enter your @s username, or an ID from one of our affiliates: !a.', array('@s' => variable_get('site_name', 'Drupal'), '!a' => implode(', ', user_auth_help_links()))); } else { - $form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'local'))); + $form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'Drupal'))); } $form['pass'] = array('#type' => 'password', '#title' => t('Password'), @@ -2331,7 +2331,7 @@ function user_help($section) { case 'admin/user/search': return t('

Enter a simple pattern ("*" may be used as a wildcard match) to search for a username. For example, one may search for "br" and Drupal might return "brian", "brad", and "brenda".

'); case 'user/help#user': - $site = variable_get('site_name', 'this website'); + $site = variable_get('site_name', 'Drupal'); $affiliates = user_auth_help_links(); if (count($affiliates)) { -- cgit v1.2.3