summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-02 00:28:43 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-02 00:28:43 +0000
commit2bc5334aaefb8d1b34b7907a3a86ab7fdaa66b26 (patch)
treef82f8a25dfdec96db682b4a07807d5787ed5a608 /modules
parent54fc6e99bdb5a6fb01531c86d451ad0ddd3e84b2 (diff)
downloadbrdo-2bc5334aaefb8d1b34b7907a3a86ab7fdaa66b26.tar.gz
brdo-2bc5334aaefb8d1b34b7907a3a86ab7fdaa66b26.tar.bz2
- Patch #642010 by yoroy: shorten and reorganize help text for language stuff.
Diffstat (limited to 'modules')
-rw-r--r--modules/locale/locale.module15
1 files changed, 9 insertions, 6 deletions
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 '<p>' . t('Add all languages to be supported by your site. If your desired language is not available in the <em>Language name</em> drop-down, click <em>Custom language</em> 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.') . '</p>';
case 'admin/config/regional/language/configure':
- $output = '<p>' . t("Language negotiation settings determine the site's content and presentation languages. For both <em>language types</em> there is a list of <em>language detection methods</em> which can be used to configure the desired language negotiation logic. Each detection method can be <em>dragged</em> to gain a higher priority, but it must be <em>enabled</em> to affect the language negotiation process. If a language detection method is applied then all the lower ones are <em>ignored</em>, otherwise the following one will be taken into account. Some lanaguage detection methods provide a configuration page to further specify their behavior. The <em>default</em> detection method is always applied, so anything below it is always ignored. <strong>Modifying this setting may break all incoming URLs and should be used with caution in a production environment.</strong>") . '</p>';
- $output .= '<p>' . t('Available options include:') .'</p>';
- $output .= '<ul><li>' . t('<strong>URL.</strong> The language is determined by examining the URL for a language code, a custom string, or a domain, that matches the ones (if any) specified for each language. The path prefix or domain name for a language may be set by editing the <a href="@languages">available languages</a>. In the absence of an appropriate match, the site is displayed in the <a href="@languages">default language</a>. A configuration is available to choose whether use the path prefix or the domain. <em>Example: "example.com/de/contact" sets language to German based on the use of "de" within the path. "http://de.example.com/contact" sets presentation language to German based on the use of "http://de.example.com" in the domain.</em>', array('@languages' => url('admin/config/regional/language'))) . '</li>';
- $output .= '<li>' . t('<strong>Session.</strong> The language is determined from a request/session parameter. A configuration is available to choose the URL parameter name to be used. <em>Example: "example.com?language=de" sets language to German based on the use of "de" within the "language" parameter.</em>') . '</li></ul>';
+ $output = '<p>' . 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. <strong>Changing these settings may break all incoming URLs, use with caution in a production environment.</strong>") . '</p>';
+ return $output;
+ case 'admin/config/regional/language/configure/url':
+ $output = '<p>' . 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.') . '</p>';
+ return $output;
+ case 'admin/config/regional/language/configure/session':
+ $output = '<p>' . 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.') . '</p>';
return $output;
case 'admin/config/regional/translate':
$output = '<p>' . 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.') . '</p>';
@@ -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(