From 2bc5334aaefb8d1b34b7907a3a86ab7fdaa66b26 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 2 Dec 2009 00:28:43 +0000 Subject: - Patch #642010 by yoroy: shorten and reorganize help text for language stuff. --- modules/locale/locale.module | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/locale/locale.module b/modules/locale/locale.module index 9063137e9..910f890ab 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -60,10 +60,13 @@ function locale_help($path, $arg) { case 'admin/config/regional/language/add': return '

' . t('Add all languages to be supported by your site. If your desired language is not available in the Language name drop-down, click Custom language and provide a language code and other details manually. When providing a language code manually, be sure to enter a standardized language code, since this code may be used by browsers to determine an appropriate display language.') . '

'; case 'admin/config/regional/language/configure': - $output = '

' . t("Language negotiation settings determine the site's content and presentation languages. For both language types there is a list of language detection methods which can be used to configure the desired language negotiation logic. Each detection method can be dragged to gain a higher priority, but it must be enabled to affect the language negotiation process. If a language detection method is applied then all the lower ones are ignored, otherwise the following one will be taken into account. Some lanaguage detection methods provide a configuration page to further specify their behavior. The default detection method is always applied, so anything below it is always ignored. Modifying this setting may break all incoming URLs and should be used with caution in a production environment.") . '

'; - $output .= '

' . t('Available options include:') .'

'; - $output .= ''; + $output = '

' . t("Determine which languages to use for content and for the administrative interface. Drag the detection methods into the order they should test for languages. The first method that gets a result will set the language for the relevant part of the site. Changing these settings may break all incoming URLs, use with caution in a production environment.") . '

'; + return $output; + case 'admin/config/regional/language/configure/url': + $output = '

' . t('Determine the language by examining the URL. Example: "example.com/de/contact" sets language to German based on the use of "de" as the path prefix. "http://de.example.com/contact" sets presentation language to German based on the use of "http://de.example.com" in the domain.') . '

'; + return $output; + case 'admin/config/regional/language/configure/session': + $output = '

' . t('Determine the language from a request/session parameter. Example: "example.com?language=de" sets language to German based on the use of "de" within the "language" parameter.') . '

'; return $output; case 'admin/config/regional/translate': $output = '

' . t('This page provides an overview of available translatable strings. Drupal displays translatable strings in text groups; modules may define additional text groups containing other translatable strings. Because text groups provide a method of grouping related strings, they are often used to focus translation efforts on specific areas of the Drupal interface.') . '

'; @@ -521,7 +524,7 @@ function locale_language_negotiation_info() { 'file' => $file, 'weight' => -8, 'name' => t('URL'), - 'description' => t('The language is determined from the URL (Path prefix or domain).'), + 'description' => t('Determine the language from the URL (Path prefix or domain).'), 'config' => 'admin/config/regional/language/configure/url', ); @@ -543,7 +546,7 @@ function locale_language_negotiation_info() { 'file' => $file, 'weight' => -4, 'name' => t('User'), - 'description' => t('The language is determined from the language preference set in the user account.'), + 'description' => t("Show in this user's language preference."), ); $providers[LOCALE_LANGUAGE_NEGOTIATION_BROWSER] = array( -- cgit v1.2.3