? files
? locale-text-3.patch
? locale-text-4.patch
? modules/blog/.blog.module.swp
? sites/default/settings.php
Index: includes/locale.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/locale.inc,v
retrieving revision 1.166
diff -u -p -r1.166 locale.inc
--- includes/locale.inc	26 Nov 2007 23:33:03 -0000	1.166
+++ includes/locale.inc	27 Nov 2007 16:11:44 -0000
@@ -159,7 +159,7 @@ function locale_languages_predefined_for
     '#title' => t('Language name'),
     '#default_value' => key($predefined),
     '#options' => $predefined,
-    '#description' => t('Select the desired language here, or add it below, if you are unable to find it in the list.'),
+    '#description' => t('Select the desired language and click the <em>Add language</em> button. (Use the <em>Custom language</em> options if your desired language does not appear in this list.)'),
   );
   $form['language list']['submit'] = array('#type' => 'submit', '#value' => t('Add language'));
   return $form;
@@ -240,7 +240,7 @@ function _locale_languages_common_contro
       '#required' => TRUE,
       '#default_value' => @$language->language,
       '#disabled' => (isset($language->language)),
-      '#description' => t('This should be an <a href="@rfc4646">RFC 4646</a> compliant language identifier. Basic tags use a country code with an optional script or regional variant name, like "en", "en-US" and "zh-Hant".', array('@rfc4646' => 'http://www.ietf.org/rfc/rfc4646.txt')),
+      '#description' => t('<a href="@rfc4646">RFC 4646</a> compliant language identifier. Language codes typically use a country code, and optionally, a script or regional variant name. <em>Examples: "en", "en-US" and "zh-Hant".</em>', array('@rfc4646' => 'http://www.ietf.org/rfc/rfc4646.txt')),
     );
   }
   $form['name'] = array('#type' => 'textfield',
@@ -248,7 +248,7 @@ function _locale_languages_common_contro
     '#maxlength' => 64,
     '#default_value' => @$language->name,
     '#required' => TRUE,
-    '#description' => t('Name of the language. Will be available for translation in all languages.'),
+    '#description' => t('Name of the language in English. Will be available for translation in all languages.'),
   );
   $form['native'] = array('#type' => 'textfield',
     '#title' => t('Native language name'),
@@ -261,18 +261,18 @@ function _locale_languages_common_contro
     '#title' => t('Path prefix'),
     '#maxlength' => 64,
     '#default_value' => @$language->prefix,
-    '#description' => t('Optional path prefix, for example "deutsch" for the German version. This value is not used in the "None" and "Domain" negotiation schemes. You can leave this empty if you use "Path only" negotiation and this is the default language. Changing this will break existing URLs.')
+    '#description' => t('Language code or other custom string for pattern matching within the path. With language negotiation set to <em>Path prefix only</em> or <em>Path prefix with language fallback</em>, this site is presented in this language when the Path prefix value matches an element in the path. For the default language, this value may be left blank. <strong>Modifying this value will break existing URLs and should be used with caution in a production environment.</strong> <em>Example: Specifying "deutsch" as the path prefix for German results in URLs in the form "www.example.com/deutsch/node".</em>')
   );
   $form['domain'] = array('#type' => 'textfield',
     '#title' => t('Language domain'),
     '#maxlength' => 64,
     '#default_value' => @$language->domain,
-    '#description' => t('Optional custom domain with protocol (eg. "http://example.de" or "http://de.example.com" for the German version). This value is only used in the "Domain" negotiation mode. If left empty and in "Domain" mode, this language will not be accessible.'),
+    '#description' => t('Language code or other custom string for pattern matching within the domain. With language negotiation set to <em>Domain name only</em>, the site is presented in this language when the Language domain value matches an element in the domain. For the default language, this value may be left blank. <strong>This value must include a protocol as part of the string.</strong> <em>Example: Specifying "http://example.de" or "http://de.example.com" as language domains for German results in URLs in the forms "http://example.de/node" and "http://de.example.com/node", respectively.</em>'),
   );
   $form['direction'] = array('#type' => 'radios',
     '#title' => t('Direction'),
     '#required' => TRUE,
-    '#description' => t('Direction of the text being written in this language.'),
+    '#description' => t('Direction that text in this language is presented.'),
     '#default_value' => @$language->direction,
     '#options' => array(LANGUAGE_LTR => t('Left to right'), LANGUAGE_RTL => t('Right to left'))
   );
@@ -444,12 +444,12 @@ function locale_languages_configure_form
     '#title' => t('Language negotiation'),
     '#type' => 'radios',
     '#options' => array(
-      LANGUAGE_NEGOTIATION_NONE => t('None. Language will be independent of visitor preferences and language prefixes or domains.'),
-      LANGUAGE_NEGOTIATION_PATH_DEFAULT => t('Path prefix only. If a suitable path prefix is not identified, the default language is used.'),
-      LANGUAGE_NEGOTIATION_PATH => t('Path prefix with language fallback. If a suitable  path prefix is not identified, language is based on user preferences and browser language settings.'),
-      LANGUAGE_NEGOTIATION_DOMAIN => t('Domain name only. If a suitable domain name is not identified, the default language is used.')),
+      LANGUAGE_NEGOTIATION_NONE => t('None.'),
+      LANGUAGE_NEGOTIATION_PATH_DEFAULT => t('Path prefix only.'),
+      LANGUAGE_NEGOTIATION_PATH => t('Path prefix with language fallback.'),
+      LANGUAGE_NEGOTIATION_DOMAIN => t('Domain name only.')),
     '#default_value' => variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE),
-    '#description' => t('The used language detection mode. Changing this also changes how paths are constructed, so setting a different value breaks all incoming links. Do not change on a live site without thinking twice!')
+    '#description' => t('Select the mechanism used to determine your site\'s presentation language. <strong>Modifying this setting may break all incoming URLs and should be used with caution in a production environment.</strong>')
   );
   $form['submit'] = array(
     '#type' => 'submit',
@@ -606,7 +606,7 @@ function locale_translate_import_form() 
   $form['import']['file'] = array('#type' => 'file',
     '#title' => t('Language file'),
     '#size' => 50,
-    '#description' => t('A gettext Portable Object (.po) file.'),
+    '#description' => t('A Gettext Portable Object (.po) file.'),
   );
   $form['import']['langcode'] = array('#type' => 'select',
     '#title' => t('Import into'),
@@ -701,7 +701,7 @@ function locale_translate_export_po_form
   $form['export']['langcode'] = array('#type' => 'select',
     '#title' => t('Language name'),
     '#options' => $names,
-    '#description' => t('Select the language you would like to export in gettext Portable Object (.po) format.'),
+    '#description' => t('Select the language you would like to export in Gettext Portable Object (.po) format.'),
   );
   $form['export']['group'] = array('#type' => 'radios',
     '#title' => t('Text group'),
@@ -720,7 +720,7 @@ function locale_translate_export_pot_for
   $form['export'] = array('#type' => 'fieldset',
     '#title' => t('Export template'),
     '#collapsible' => TRUE,
-    '#description' => t('Generate a gettext Portable Object Template (.pot) file with all strings from the Drupal locale database.'),
+    '#description' => t('Generate a Gettext Portable Object Template (.pot) file with all strings from the Drupal locale database.'),
   );
   $form['export']['group'] = array('#type' => 'radios',
     '#title' => t('Text group'),
Index: modules/locale/locale.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/locale/locale.module,v
retrieving revision 1.202
diff -u -p -r1.202 locale.module
--- modules/locale/locale.module	26 Nov 2007 22:34:09 -0000	1.202
+++ modules/locale/locale.module	27 Nov 2007 16:11:44 -0000
@@ -32,33 +32,41 @@ define('LANGUAGE_RTL', 1);
 function locale_help($path, $arg) {
   switch ($path) {
     case 'admin/help#locale':
-      $output = '<p>'. t('The locale module allows you to present your Drupal site in a language other than the default English. You can use it to set up a multi-lingual website or replace given <em>built-in</em> text with text which has been customized for your site. Whenever the locale module encounters text which needs to be displayed, it tries to translate it into the currently selected language. If a translation is not available, then the string is remembered, so you can look up untranslated strings easily.') .'</p>';
-      $output .= '<p>'. t('The locale module provides two options for providing translations. The first is the integrated web interface, via which you can search for untranslated strings, and specify their translations. An easier and less time-consuming method is to import existing translations for your language. These translations are available as <em>GNU gettext Portable Object files</em> (<em>.po</em> files for short). Translations for many languages are available for download from the translation page.') .'</p>';
-      $output .= '<p>'. t("If an existing translation does not meet your needs, the <em>.po</em> files are easily edited with special editing tools. The locale module's import feature allows you to add strings from such files into your site's database. The export functionality enables you to share your translations with others, generating Portable Object files from your site strings.") .'</p>';
+      $output = '<p>'. t('The locale module allows your Drupal site to be presented in languages other than the default English, a key feature of multi-lingual websites. The locale module works by examining text as it is about to be displayed: when a translation of the text is available in the language to be displayed, the translation is displayed rather than the original text. When a translation is unavailable, the original text is displayed, and then stored for later review by a translator.') .'</p>';
+      $output .= '<p>'. t('Translations may be provided by:') .'</p>';
+      $output .= '<ul><li>'. t('translating the original text via the locale module\'s integrated web interface, or') .'</li>';
+      $output .= '<li>'. t('importing a set of existing translations, known as a <em>translation pack</em>. Translation packs enable the display of a specific version of Drupal in a specific language, and contain files in the <em>GNU Gettext Portable Object (.po)</em> format. Although not all languages are available for every version of Drupal, translation packs for many languages are available for download from the <a href="@translations">Drupal translation page</a>.', array('@translations' => 'http://drupal.org/project/translations')) .'</li></ul>';
+      $output .= '<p>'. t('If an existing translation pack does not meet your needs, the <em>.po</em> files within a pack may be modified, or new <em>.po</em> files may be created, using a desktop Gettext editor. The locale module\'s <a href="@import">import</a> feature allows translated strings found in new or modified <em>.po</em> files to be added to your site database. The locale module\'s <a href="@export">export</a> feature generates <em>.po</em> files from the translated strings found in your site database.', array('@import' => url('admin/build/translate/import'), '@export' => url('admin/build/translate/export'))) .'</p>';
       $output .= '<p>'. t('For more information please read the configuration and customization handbook <a href="@locale">Locale page</a>.', array('@locale' => 'http://drupal.org/handbook/modules/locale/')) .'</p>';
       return $output;
     case 'admin/settings/language':
-      $output = '<p>'. t('Drupal provides support for the translation of its interface text into different languages. This page provides an overview of the installed languages. You can add a language on the <a href="@add-language">add language page</a>, or directly by <a href="@import">importing a translation</a>. If multiple languages are enabled, registered users will be able to set their preferred language. The site default will be used for anonymous visitors and for users without their own settings.', array('@add-language' => url('admin/settings/language/add'), '@import' => url('admin/build/translate/import'))) .'</p>';
-      $output .= '<p>'. t('Drupal interface translations may be added or extended by <a href="@import">importing</a> an existing translation, by <a href="@search">translating everything</a> from scratch, or by a combination of these approaches.', array('@import' => url('admin/build/translate/import'), '@search' => url('admin/build/translate/search'))) .'</p>';
-      $output .= '<p>'. t('To quickly add additional languages to your site, a number of <a href="@translations">contributed translations</a> are available.', array('@translations' => 'http://drupal.org/project/translations')) .'</p>';
+      $output = '<p>'. t('This page provides an overview of your site\'s enabled languages. If multiple languages are available and enabled, registered users may select their preferred language. The site\'s default language is used for anonymous visitors and for users who have not selected a preferred language.') .'</p>';
+      $output .= '<p>'. t('For each language available on the site, use the <em>edit</em> link to configure language details, including name, an optional language-specific path or custom domain used in language display negotiation, and whether the language is natively presented either left-to-right or right-to-left.') .'</p>';
+      $output .= '<p>' .t('Use the <a href="@add-language">add language page</a> to enable an additional language for <a href="@search">manual translation</a>, or the <a href="@import">import</a> page to add a pre-packaged set of translations (or <em>language pack</em>) for a specific language. A number of contributed translation packs are available on the <a href="@translations">Drupal.org translations page</a>.', array('@add-language' => url('admin/settings/language/add'), '@search' => url('admin/build/translate/search'), '@import' => url('admin/build/translate/import'), '@translations' => 'http://drupal.org/project/translations')) .'</p>';
       return $output;
     case 'admin/settings/language/add':
-      return '<p>'. t("You need to add all languages in which you would like to display the site interface. If you can't find the desired language in the quick-add dropdown, then you will need to provide the proper language code yourself. The language code may be used to negotiate with browsers and to present flags, etc., so it is important to pick a code that is standardized for the desired language. You can also add a language by <a href=\"@import\">importing a translation</a>.", array("@import" => url("admin/build/translate/import"))) .'</p>';
+      return '<p>'. t("Add all languages in which the site should be displayed. If your desired language is not available for selection 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.) Languages may also be added by <a href=\"@import\">importing pre-packaged translation packs</a>.", array("@import" => url("admin/build/translate/import"))) .'</p>';
     case 'admin/settings/language/configure':
-      return '<p>'. t('The language used to display a web page is determined with a negotiation algorithm. You can choose how this algorithm should work. By default, there is no negotiation and the default language is used. You can use path prefixes (like "de" and "it" for German and Italian content) with different fallback options, so you can have web addresses like /de/contact and /it/contact. Alternatively you can use custom domains like de.example.com and it.example.com. Customize path prefixes and set domain names on the <a href="@languages">language editing pages</a>.', array('@languages' => url('admin/settings/language'))) .'</p>';
+      $output = '<p>'. t('Language negotiation settings determine how the site\'s presentation language is determined. Available options include:') .'</p>';
+      $output .= '<ul><li>' .t('<strong>None.</strong> The default language is used for site presentation, though users may (optionally) select a preferred language on the <em>My Account</em> page. (User language preferences will be used for site e-mails, if available.)'). '</li>';
+      $output .= '<li>' .t('<strong>Path prefix only.</strong> The presentation language is determined by pattern matching on the use of a language code or another custom string within the path. If a suitable prefix is not identified, the default language is used. <em>Example: "example.com/de/contact" sets presentation language to German based on the use of "de" within the path.</em>') .'</li>';
+      $output .= '<li>'. t('<strong>Path prefix with language fallback.</strong> The presentation language is determined by pattern matching on the use of a language code or another custom string within the path. If a suitable prefix is not identified, the display language is determined by the user\'s language preferences from the <em>My Account</em> page, or by the browser\'s language settings. If a presentation language cannot be determined, the default language is used.') .'</t>';
+      $output .= '<li>'. t('<strong>Domain name only.</strong> The presentation language is determined by pattern matching on the use of a language code or another custom string within the full domain name (with protocol). If a suitable domain is not identified, the default language is used. <em>Example: "http://de.example.com/contact" sets presentation language to German based on the use of "http://de.example.com" in the domain.</em>') .'</li></ul>';
+      $output .= '<p>'. t('The strings to be matched on either the path or domain name may be set on the <a href="@languages">language\'s editing page</a>. In the absence of an appropriate match, the site is displayed in the <a href="@languages">default language</a>.', array('@languages' => url('admin/settings/language'))) .'</p>';
+      return $output;
     case 'admin/build/translate':
-      $output = '<p>'. t("This page provides an overview of interface translation on the site. Drupal groups all translatable strings in so called 'text groups'. Modules may provide additional to the 'built-in interface' default, to separate strings used for other purposes, allowing you to focus your translation efforts on the groups of text you care most about. For example, a translation team could choose not to fully translate a text group that includes less important data, being still able to ensure that built-in interface is always fully translated.") .'</p>';
-      $output .= '<p>'. t('To quickly add additional languages to your site, a number of <a href="@translations">contributed translations</a> are available.', array('@translations' => 'http://drupal.org/project/translations')) .'</p>';
+      $output = '<p>'. t('This page provides an overview of available site translations. Drupal displays translatable strings in <em>text groups</em>; modules may define additional text groups containing other categories of 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>';
+      $output .= '<p>'. t('To quickly add additional languages to your site, a number of <a href="@translations">contributed translations</a> are available and can be <a href="@import">imported</a>.', array('@translations' => 'http://drupal.org/project/translations', '@import' => url('admin/build/translate/import'))) .'</p>';
       return $output;
     case 'admin/build/translate/import':
-      return '<p>'. t('This page allows you to import a translation provided in the gettext Portable Object (.po) format. The easiest way to get your site translated is to obtain an existing Drupal translation and to import it. You can find existing translations on the <a href="@translations">Drupal translation page</a>. Note that importing a translation file might take a while.', array('@translations' => 'http://drupal.org/project/translations')) .'</p>';
+      return '<p>'. t('This page allows for the import of <em>Gettext Portable Object (.po) files</em>. <em>Gettext</em> files are normally contained within a translation pack. Each translation pack enables the display of a specific Drupal version in a specific language, and downloading and importing these packs is the simplest method of providing a translation of your site interface. Although not all languages are available for every version of Drupal, many language packs are available for download on the <a href="@translations">Drupal translation page</a>. Note that importing a translation file may be a lengthy process.', array('@translations' => 'http://drupal.org/project/translations')) .'</p>';
     case 'admin/build/translate/export':
-      return '<p>'. t('This page allows you to export Drupal strings. The first option is to export a translation so it can be shared. The second option generates a translation template, which contains all Drupal strings, but without their translations. You can use this template to start a new translation using various software packages designed for this task.') .'</p>';
+      return '<p>'. t('This page allows for the export of the translated strings used by your site in <em>Gettext Portable Object (.po)</em> format. Exports may include the original string and its translation (used to share translations with others) or may include only the original strings (used to edit or create a translation with a Gettext translation editor).') .'</p>';
     case 'admin/build/translate/search':
-      return '<p>'. t('It is often convenient to get the strings from your setup on the <a href="@export">export page</a>, and use a desktop Gettext translation editor to edit the translations. On this page you can search in the translated and untranslated strings, and the default English texts provided by Drupal.', array('@export' => url('admin/build/translate/export'))) .'</p>';
+      return '<p>'. t('This page allows a translator to search for specific translated and untranslated strings, and is used when building a new or editing an existing translation. (Note: For translation tasks involving many strings, it may be more convenient to <a href="@export">export</a> strings for 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'))) .'</p>';
     case 'admin/build/block/configure':
       if ($arg[4] == 'locale' && $arg[5] == 0) {
-        return '<p>'. t("This block is only shown if you have <a href=\"@languages\">at least two languages enabled</a> and you have a <a href=\"@configuration\">language negotiation setting</a> other than 'none', so you have different web addresses for different language versions.", array('@languages' => url('admin/settings/language'), '@configuration' => url('admin/settings/language/configure'))) .'</p>';
+        return '<p>'. t('This block is only shown if <a href="@languages">at least two languages are enabled</a> and <a href="@configuration">language negotiation</a> is set to something other than <em>none</em>.', array('@languages' => url('admin/settings/language'), '@configuration' => url('admin/settings/language/configure'))) .'</p>';
       }
       break;
   }
@@ -239,7 +247,7 @@ function locale_form_alter(&$form, $form
         '#options' => array('' => t('All languages')) + locale_language_list('name'),
         '#default_value' => $form['language']['#value'],
         '#weight' => -10,
-        '#description' => t('Path aliases added for languages take precedence over path aliases added for all languages for the same Drupal path.'),
+        '#description' => t('A path alias set for a specific language will always be used when displaying this page in that language, and takes precedence over path aliases set for <am>All languages</em>.'),
       );
       break;
 
