Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/README.txt,v
retrieving revision 1.7
diff -u -p -r1.7 README.txt
--- README.txt	21 Jul 2010 11:34:46 -0000	1.7
+++ README.txt	31 Oct 2010 12:00:14 -0000
@@ -14,10 +14,10 @@ Sponsor: Cocomore AG - http://www.cocomo
 Description
 ===========
 
-ThemeKey is meant to be a generic theme switching module. It
+ThemeKey is designed to be a generic theme switching module. It
 allows you to switch the theme for different paths and based
 on object properties (e.g. node field values). It can also be
-easily extended to support additional paths or properties as
+easily extended to support additional paths or properties, as
 exposed by other modules.
 
 Documentation for users and developers is very sparse at the
@@ -28,13 +28,13 @@ Thanks for your patience :)
 Installation
 ============
 
-1. Place whole themekey folder into your Drupal modules/ or better
+1. Place the entire themekey folder into your Drupal modules/ or better
    sites/x/modules/ directory.
 
 2. Enable the themekey module by navigating to
      administer > modules
 
-3. Bring up themekey configuration screens by navigating to
+3. Bring up the themekey configuration screens by navigating to
      administer > settings > themekey
 
 
@@ -51,7 +51,7 @@ How to use ThemeKey UI on node forms ...
 ThemeKey Properties
 ===================
 
-"ThemeKey Properties" adds additional properties to ThemeKey module.
+"ThemeKey Properties" adds additional properties to the ThemeKey module.
 Download it from http://drupal.org/project/themekey_properties
 
 
Index: themekey.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey.module,v
retrieving revision 1.13.2.10
diff -u -p -r1.13.2.10 themekey.module
--- themekey.module	27 Sep 2010 20:37:05 -0000	1.13.2.10
+++ themekey.module	31 Oct 2010 12:00:14 -0000
@@ -3,7 +3,7 @@
 
 /**
  * @file
- * ThemeKey is meant to be a generic theme switching module.
+ * ThemeKey is designed as a generic theme switching module.
  *
  * ThemeKey allows you to define simple or sophisticated Theme Switching Rules.
  * Using these rules you are able to use a different theme depending on current
@@ -101,7 +101,7 @@ function themekey_menu() {
 /**
  * Implements hook_init().
  *
- * Here happens all the magic of ThemeKey.
+ * This is where all of Themekey's magic happens.
  * ThemeKey detects if any Theme Switching Rule matches
  * the current request and sets the global variable $custom_theme.
  */
@@ -116,12 +116,12 @@ function themekey_init() {
 
   if (isset($theme)) {
     if (variable_get('themekey_debug_trace_rule_switching', FALSE)) {
-      themekey_set_debug_message('Skipped rule checking because another module already initialized the theme engine. $theme has been set to %theme.<br />This seems to be a bug. Visit !link and help us improving other modules.', array('%theme' => $theme, '!link' => l('drupal.org/node/754970', 'http://drupal.org/node/754970')));
+      themekey_set_debug_message('Skipped rule checking because another module already initialized the theme engine. $theme has been set to %theme.<br />This seems to be a bug. Visit !link and help us improve other modules.', array('%theme' => $theme, '!link' => l('drupal.org/node/754970', 'http://drupal.org/node/754970')));
     }
   }
   // don't change theme when administer blocks or during cron run executed by cron.php or drush
   elseif (strpos($_GET['q'], 'admin/build/block') !== 0 && strpos($_SERVER['SCRIPT_FILENAME'], 'cron.php') === FALSE && strpos($_SERVER['SCRIPT_FILENAME'], 'drush.php') === FALSE) {
-    // don't change theme when another module already set a $custom_theme like system.module does (administration theme) until administrator turned on this feature
+    // don't change theme when another module already set a $custom_theme like system.module does (administration theme) until administrator turns on this feature
     if (!$custom_theme || variable_get('themekey_override_custom_theme', 0)) {
       require_once(drupal_get_path('module', 'themekey') . '/themekey_base.inc');
 
@@ -133,7 +133,7 @@ function themekey_init() {
           && (!$custom_theme || $custom_theme == variable_get('theme_default', 'garland'))) {
         $theme_candidate = $_SESSION['themekey_theme'];
         if (variable_get('themekey_debug_trace_rule_switching', FALSE)) {
-          themekey_set_debug_message('ThemeKey Debug: No rule triggered a different theme. Reusing last theme from users session: %custom_theme', array('%custom_theme' => $theme_candidate));
+          themekey_set_debug_message('ThemeKey Debug: No rule triggered a different theme. Reusing last theme from user\'s session: %custom_theme', array('%custom_theme' => $theme_candidate));
         }
       }
 
@@ -154,7 +154,7 @@ function themekey_init() {
       }
       elseif (variable_get('themekey_debug_trace_rule_switching', FALSE)) {
         if ($custom_theme) {
-          // static rules set $theme_candidate to 'default and $cutom_theme directly
+          // static rules set $theme_candidate to 'default and $custom_theme' directly
           themekey_set_debug_message('$custom_theme has been set to %custom_theme during rule matching.', array('%custom_theme' => $custom_theme));
         }
         else {
@@ -192,12 +192,12 @@ function themekey_themekey_load_validato
  * Implements hook_help().
  */
 function themekey_help($path, $arg) {
-  $text_1 = t('For every page request Drupal steps through this Theme Switching Rule Chain until an activated rule matches or it reaches the end. If a rule matches the theme associated to this rule will be applied to render the requested page.');
+  $text_1 = t('For every page request Drupal steps through this Theme Switching Rule Chain until an activated rule matches or it reaches the end. If a rule matches, the theme associated with this rule will be applied to render the requested page.');
 
   switch ($path) {
     case 'admin/help#themekey':
       module_load_include('inc', 'themekey', 'themekey_help');
-      return '<p>' . t('ThemeKey allows you to define simple or sophisticated Theme Switching Rules. Using these rules you are able to use a different theme depending on current path, taxonomy terms, language, node type and many many more properties. It can also be easily extended to support additional properties as exposed by other modules.') . '</p>' .
+      return '<p>' . t('ThemeKey allows you to define simple or sophisticated Theme Switching Rules. Using these rules you can use a different theme depending on current path, taxonomy terms, language, node type and many, many more properties. It can also be easily extended to support additional properties, as exposed by other modules.') . '</p>' .
         '<p>' . $text_1 . '</p>'.
         drupal_get_form('themekey_help_tutorials_form', FALSE) .
         drupal_get_form('themekey_help_examples_form', FALSE) .
@@ -216,7 +216,7 @@ function themekey_help($path, $arg) {
 
 /**
  * Replacement for drupal_set_message() during ThemeKey's initialization.
- * drupal_set_message() might call init_theme() to early which causes ThemeKey
+ * drupal_set_message() might call init_theme() too early, which causes ThemeKey
  * to not switch the theme.
  *
  * themekey_set_debug_message() put the untranslated messages on a stack and
@@ -272,8 +272,8 @@ function themekey_footer() {
 
 /**
  * Returns the content of $_GET['q'] as expected.
- * Therefor $_GET['q'] gets transformed if necessary.
- * P.e. ajax views rewrites the q parameter.
+ * Therefore, $_GET['q'] gets transformed if necessary.
+ * E.g., Ajax Views rewrites the q parameter.
  *
  * @return string
  */
Index: themekey_admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_admin.inc,v
retrieving revision 1.20.2.15
diff -u -p -r1.20.2.15 themekey_admin.inc
--- themekey_admin.inc	14 Oct 2010 19:56:07 -0000	1.20.2.15
+++ themekey_admin.inc	31 Oct 2010 12:00:14 -0000
@@ -272,8 +272,8 @@ function themekey_form_alter(&$form, $fo
 
               if ('drupal:path:wildcard' != $value_2['property']['#default_value'] ||
                   ('drupal:path:wildcard' == $value_2['property']['#default_value'] && $value_2['wildcard']['#default_value'] == $value_1['wildcard']['#default_value'])) {
-                // We have two identical rules with same 'indention' in a chain.
-                // This is allowed only if first one has childs and second one has none and one isn't the parent of the other
+                // We have two identical rules with the same 'indention' in a chain.
+                // This is allowed only if the first rule has children and second has none and one isn't the parent of the other
                 if (!$value_2['parent']['#default_value'] == $value_1['id']['#value']) {
                   $has_childs_1 = FALSE;
                   $has_childs_2 = FALSE;
@@ -434,7 +434,7 @@ function themekey_settings_form() {
     '#type' => 'checkbox',
     '#title' => t('Property drupal:path is case sensitive'),
     '#default_value' => variable_get('themekey_path_case_sensitive', 0),
-    '#description' => t('Drupal paths are case insesitive by default. Modules like Global Redirect might change this behavior.')
+    '#description' => t('Drupal paths are case-insensitive by default. Modules like Global Redirect might change this behavior.')
   );
 
   $form['settings']['themekey_allthemes'] = array(
@@ -448,14 +448,14 @@ function themekey_settings_form() {
     '#type' => 'checkbox',
     '#title' => t('Force custom theme overriding'),
     '#default_value' => variable_get('themekey_override_custom_theme', 0),
-    '#description' => t('Select this option to force ThemeKey to set the custom theme. Otherwise ThemeKey will set the custom theme only if it\'s not already set by a different module.<br /><b>Note: If you activate this feature it turns off theme switching of some other modules like system (administration theme) or organic groups.</b>'),
+    '#description' => t('Select this option to force ThemeKey to set the custom theme. Otherwise, ThemeKey will set the custom theme only if it\'s not already set by a different module.<br /><b>Note: If you activate this feature it turns off theme switching of some other modules like system (administration theme) or organic groups.</b>'),
   );
 
   $form['settings']['themekey_theme_maintain'] = array(
     '#type' => 'checkbox',
     '#title' => t('Retain the theme until a new theme is set'),
     '#default_value' => variable_get('themekey_theme_maintain', 0),
-    '#description' => t('Select this option to have users logged in stay in the same theme until they browse to a new page with an explicit theme set.'),
+    '#description' => t('Select this option to have users who are logged in stay in the same theme until they browse to a new page with an explicit theme set.'),
   );
 
   $form['settings']['themekey_theme_maintain_anonymous'] = array(
@@ -463,7 +463,7 @@ function themekey_settings_form() {
     '#title' => t('Retain the theme until a new theme is set for anonymous users'),
     '#default_value' => variable_get('themekey_theme_maintain_anonymous', 0),
     '#description' => t('Select this option to have anonymous users stay in the same theme until they browse to a new page with an explicit theme set.
-<br /><b>Warning: This feature is only working correctly if you turn off page caching or use a drupal core that supports lazy session initialization like !cdclink or !pflink.</b>',
+<br /><b>Warning: This feature only works correctly if you turn off page caching or use a Drupal core that supports lazy session initialization like !cdclink or !pflink.</b>',
       array('!cdclink' => l(t('!path', array('!path' => 'Cocomore Drupal Core')), 'http://drupal.cocomore.com/node/175', array('attributes' => array('target' => '_blank'))), '!pflink' => l(t('!path', array('!path' => 'Pressflow')), 'https://launchpad.net/pressflow/6.x/', array('attributes' => array('target' => '_blank'))))),
   );
 
@@ -472,7 +472,7 @@ function themekey_settings_form() {
       '#type' => 'checkbox',
       '#title' => t('Forum pages trigger property taxonomy:vid'),
       '#default_value' => variable_get('themekey_module_forum_triggers_taxonomy_vid', 0),
-      '#description' => t('Property taxonomy:vid is set when a single node is shown (p.e. /node/17). If this option is selected, forum pages like /forum/28 will set taxonomy:vid as well.')
+      '#description' => t('The taxonomy:vid property is set when a single node is shown (e.g. /node/17). If this option is selected, forum pages like /forum/28 will set taxonomy:vid as well.')
     );
   }
 
@@ -480,7 +480,7 @@ function themekey_settings_form() {
     '#type' => 'checkbox',
     '#title' => t('Cron cleans up page cache'),
     '#default_value' => variable_get('themekey_cron_page_cache', 1),
-    '#description' => t('Select this option if ThemeKey should check rules containing time based properties when cron runs. ThemeKey will carefully clean up the page cache if necessary to provide the right theme to anonymous users automatically, p.e. a Christmas theme.'),
+    '#description' => t('Select this option if ThemeKey should check rules containing time based properties when cron runs. ThemeKey will carefully clean up the page cache if necessary to provide the right theme to anonymous users automatically, e.g. a Christmas theme.'),
   );
 
   return system_settings_form($form);
@@ -488,7 +488,7 @@ function themekey_settings_form() {
 
 
 /**
- * Themes hemekey_rule_chain_form() and adds drag'n'drop features.
+ * Themes themekey_rule_chain_form() and adds drag'n'drop features.
  *
  * @ingroup themeable
  */
@@ -688,7 +688,7 @@ function theme_themekey_rule_chain_form(
  */
 function themekey_admin_theme_warning() {
   if (variable_get('admin_theme', '0')) {
-    drupal_set_message(t('%admin_theme is configured as administration theme at !link. This setting is more powerful than a corresponding ThemeKey rule.',
+    drupal_set_message(t('%admin_theme is configured as the administration theme at !link. This setting is more powerful than a corresponding ThemeKey rule.',
       array('%admin_theme' => variable_get('admin_theme', '0'), '!link' => l(t('!path', array('!path' => 'admin/settings/admin')), 'admin/settings/admin'))), 'warning');
     if (variable_get('node_admin_theme', '0')) {
       drupal_set_message(t('As configured at !link adding or editing a node will use the administration theme %admin_theme.',
@@ -710,7 +710,7 @@ function themekey_page_cache_warning($pa
     switch ($page_cache_support) {
       case THEMEKEY_PAGECACHE_UNSUPPORTED:
         if (!isset($warnings[THEMEKEY_PAGECACHE_UNSUPPORTED])) {
-          drupal_set_message(t('!page_cache_icon Your site uses !page_caching, but the Theme Switching Rule Chain contains properties that do not support page caching. You have to ensure that any rule using those properties are wrapped by a different rule that excludes anonymous users like "user:uid > 0".',
+          drupal_set_message(t('!page_cache_icon Your site uses !page_caching, but the Theme Switching Rule Chain contains properties that do not support page caching. You have to ensure that any rule using those properties are wrapped by another rule that excludes anonymous users like "user:uid > 0".',
             array('!page_caching' => l(t('page caching'), 'admin/settings/performance'), '!page_cache_icon' => theme('themekey_page_cache_icon', $page_cache_support))), 'warning');
           $warnings[THEMEKEY_PAGECACHE_UNSUPPORTED] = TRUE;
         }
@@ -719,11 +719,11 @@ function themekey_page_cache_warning($pa
       case THEMEKEY_PAGECACHE_TIMEBASED:
         if (!isset($warnings[THEMEKEY_PAGECACHE_TIMEBASED])) {
           if (variable_get('themekey_cron_page_cache', 1)) {
-            drupal_set_message(t('!page_cache_icon Your site uses !page_caching and the Theme Switching Rule Chain contains properties that require your cron to run frequently enough. During the cron run ThemeKey deletes the page cache if necessary depending on your Theme Switching Rules.',
+            drupal_set_message(t('!page_cache_icon Your site uses !page_caching and the Theme Switching Rule Chain contains properties that require your cron to run frequently enough. During the cron run, ThemeKey deletes the page cache if necessary, depending on your Theme Switching Rules.',
               array('!page_caching' => l(t('page caching'), 'admin/settings/performance'), '!page_cache_icon' => theme('themekey_page_cache_icon', $page_cache_support))), 'warning');
           }
           else {
-            drupal_set_message(t('!page_cache_icon Your site uses !page_caching and the Theme Switching Rule Chain contains properties that require "!cron_page_cache" to be enabled which has been disabled.',
+            drupal_set_message(t('!page_cache_icon Your site uses !page_caching and the Theme Switching Rule Chain contains properties that require "!cron_page_cache" to be enabled, but it is disabled.',
               array('!page_caching' => l(t('page caching'), 'admin/settings/performance'), '!cron_page_cache' => l(t('Cron cleans up page cache'), 'admin/settings/themekey/settings'), '!page_cache_icon' => theme('themekey_page_cache_icon', $page_cache_support))), 'error');
           }
           $warnings[THEMEKEY_PAGECACHE_TIMEBASED] = TRUE;
@@ -782,8 +782,8 @@ function theme_themekey_page_cache_icon(
 
 function themekey_get_page_cache_support_desriptions() {
   return array(
-    THEMEKEY_PAGECACHE_UNSUPPORTED => t('Unsupported! If you enable page caching on your system you have to ensure that any rule using this property is wrapped by a different rule that excludes anonymous users like "user:uid > 0".'),
+    THEMEKEY_PAGECACHE_UNSUPPORTED => t('Unsupported! If you enable page caching on your system you have to ensure that any rule using this property is wrapped by another rule that excludes anonymous users, e.g. "user:uid > 0".'),
     THEMEKEY_PAGECACHE_SUPPORTED => t('Supported'),
-    THEMEKEY_PAGECACHE_TIMEBASED => t('Supported if you enable "Cron cleans up page cache" at !link and run your cron frequently enough. During the cron run ThemeKey deletes the page cache if necessary depending on your Theme Switching Rules.', array('!link' => l(t('!path', array('!path' => '/admin/settings/themekey/settings')), 'admin/settings/themekey/settings'))),
+    THEMEKEY_PAGECACHE_TIMEBASED => t('Supported if you enable "Cron cleans up page cache" at !link and run your cron frequently enough. During the cron run, ThemeKey deletes the page cache if necessary, depending on your Theme Switching Rules.', array('!link' => l(t('!path', array('!path' => '/admin/settings/themekey/settings')), 'admin/settings/themekey/settings'))),
   );
 }
\ No newline at end of file
Index: themekey_base.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_base.inc,v
retrieving revision 1.16.2.5
diff -u -p -r1.16.2.5 themekey_base.inc
--- themekey_base.inc	28 Aug 2010 08:31:38 -0000	1.16.2.5
+++ themekey_base.inc	31 Oct 2010 12:00:15 -0000
@@ -51,7 +51,7 @@ function themekey_invoke_modules($hook) 
  *
  * @param $parameters
  *   reference to an array containing all
- *   ThemeKey properties an their values
+ *   ThemeKey properties and their values
  *
  * @return
  *   boolean
@@ -112,10 +112,10 @@ function themekey_match_path($condition,
  * wildcards "%" and "#".
  *
  * @param $path_parts
- *   array containg single parts of a path
+ *   array containing single parts of a path
  *
  * @param $condition_parts
- *   array containg single parts of a path
+ *   array containing single parts of a path
  *   whereas a part could be a wildcard
  *
  * @return
@@ -160,7 +160,7 @@ function themekey_match_path_parts($path
 
 /**
  * Assigns global parameters' values to ThemeKey properties.
- * Therefor it calls hook_themekey_global()
+ * Therefore, it calls hook_themekey_global()
  *
  * @return
  *   associative array containing some
@@ -221,7 +221,7 @@ function themekey_match_rules() {
  *
  * @param $parameters
  *   reference to an array containing all
- *   ThemeKey properties an their values
+ *   ThemeKey properties and their values
  *
  * @param $parent
  *   id of parent rule
@@ -394,14 +394,14 @@ function themekey_match_condition($condi
  *
  * @param $parameters
  *   reference to an array containing all
- *   ThemeKey properties an their values
+ *   ThemeKey properties and their values
  *
  * @param $property
  *   the name of the property as string
  *
  * @return
  *   The value of the property:
- *   - string i it's a single value
+ *   - string if it's a single value
  *   - array of strings if there're multiple values
  *   - NULL if no value
  */
@@ -486,7 +486,7 @@ function themekey_check_theme_enabled($t
 
   if ($settings_page) {
     if (!$displayed_error) {
-      drupal_set_message(t("Your current configuration of theme rules uses at least one theme that is not enabled. Nevertheless this configuration is stored but affected rules won't be applied until the targeted theme will be enabled at !build_themes.",
+      drupal_set_message(t("Your current configuration of theme rules uses at least one theme that is not enabled. Nevertheless, this configuration is stored, but affected rules won't be applied until the targeted theme is enabled at !build_themes.",
         array('!build_themes' => l(t('!path', array('!path' => 'admin/build/themes')), 'admin/build/themes'))), 'error');
       $displayed_error = TRUE;
     }
@@ -495,7 +495,7 @@ function themekey_check_theme_enabled($t
     global $user;
 
     if (!$warned && 1 == $user->uid) {
-      themekey_set_debug_message('A matching Theme Switching Rule to select theme %theme was not applied because this theme is disabled. You can enable this theme at !build_themes or remove this Theme Switching Rule at !themekey_properties or edit current node if the theme was selected using ThemeKey UI.',
+      themekey_set_debug_message('A matching Theme Switching Rule to select theme %theme was not applied because this theme is disabled. You can enable this theme at !build_themes, remove this Theme Switching Rule at !themekey_properties, or edit current node if the theme was selected using ThemeKey UI.',
         array('%theme' => $theme, '!build_themes' => l(t('!path', array('!path' => 'admin/build/themes')), 'admin/build/themes'), '!themekey_properties' => l(t('!path', array('!path' => 'admin/settings/themekey/properties')), 'admin/settings/themekey/properties')));
       $warned = TRUE;
     }
Index: themekey_build.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_build.inc,v
retrieving revision 1.14.2.5
diff -u -p -r1.14.2.5 themekey_build.inc
--- themekey_build.inc	16 Aug 2010 13:35:14 -0000	1.14.2.5
+++ themekey_build.inc	31 Oct 2010 12:00:15 -0000
@@ -147,9 +147,9 @@ function themekey_scan_modules() {
  * Named wildcards in ThemeKey rules based on property
  * drupal:path are stored as serialized array in the database.
  *
- * This function deserializes those wildcards and inject them back
+ * This function deserializes those wildcards and injects them back
  * into the value of the rule. This format is needed by ThemeKey's
- * administartion interface.
+ * administration interface.
  *
  * It's the counterpart of these functions:
  * @see themekey_prepare_path()
@@ -177,7 +177,7 @@ function themekey_complete_path(&$item) 
 /**
  * Examines ThemeKey paths created by modules
  * via hook_themekey_paths() in database and
- * assignes a fit factor and a wight.
+ * assigns a fit factor and a weight.
  *
  * @see themekey_rebuild()
  *
@@ -265,16 +265,16 @@ function themekey_prepare_custom_path($p
 
 /**
  * Loads all ThemeKey Rules from the database.
- * Therefor it uses a recursion to build the rule chains.
+ * Therefore, it uses a recursion to build the rule chains.
  *
  * @param $parent
  *   id of the parent rule. Default is '0'.
  *   During the recursion this parameter changes.
  *
  * @param $depth
- *   Integer that represents the 'indention'
+ *   Integer that represents the 'indentation'
  *   in current rule chain. Default is '0'.
- *   During the recursion this parameter changes.
+ *   During the recursion, this parameter changes.
  *
  * @return
  *   sorted array containing all ThemeKey rules
@@ -284,7 +284,7 @@ function themekey_load_rules($parent = 0
   static $parent_lookups = array();
 
   if (isset($parent_lookups[$parent])) {
-    // prevent endless recursion in case of malformated data in database
+    // prevent endless recursion in case of malformatted data in database
     return $properties;
   }
 
@@ -360,19 +360,19 @@ function themekey_rule_del($id) {
   if (FALSE !== $num_childs) {
     if ($num_childs > 0) {
       db_unlock_tables();
-      drupal_set_message(t('ThemeKey rule could not be deleted because it has children in the chain'), 'error');
+      drupal_set_message(t('ThemeKey rule could not be deleted, because it has children in the chain'), 'error');
     }
     else {
       $result = db_query('DELETE FROM {themekey_properties} WHERE id = %d', $id);
       db_unlock_tables();
       if (!$result) {
-        drupal_set_message(t('Error while deleteing ThemeKey rule'), 'error');
+        drupal_set_message(t('Error while deleting ThemeKey rule'), 'error');
       }
     }
   }
   else {
     db_unlock_tables();
-    drupal_set_message(t('Error while deleteing ThemeKey rule'), 'error');
+    drupal_set_message(t('Error while deleting ThemeKey rule'), 'error');
   }
 }
 
@@ -401,9 +401,9 @@ function themekey_rule_get($id) {
 
 
 /**
- * Adds or modifies a so called static rule in the
- * database. Static rules could be moved around in the chain
- * and enabled or disabled by the site administrator but the values
+ * Adds or modifies a so-called static rule in the
+ * database. Static rules can be moved around in the chain
+ * and enabled or disabled by the site administrator, but the values
  * are immutable. There's one static rule per static property.
  *
  * @param $property
Index: themekey_cron.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_cron.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 themekey_cron.inc
--- themekey_cron.inc	22 Jul 2010 10:29:04 -0000	1.1.2.1
+++ themekey_cron.inc	31 Oct 2010 12:00:15 -0000
@@ -10,10 +10,10 @@
  */
 
 /**
- * Checks rules containing time based properties when cron runs.
+ * Checks rules containing time-based properties when cron runs.
  * ThemeKey will carefully clean up the page cache if necessary
  * to provide the right theme to anonymous users automatically,
- * p.e. a Christmas theme.
+ * e.g., a Christmas theme.
  */
 function themekey_cron_clear_page_cache() {
   $clear_page_cache = FALSE;
Index: themekey_debug.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_debug.module,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 themekey_debug.module
--- themekey_debug.module	22 Jul 2010 10:29:04 -0000	1.2.2.1
+++ themekey_debug.module	31 Oct 2010 12:00:15 -0000
@@ -3,7 +3,7 @@
 
 /**
  * @file
- * Provides a debug mode for module ThemeKey.
+ * Provides a debug mode for the ThemeKey module.
  * @see themekey.module
  *
  * @author Markus Kalkbrenner | Cocomore AG
Index: themekey_debug_admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_debug_admin.inc,v
retrieving revision 1.2
diff -u -p -r1.2 themekey_debug_admin.inc
--- themekey_debug_admin.inc	21 Jul 2010 11:34:46 -0000	1.2
+++ themekey_debug_admin.inc	31 Oct 2010 12:00:15 -0000
@@ -23,28 +23,28 @@ function themekey_debug_settings_form() 
     '#title' => t('Debug Settings'),
     '#collapsible' => FALSE,
     '#collapsed' => FALSE,
-    '#description' => t("Debug information will only be visible for site's administrator."),
+    '#description' => t("Debug information will only be visible for the site's administrator."),
   );
 
   $form['themekey_debug']['themekey_debug_show_property_values'] = array(
     '#type' => 'checkbox',
-    '#title' => t('Show ThemeKey properties values'),
+    '#title' => t('Show values of ThemeKey properties'),
     '#default_value' => variable_get('themekey_debug_show_property_values', FALSE),
-    '#description' => t('Shows current values of ThemeKey properties at the bottom of every page. Additionally you can start creating a corresponding Theme Switching Rule by clicking on a value.'),
+    '#description' => t('Shows current values of ThemeKey properties at the bottom of every page. Additionally, you can start creating a corresponding Theme Switching Rule by clicking on a value.'),
   );
 
   $form['themekey_debug']['themekey_debug_trace_rule_switching'] = array(
     '#type' => 'checkbox',
     '#title' => t('Trace ThemeKey rule switching'),
     '#default_value' => variable_get('themekey_debug_trace_rule_switching', FALSE),
-    '#description' => t('Prints out detailed information about matching or non matching rules.'),
+    '#description' => t('Prints out detailed information about matching or non-matching rules.'),
   );
 
   $form['themekey_debug']['themekey_debug_non_admin_users'] = array(
     '#type' => 'checkbox',
-    '#title' => t('Show debug information to non admin users'),
+    '#title' => t('Show debug information to non-admin users'),
     '#default_value' => variable_get('themekey_debug_non_admin_users', FALSE),
-    '#description' => t('All debug output will be shown to all users including anonymous users. Be carefull in production environments and turn off page caching first!'),
+    '#description' => t('All debug output will be shown to all users, including anonymous users. Be careful in production environments and turn off page caching first!'),
   );
 
   $form['buttons']['submit'] = array(
Index: themekey_help.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_help.inc,v
retrieving revision 1.2.2.9
diff -u -p -r1.2.2.9 themekey_help.inc
--- themekey_help.inc	27 Sep 2010 20:37:05 -0000	1.2.2.9
+++ themekey_help.inc	31 Oct 2010 12:00:15 -0000
@@ -43,24 +43,24 @@ function themekey_help_tutorials_form($c
     '#value' =>
 '<p>' . t('Note: This tutorial uses some ThemeKey properties from an additional module called !themekey_properties_link.', array('!themekey_properties_link' => l(t('!path', array('!path' => 'ThemeKey Properties')), 'http://drupal.org/project/themekey_properties'))) . '</p>' .
 '<p>' . t("In this tutorial you'll learn how to define ThemeKey rules and how to cascade them to achieve sophisticated rule chains.") . '</p>' .
-'<p>' . t("The use case is to use a different theme during conent creation for premium users, p.e. you don't want to show advertisements or you want to show some advanced help blocks ...") . '</p>' .
-'<p>' . t('Therefor you created two user roles called "premium user" and "standard user". Using ThemeKey it\'s easy to create a rule that switches the theme in general if a user\'s role is "premium user":') . '<br />' .
+'<p>' . t("The use case is to use a different theme during content creation for premium users, e.g., you don't want to show advertisements or you want to show some advanced help blocks ...") . '</p>' .
+'<p>' . t('Therefore you created two user roles called "premium user" and "standard user". Using ThemeKey it\'s easy to create a rule that switches the theme if a user\'s role is "premium user":') . '<br />' .
 '<img src="' . $img_path . 'premium_user.png" alt="' . t('ThemeKey rule that switches the theme if the user\'s role is "premium user"') . '" /></p>' .
-'<p>' . t('The same way we can create a rule that switches the theme if a content creation form is requested. To do this for any kind of content we use ThemeKey\'s drupal:path property and it\'s wildcard feature:') . '<br />' .
+'<p>' . t('Similarly, we can also create a rule that switches the theme if a content creation form is requested. To do this for any kind of content we use ThemeKey\'s drupal:path property and its wildcard feature:') . '<br />' .
 '<img src="' . $img_path . 'create_content.png" alt="' . t('ThemeKey rule that switches the theme on content creation forms') . '" /></p>' .
-'<p>' . t('But having these two seperated rules is not what our use case described. To implement our use case we have to cascade or "chain" both rules. Using the cross in front of a rule you can move any rule up and down or indent it. The chain we need should like this:') . '<br />' .
+'<p>' . t('But having these two separate rules is not what our use case describes. To implement our use case, we have to cascade or "chain" both rules. By dragging on the cross icon in front of a rule, you can move any rule up and down or indent it. The chain we need should like this:') . '<br />' .
 '<img src="' . $img_path . 'create_content_premium_user.png" alt="' . t('ThemeKey rule chain that switches the theme on content creation forms for premium users') . '" /></p>' .
-'<p>' . t('Now using this chain ThemeKey only switches the theme on content creation forms if the current user\'s role is "premium user". Non premium users will use current system standard theme.') . '</p>' .
-'<p>' . t('You might noticed that the theme select box disapeared for the first rule as you intented the second one. That\'s because both seperated rules became one.') . '</p>' .
+'<p>' . t('Now using this chain, ThemeKey only switches the theme on content creation forms if the current user\'s role is "premium user". Non-premium users will use the current standard system theme.') . '</p>' .
+'<p>' . t('You might have noticed that the theme select box disappeared for the first rule as you indented the second one. That\'s because both separate rules became one.') . '</p>' .
 '<p>' . t('Now it\'s possible to extend our chain to use another dedicated theme on content creation forms for "standard users".') . '<br />' .
 '<img src="' . $img_path . 'create_content_premium_user_standard_user.png" alt="' . t('ThemeKey rule chain that switches to different themes on content creation forms for different user roles') . '" /></p>' .
-'<p>' . t('If you have more than these two roles in your system and you simply want use a theme for premium users and one for non premium users on content creation pages you don\'t need to add one rule per role like decribed above. In this case it\'s easier to change the latest rule we added and say any other rule than "premium user" using ThemeKey\'s not operator "!".') . '<br />' .
+'<p>' . t('If you have more than these two roles in your system and you simply want to use one theme for premium users and another for non-premium users, on content creation pages, you don\'t need to add one rule per role, as described above. In this case, it\'s easier to change the latest rule we added and say any other rule other than "premium user", using ThemeKey\'s not operator "!".') . '<br />' .
 '<img src="' . $img_path . 'create_content_premium_user_any_role.png" alt="' . t('Another ThemeKey rule chain that switches to different themes on content creation forms for different user roles') . '" /></p>' .
-'<p>' . t('Now we implemented our use case using chained ThemeKey rules and you can add more rules to ThemeKey\'s Rule Chain to implement different use cases. The only decision you have to take is the order the rules are checked by ThemeKey on every page request. To demonstrate this let\'s add another rule that switches the theme if the user uses an iPhone to access your page.') . '<br />' .
+'<p>' . t('Now that we have implemented our use case using chained ThemeKey rules, you can add more rules to ThemeKey\'s Rule Chain to implement different use cases. The only decision you have to make is the order the rules are checked by ThemeKey on every page request. To demonstrate this, let\'s add another rule that switches the theme if the user uses an iPhone to access your page.') . '<br />' .
 '<img src="' . $img_path . 'iphone_create_content_premium_user_any_role.png" alt="' . t('ThemeKey rule chain selecting special theme for iPhones') . '" /></p>' .
-'<p>' . t('What happens now is that ThemeKey switches to a special theme for iPhones as soon as the user uses such a device to access you page because ThemeKey stops processing the rules if a rule or one set of chained rules matched. This means that content creation forms are  shown using the iPhone theme as well no matter which role is assigned to the current user.') . '</p>' .
-'<p>' . t('I think that\'s a good choice. If you move the iPhone rule below the chain for the content cration form these forms will use the configured themes even on the iPhone which might not be suitable to display them.') . '</p>' .
-'<p>' . t('If you like to treat node creation forms differently even on the iPhone you should "chain" a dedicated set of rules for that.') . '<br />' .
+'<p>' . t('What happens now is that ThemeKey switches to a special theme for iPhones whenever the user accesses your page using such a device, because ThemeKey stops processing the rules if a rule, or one set of chained rules, matches. This means that content creation forms are shown using the iPhone theme, regardless of the role assigned to the current user.') . '</p>' .
+'<p>' . t('I think that\'s a good choice. If you move the iPhone rule below the chain for the content cration form, these forms will use the configured themes even on the iPhone, which might not be suitable for displaying them.') . '</p>' .
+'<p>' . t('If you\'d like to treat node creation forms differently, even on the iPhone, you should "chain" a dedicated set of rules for that.') . '<br />' .
 '<img src="' . $img_path . 'iphone_create_content_pages.png" alt="' . t('Sophisticated ThemeKey rule chain') . '" /></p>' .
 '<p>' . t('Have Fun!') . '</p>',
     );
@@ -88,7 +88,7 @@ function themekey_help_tutorials_form($c
 
 
 /**
- * Uses drupal's form builder to format ThemeKey's help examples
+ * Uses Drupal's form builder to format ThemeKey's help examples
  *
  * @see themekey_help()
  */
@@ -109,7 +109,7 @@ function themekey_help_examples_form($co
 
   $form['themekey_help_examples']['Set a special theme for site administrator']['item'] = array(
     '#type' => 'item',
-    '#value' => t('Create a Theme Switching Rules:') . '<pre>
+    '#value' => t('Create Theme Switching Rules:') . '<pre>
 Property: user:uid
 Operator: =
 Value: 1
@@ -135,7 +135,7 @@ Value: 1
 
 
 /**
- * Uses drupal's form builder to format ThemeKey's help properties
+ * Uses Drupal's form builder to format ThemeKey's help properties
  *
  * @see themekey_help()
  */
@@ -179,7 +179,7 @@ function themekey_help_properties_form($
 
 
 /**
- * Uses drupal's form builder to format ThemeKey's help operators
+ * Uses Drupal's form builder to format ThemeKey's help operators
  *
  * @see themekey_help()
  */
@@ -198,27 +198,27 @@ function themekey_help_operators_form($c
 
   $form['themekey_help_operators']['!'] = array(
     '#type' => 'item',
-    '#value' => t('<strong>!</strong><br />not equals'),
+    '#value' => t('<strong>!</strong><br />not equal to'),
   );
 
   $form['themekey_help_operators']['<'] = array(
     '#type' => 'item',
-    '#value' => t('<strong>&lt;</strong><br />lower than (alpha numeric values are treated in alphabetical order: "A" is lower than "B" but "B" is lower than "a")'),
+    '#value' => t('<strong>&lt;</strong><br />less than (alphanumeric values are treated in alphabetical order: "A" is less than "B", but "B" is less than "a")'),
   );
 
   $form['themekey_help_operators']['<='] = array(
     '#type' => 'item',
-    '#value' => t('<strong>&lt;=</strong><br />lower than or equal (alpha numeric values are treated in alphabetical order: "a" is lower than "b" but "B" is lower than "a" and "A" is lower than "a")'),
+    '#value' => t('<strong>&lt;=</strong><br />less than or equal to (alphanumeric values are treated in alphabetical order: "a" is less than "b" but "B" is less than "a" and "A" is less than "a")'),
   );
 
   $form['themekey_help_operators']['>'] = array(
     '#type' => 'item',
-    '#value' => t('<strong>&gt;</strong><br />greater (alpha numeric values are treated in alphabetical order: "b" is grater than "a" but "a" is greater than "B")'),
+    '#value' => t('<strong>&gt;</strong><br />greater (alphanumeric values are treated in alphabetical order: "b" is greater than "a" but "a" is greater than "B")'),
   );
 
   $form['themekey_help_operators']['=>'] = array(
     '#type' => 'item',
-    '#value' => t('<strong>=&gt;</strong><br />greater than or equal (alpha numeric values are treated in alphabetical order: "b" is grater than "a" but "a" is greater than "B" and "a" is greater than "A")'),
+    '#value' => t('<strong>=&gt;</strong><br />greater than or equal to (alphanumeric values are treated in alphabetical order: "b" is greater than "a" but "a" is greater than "B" and "a" is greater than "A")'),
   );
 
   $form['themekey_help_operators']['~'] = array(
Index: themekey_ui.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_ui.module,v
retrieving revision 1.6.2.3
diff -u -p -r1.6.2.3 themekey_ui.module
--- themekey_ui.module	16 Aug 2010 14:18:29 -0000	1.6.2.3
+++ themekey_ui.module	31 Oct 2010 12:00:15 -0000
@@ -9,9 +9,9 @@
  * to assign a theme to a node.
  *
  * ThemeKey UI adds a theme option to the 'URL aliases' administration
- * if module "Path" is enabled.
+ * if the "Path" module is enabled.
  *
- * ThemeKey UI adds a form element to user profile for theming all
+ * ThemeKey UI adds a form element to the user profile for themeing all
  * nodes created by this user.
  *
  * @see themekey.module
@@ -27,7 +27,7 @@
 /**
  * Implements hook_themekey_properties()
  *
- * Provides additional properties for module ThemeKey:
+ * Provides additional properties for the ThemeKey module:
  *   themekey_ui:node_triggers_theme
  *
  * @return
@@ -39,14 +39,14 @@ function themekey_ui_themekey_properties
   $attributes = array();
 
   $attributes['themekey_ui:node_triggers_theme'] = array(
-    'description' => t("Property themekey_ui:node_triggers_theme could not be selected from the property drop down. You get this static property by activating !link. Afterwards you can move the property to any position in the rule chain. When done it triggers the switch to the theme assigned to the current node using ThemeKey UI.",
+    'description' => t("Property themekey_ui:node_triggers_theme could not be selected from the property drop down. You get this static property by activating !link. Afterwards, you can move the property to any position in the rule chain. When done, it triggers the switch to the theme assigned to the current node using ThemeKey UI.",
       array('!link' => l(t('Show theme option in create/edit node forms'), 'admin/settings/themekey/settings/ui'))),
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
     'static' => TRUE,
   );
 
   $attributes['themekey_ui:node_author_triggers_theme'] = array(
-    'description' => t("Property themekey_ui:node_author_triggers_theme could not be selected from the property drop down. You get this static property by activating !link. Afterwards you can move the property to any position in the rule chain. When done it triggers the switch to the theme the author selected for his nodes in his user profile.",
+    'description' => t("Property themekey_ui:node_author_triggers_theme could not be selected from the property drop down. You get this static property by activating !link. Afterwards, you can move the property to any position in the rule chain. When done, it triggers the switch to the theme the author selected for his nodes in his user profile.",
       array('!link' => l(t('Show theme option in user profile'), 'admin/settings/themekey/settings/ui'))),
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
     'static' => TRUE,
@@ -71,7 +71,7 @@ function themekey_ui_themekey_properties
  * This function implements the interface of a ThemeKey
  * mapping function but doesn't set a ThemeKey property's
  * value. It sets the global variable $custom_theme to a
- * theme directly which will cause ThemeKey to use this
+ * theme directly, which will cause ThemeKey to use this
  * theme.
  *
  * @param $nid
@@ -120,7 +120,7 @@ function themekey_ui_author2theme($nid) 
   global $custom_theme;
 
   // node_load() must not be called from hook_init().
-  // Therefor we have to execute SQL here.
+  // Therefore, we have to execute SQL here.
   if ($theme = db_result(db_query("SELECT theme FROM {node} JOIN {themekey_ui_author_theme} USING (uid) WHERE nid = %d", $nid))) {
     if ('default' != $theme) {
       $custom_theme = $theme;
@@ -190,7 +190,7 @@ function themekey_ui_form_alter(&$form, 
     if (user_access('assign theme to own nodes') && variable_get('themekey_ui_author', 0)) {
       module_load_include('inc', 'themekey_ui', 'themekey_ui_admin');
 
-      // to avoid a sql query to load his nodes themes every time a user is loaded we do this query here
+      // to avoid a sql query to load his nodes themes every time a user is loaded, we do this query here
       $theme = FALSE;
       if (!empty($form['#uid'])) {
         $theme = db_result(db_query("SELECT theme FROM {themekey_ui_author_theme} WHERE uid = %d", $form['#uid']));
Index: themekey_ui_admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_ui_admin.inc,v
retrieving revision 1.6.2.1
diff -u -p -r1.6.2.1 themekey_ui_admin.inc
--- themekey_ui_admin.inc	21 Jul 2010 15:16:09 -0000	1.6.2.1
+++ themekey_ui_admin.inc	31 Oct 2010 12:00:15 -0000
@@ -73,7 +73,7 @@ function themekey_ui_settings_form() {
     '#type' => 'checkbox',
     '#title' => t('Show theme option in user profile'),
     '#default_value' => variable_get('themekey_ui_author', 0),
-    '#description' => t('Assign themes from user profile. All nodes created by a user will be shown to all visitors using the theme he selected in his profile.')
+    '#description' => t('Assign themes from user profile. All nodes created by a user will be shown to all visitors using the theme she selected in her profile.')
   );
 
   $form['buttons']['submit'] = array(
@@ -191,7 +191,7 @@ function themekey_ui_pathalias(&$form) {
 
   list($id, $theme) = themekey_ui_get_path_theme($form['#alias']['dst']);
 
-  themekey_ui_theme_select_form($form, t('Theme configuration'), t('Select a theme that will be used whenever content will be requested using this path alias.'), $theme, $form['submit']['weight'] - 1);
+  themekey_ui_theme_select_form($form, t('Theme configuration'), t('Select a theme that will be used whenever content is requested using this path alias.'), $theme, $form['submit']['weight'] - 1);
 
   $form['themekey_ui_themes']['themekey_rule_id'] = array(
     '#type' => 'value',
Index: themekey_ui_help.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_ui_help.inc,v
retrieving revision 1.2.2.3
diff -u -p -r1.2.2.3 themekey_ui_help.inc
--- themekey_ui_help.inc	28 Aug 2010 08:31:38 -0000	1.2.2.3
+++ themekey_ui_help.inc	31 Oct 2010 12:00:15 -0000
@@ -43,9 +43,9 @@ function themekey_ui_help_tutorials(&$fo
 '<p>' . t('First, you must enable any themes you would like available from under !link (Administer -> Site Building -> Themes)</p>', array('!link' => l(t('!path', array('!path' => 'admin/build/themes')), 'admin/build/themes'))) .
 '<p>' . t('Once you have enabled your themes, navigate to !link (Administer -> Site Configuration -> Themekey -> Settings -> User Interface). You will see a checkbox for "Show theme option in user profile". Click on the checkbox and save your settings.</p>', array('!link' => l(t('!path', array('!path' => 'admin/settings/themekey/settings/ui')), 'admin/settings/themekey/settings/ui'))) .
 '<p>' . '<img src="' . $img_path . 'themekey_user_profiles_2.png" alt="' . t('Enabling theme selection in user profiles') . '" style="border:solid #d4e7f3 2px;" /></p>' .
-'<p>' . t('Next, you must grant permission to the roles that you would like to be able to change themes for their own content. Navigate to !link (Administer -> User Management -> Permissions) and check the boxes for "Assign theme to own nodes" to all roles you want to enable this option.</p>', array('!link' => l(t('!path', array('!path' => 'admin/user/permissions')), 'admin/user/permissions'))) . '<br />' .
+'<p>' . t('Next, you must grant permission to the roles that you would like to be able to change themes for their own content. Navigate to !link (Administer -> User Management -> Permissions) and check the boxes for "Assign theme to own nodes" for all roles you want to have this option.</p>', array('!link' => l(t('!path', array('!path' => 'admin/user/permissions')), 'admin/user/permissions'))) . '<br />' .
 '<p>' . '<img src="' . $img_path . 'themekey_user_profiles_3.png" alt="' . t('Enable correct permissions to use themekey for your users') . '" style="border:solid #d4e7f3 2px;" /></p>' .
-'<p>' . t('Once you have done this, your users can log in, navigate to My Account -> Edit and a new option will appear under their account settings. A full select list of your enabled themes will appear for them to select from. Once they have chosen a new theme, any node that is authored by this user will display the theme they have selected.</p>') .
+'<p>' . t('Once you have done this, your users can log in, navigate to My Account -> Edit, and a new option will appear under their account settings. A full select list of your enabled themes will appear for them to select from. Once they have chosen a new theme, any node that is authored by this user will display the theme they have selected.</p>') .
 '<p>' . '<img src="' . $img_path . 'themekey_user_profiles_4.png" alt="' . t('ThemeKey rule chain that switches to different themes on content creation forms for different user roles') . '" style="border:solid #d4e7f3 2px;" /></p>' .
 '<p>' . t('Have Fun!') . '</p>',
     );
Index: themekey_ui_helper.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_ui_helper.inc,v
retrieving revision 1.4
diff -u -p -r1.4 themekey_ui_helper.inc
--- themekey_ui_helper.inc	21 Jul 2010 11:34:46 -0000	1.4
+++ themekey_ui_helper.inc	31 Oct 2010 12:00:15 -0000
@@ -4,7 +4,7 @@
 /**
  * @file
  * helper functions for ThemeKey UI feature to add a theme option to the
- * 'URL aliases' administration if module "Path" is enabled.
+ * 'URL aliases' administration if the "Path" module is enabled.
  *
  * @see themekey_ui.module
  * @see themekey_ui_admin.inc
@@ -19,14 +19,14 @@
 require_once(drupal_get_path('module', 'themekey') .'/themekey_build.inc');
 
 /**
- * Returns a theme assigned to a drupal path alias using
+ * Returns a theme assigned to a Drupal path alias using
  * a ThemeKey Theme Switching Rule which is not part of a chain
  *
  * @param $path
  *   drupal path as string
  *
  * @return
- *   array with to elements:
+ *   array with two elements:
  *   - id of the database entry in table themekey_properties
  *     or '0' if no entry exists
  *   - the theme
@@ -52,10 +52,10 @@ function themekey_ui_get_path_theme($pat
  * @see themekey_rule_set()
  *
  * @param $path
- *   drupa path alias as string
+ *   Drupal path alias as string
  *
  * @param $theme
- *   assigned drupal theme as string
+ *   assigned Drupal theme as string
  *
  * @param $id
  *   the id of an existing rule if this
Index: themekey_validators.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/themekey_validators.inc,v
retrieving revision 1.2
diff -u -p -r1.2 themekey_validators.inc
--- themekey_validators.inc	21 Jul 2010 11:34:46 -0000	1.2
+++ themekey_validators.inc	31 Oct 2010 12:00:15 -0000
@@ -3,7 +3,7 @@
 
 /**
  * @file
- * Provides set of validators which could be used to validate
+ * Provides set of validators which can be used to validate
  * ThemeKey Theme Switching Rules.
  * @see themekey_admin.inc
  *
@@ -16,14 +16,14 @@
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: "=", "!"
  * Allowed values: "true", "false" as string
  *
  *
  * @param $rule
  *   A Theme Switching Rule as associative array:
- *   - property: ThemeKey property as string (p.e. "drupal:path")
+ *   - property: ThemeKey property as string (e.g. "drupal:path")
  *   - wildcard: optional string, only used if property is "drupal:path:wildcard"
  *   - operator: ThemeKey operator as string ("=", "!", "<". "<=", ">", ">=", "~")
  *   - value: ThemeKey property value as string
@@ -60,7 +60,7 @@ function themekey_validator_string_boole
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: "=", "!"
  * Allowed values: "1", "0"
  *
@@ -82,7 +82,7 @@ function themekey_validator_string_boole
  *     describing a problem with the operator
  *   - value: translated error message as string
  *     describing a problem with the value
- *   If no errors detected the array is empty.
+ *   If no errors detected, the array is empty.
  */
 function themekey_validator_nummeric_boolean($rule) {
   $errors = array();
@@ -103,14 +103,14 @@ function themekey_validator_nummeric_boo
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: "=", "!", "<", "<=", ">", ">="
  * Allowed values: string of digits (numbers)
  *
  *
  * @param $rule
  *   A Theme Switching Rule as associative array:
- *   - property: ThemeKey property as string (p.e. "drupal:path")
+ *   - property: ThemeKey property as string (e.g., "drupal:path")
  *   - wildcard: optional string, only used if property is "drupal:path:wildcard"
  *   - operator: ThemeKey operator as string ("=", "!", "<". "<=", ">", ">=", "~")
  *   - value: ThemeKey property value as string
@@ -144,17 +144,17 @@ function themekey_validator_ctype_digit(
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: any
  * Allowed values:
- * - configured drupal language as string or 'neutral' if operator is "="
+ * - configured Drupal language as string or 'neutral' if operator is "="
  * - valid regular expression if operator is "~"
  * - any string for different operators
  *
  *
  * @param $rule
  *   A Theme Switching Rule as associative array:
- *   - property: ThemeKey property as string (p.e. "drupal:path")
+ *   - property: ThemeKey property as string (e.g., "drupal:path")
  *   - wildcard: optional string, only used if property is "drupal:path:wildcard"
  *   - operator: ThemeKey operator as string ("=", "!", "<". "<=", ">", ">=", "~")
  *   - value: ThemeKey property value as string
@@ -193,7 +193,7 @@ function themekey_validator_language($ru
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: "<", "<=", ">", ">=" and "~"
  * Allowed values:
  * - valid regular expression if operator is "~"
@@ -202,7 +202,7 @@ function themekey_validator_language($ru
  *
  * @param $rule
  *   A Theme Switching Rule as associative array:
- *   - property: ThemeKey property as string (p.e. "drupal:path")
+ *   - property: ThemeKey property as string (e.g. "drupal:path")
  *   - wildcard: optional string, only used if property is "drupal:path:wildcard"
  *   - operator: ThemeKey operator as string ("=", "!", "<". "<=", ">", ">=", "~")
  *   - value: ThemeKey property value as string
@@ -243,11 +243,11 @@ function themekey_validator_date_time($r
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: any
  * Allowed values:
  * - valid regular expression if operator is "~"
- * - a vaild date like "2009-12-24" if operator is "=" or "!"
+ * - a valid date like "2009-12-24" if operator is "=" or "!"
  * - fragment of a date which contains at least the year as four digits
  *   for different operators
  *
@@ -296,11 +296,11 @@ function themekey_validator_date($rule) 
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: any
  * Allowed values:
  * - valid regular expression if operator is "~"
- * - a vaild time like "23:16:56" if operator is "=" or "!"
+ * - a valid time like "23:16:56" if operator is "=" or "!"
  * - fragment of a time which contains at least the hour as two digits
  *   for different operators
  *
@@ -349,7 +349,7 @@ function themekey_validator_time($rule) 
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: any
  * Allowed values:
  * - valid regular expression if operator is "~"
@@ -403,7 +403,7 @@ function themekey_validator_node_type($r
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: any
  * Allowed values:
  * - valid regular expression if operator is "~"
@@ -448,9 +448,9 @@ function themekey_validator_http_host($r
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: all
- * Allowed values: any string without whitespaces
+ * Allowed values: any string without whitespace
  *
  *
  * @param $rule
@@ -476,7 +476,7 @@ function themekey_validator_no_whitespac
   $errors = array();
 
   if (preg_match("/\s/", $rule['value'])) {
-    $errors['value'] = t('Value must not contain white spaces');
+    $errors['value'] = t('Value must not contain any "whitespace" characters');
   }
 
   return $errors;
@@ -484,9 +484,9 @@ function themekey_validator_no_whitespac
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: any
- * Allowed wildcards: any string without whitespaces and not starting with "#" or "%"
+ * Allowed wildcards: any string without whitespace and not starting with "#" or "%"
  *
  *
  * @param $rule
@@ -515,7 +515,7 @@ function themekey_validator_wildcard($ru
     $errors['wildcard'] = t('Wildcard must not start with type identifier "#" or "%" at this point');
   }
   elseif (preg_match("/\s/", $rule['wildcard'])) {
-    $errors['wildcard'] = t('Wildcard must not contain white spaces');
+    $errors['wildcard'] = t('Wildcard must not contain any "whitespace" characters');
   }
 
   return $errors;
@@ -523,7 +523,7 @@ function themekey_validator_wildcard($ru
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: "~"
  * Allowed values: valid regular expression
  *
@@ -559,7 +559,7 @@ function themekey_validator_regex($rule)
       break;
 
     default:
-      $errors['operator'] = t('Only possible operators is "~"');
+      $errors['operator'] = t('Only possible operator is "~"');
       break;
   }
 
@@ -567,7 +567,7 @@ function themekey_validator_regex($rule)
 }
 /**
  * @file
- * Provides set of validators which could be used to validate
+ * Provides set of validators which can be used to validate
  * ThemeKey Theme Switching Rules.
  * @see themekey_admin.inc
  *
@@ -580,9 +580,9 @@ function themekey_validator_regex($rule)
 
 
 /**
- * Validates a Theme Switichng Rule.
+ * Validates a Theme Switching Rule.
  * Allowed Operators: "=", "!"
- * Allowed values: paths without whitespaces
+ * Allowed values: paths without whitespace characters
  *
  *
  * @param $rule
@@ -611,13 +611,13 @@ function themekey_validator_drupal_path(
     case '=':
     case '!':
       if (strpos($rule['value'], '/') === 0) {
-        $errors['value'] = t('A drupal path must not start with "/"');
+        $errors['value'] = t('A Drupal path must not start with "/"');
       }
       if (preg_match("@[^/][%#]@", $rule['value'])) {
-        $errors['value'] = t('A wildcard could only be used to replace part(s) of the path but not for parts of a word');
+        $errors['value'] = t('A wildcard can only be used to replace part(s) of the path but not for parts of a word');
       }
       if (strpos($rule['value'], '?') !== FALSE) {
-        $errors['value'] = t('Query strings will be striped before a drupal path is precessed. Maybe you want to chain drupal:path and system:query_string or system:query_param (both provided by additional module ThemeKey Properties).');
+        $errors['value'] = t('Query strings will be stripped before a Drupal path is processed. Maybe you want to chain drupal:path and system:query_string or system:query_param (both provided by the additional module, ThemeKey Properties).');
       }
       break;
 
Index: modules/themekey.book.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/modules/themekey.book.inc,v
retrieving revision 1.6.2.5
diff -u -p -r1.6.2.5 themekey.book.inc
--- modules/themekey.book.inc	28 Aug 2010 08:31:38 -0000	1.6.2.5
+++ modules/themekey.book.inc	31 Oct 2010 12:00:15 -0000
@@ -32,7 +32,7 @@ function themekey_book_themekey_properti
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
   );
   $attributes['book:has_children'] = array(
-    'description' => t('Book: Has Children - Wheter the book has child pages or not. Possible values are "0" for false and "1" for true.'),
+    'description' => t('Book: Has Children - Whether the book has child pages or not. Possible values are "0" for false and "1" for true.'),
     'validator' => 'themekey_validator_nummeric_boolean',
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
   );
Index: modules/themekey.locale.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/modules/themekey.locale.inc,v
retrieving revision 1.4.2.4
diff -u -p -r1.4.2.4 themekey.locale.inc
--- modules/themekey.locale.inc	28 Aug 2010 08:31:38 -0000	1.4.2.4
+++ modules/themekey.locale.inc	31 Oct 2010 12:00:15 -0000
@@ -26,7 +26,7 @@ function themekey_locale_themekey_proper
   // Attributes for properties
   $attributes = array();
   $attributes['locale:language'] = array(
-    'description' => t('Locale: Language - The code of the current site language, formatted like "en" or "de". See !link for your the codes of the enabled languages',
+    'description' => t('Locale: Language - The code of the current site language, formatted like "en" or "de". See !link to find the codes for your enabled languages',
       array('!link' => l(t('!path', array('!path' => 'admin/settings/language')), 'admin/settings/language'))),
     'validator' => 'themekey_validator_language',
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
Index: modules/themekey.node.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/modules/themekey.node.inc,v
retrieving revision 1.10.2.5
diff -u -p -r1.10.2.5 themekey.node.inc
--- modules/themekey.node.inc	28 Aug 2010 08:31:38 -0000	1.10.2.5
+++ modules/themekey.node.inc	31 Oct 2010 12:00:15 -0000
@@ -100,7 +100,7 @@ function themekey_node_themekey_properti
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
   );
   $attributes['node:uid'] = array(
-    'description' => t('Node: User ID - The user id (uid) of the author of the node. The user id can be found in the URL of the users profile page, "user/23" or "user/23/edit" (23 = uid). See !link for your users.',
+    'description' => t('Node: User ID - The node author\'s user id (uid). The user id can be found in the URL of the user\'s profile page, "user/23" or "user/23/edit" (23 = uid). See !link for your users.',
       array('!link' => l(t('!path', array('!path' => 'admin/user/user/list')), 'admin/user/user/list'))),
     'validator' => 'themekey_validator_ctype_digit',
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
@@ -451,8 +451,8 @@ function themekey_node_get_q2type($q) {
 /**
  * This function isn't needed anymore and has been removed with ThemeKey 6.x-2.0-beta2.
  * But if it's missing a fatal error occurs if you upgrade from any version before
- * 6.x-2.0-beta2 until you called update.php. That should be avoided.
- * So this function is available again and does nothing else than reminding the
+ * 6.x-2.0-beta2 until you call update.php. That should be avoided.
+ * So this function is available again and does nothing other than remind the
  * administrator to call update.php
  *
  * see http://drupal.org/node/662786
@@ -465,6 +465,6 @@ function _themekey_node_callback(&$item,
   global $user;
 
   if (1 == $user->uid) {
-    drupal_set_message(t('You uploaded a new version of ThemeKey. Please !link your site!', array('!link' => l(t('update'), '/update.php'))));
+    drupal_set_message(t('You\'ve uploaded a new version of ThemeKey. Please !link your site!', array('!link' => l(t('update'), '/update.php'))));
   }
 }
Index: modules/themekey.system.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/modules/themekey.system.inc,v
retrieving revision 1.4.2.4
diff -u -p -r1.4.2.4 themekey.system.inc
--- modules/themekey.system.inc	28 Aug 2010 08:31:38 -0000	1.4.2.4
+++ modules/themekey.system.inc	31 Oct 2010 12:00:15 -0000
@@ -34,7 +34,7 @@ function themekey_system_themekey_proper
   );
   $attributes['drupal:path'] = array(
     'description' => t('Drupal: Drupal path like "node/add/story" or path alias with support for wildcards.<br />
-Query parameters are stripped off before the path gets examined. P.e. "node/add/story?destination=node" becomes "node/add/story" first. If you want to access query parameters have a look at property system:query_param provided by !link.<br />
+Query parameters are stripped off before the path gets examined. P.e. "node/add/story?destination=node" becomes "node/add/story" first. If you want to access query parameters have a look at the system:query_param property provided by !link.<br />
 Wildcard characters are "#" for numeric parts and "%" for all characters. To match conditions against a certain part, use an identifier with the wildcard. For example "comment/reply/#xyz" matches all paths with "comment/reply" and a numeric third argument. You can then specify conditions for every wildcard argument using the property "drupal:path:wildcard" and the identifier you choose ("xyz" in this example).<br />
 These are the possible wildcard replacements for foo/bar/42/test.html:', array('!link' => l(t('!path', array('!path' => 'ThemeKey Properties')), 'http://drupal.org/project/themekey_properties'))) .
 '<pre>
@@ -85,7 +85,7 @@ foo
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
   );
   $attributes['drupal:path:wildcard'] = array(
-    'description' => t('Wildcard of "drupal:path". See explaination of "drupal:path" for details.'),
+    'description' => t('Wildcard of "drupal:path". See explanation of "drupal:path" for details.'),
     'validator' => 'themekey_validator_wildcard',
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
   );
Index: modules/themekey.taxonomy.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/modules/themekey.taxonomy.inc,v
retrieving revision 1.13.2.6
diff -u -p -r1.13.2.6 themekey.taxonomy.inc
--- modules/themekey.taxonomy.inc	28 Aug 2010 08:31:38 -0000	1.13.2.6
+++ modules/themekey.taxonomy.inc	31 Oct 2010 12:00:16 -0000
@@ -39,7 +39,7 @@ function themekey_taxonomy_themekey_prop
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
   );
   $attributes['taxonomy:tid_and_childs'] = array(
-    'description' => t('Taxonomy: Term and its childs - The term id (tid) of a taxonomy term. If set all child terms of this term will be used too.'),
+    'description' => t('Taxonomy: Term and its children - The term id (tid) of a taxonomy term. If set, all child terms of this term will be used too.'),
     'validator' => 'themekey_validator_ctype_digit',
     'page cache' => THEMEKEY_PAGECACHE_UNSUPPORTED,
   );
Index: modules/themekey.user.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/themekey/modules/themekey.user.inc,v
retrieving revision 1.4.2.5
diff -u -p -r1.4.2.5 themekey.user.inc
--- modules/themekey.user.inc	28 Aug 2010 08:31:38 -0000	1.4.2.5
+++ modules/themekey.user.inc	31 Oct 2010 12:00:16 -0000
@@ -35,18 +35,18 @@ function themekey_user_themekey_properti
     'page cache' => THEMEKEY_PAGECACHE_UNSUPPORTED,
   );
   $attributes['user:language'] = array(
-    'description' => t('User: Language - The language the user has set in the settings of his profile page.
-      Format is the language code (for example "en" for english or "de" for german) that can be found on !link.',
+    'description' => t('User: Language - The language the user has set in the settings on his profile page.
+      Format is the language code (for example "en" for English or "de" for German) that can be found on !link.',
       array('!link' => l(t('!path', array('!path' => 'admin/settings/language')), 'admin/settings/language'))),
     'validator' => 'themekey_validator_language',
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
   );
   $attributes['user:name'] = array(
-    'description' => t('User: Name - The username of the user. See !link for your users.', array('!link' => l(t('!path', array('!path' => 'admin/user/user/list')), 'admin/user/user/list'))),
+    'description' => t('User: Name - The user\'s username. See !link for your users.', array('!link' => l(t('!path', array('!path' => 'admin/user/user/list')), 'admin/user/user/list'))),
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
   );
   $attributes['user:uid'] = array(
-    'description' => t('User: ID - The id of the user (uid). The user id can be found in the URL of the users profile page, "user/23" or "user/23/edit" (23 = uid). See !link for your users.',
+    'description' => t('User: ID - The id of the user (uid). The user id can be found in the URL of the user\'s profile page, "user/23" or "user/23/edit" (23 = uid). See !link for your users.',
       array('!link' => l(t('!path', array('!path' => 'admin/user/user/list')), 'admin/user/user/list'))),
     'validator' => 'themekey_validator_ctype_digit',
     'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
