? location_addanother.patch
? location_foreach_problem.alternate.patch
? location_foreach_problem.patch
? location_plurals.diff
Index: location.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.module,v
retrieving revision 1.62.2.16
diff -u -p -r1.62.2.16 location.module
--- location.module	30 Jan 2007 02:46:26 -0000	1.62.2.16
+++ location.module	1 Feb 2007 10:15:58 -0000
@@ -644,12 +644,13 @@ function location_form_alter($form_id, &
       }
     }
 
+    $location_form_count = ($node->nid) ? max(count($node->locations), variable_get('location_defaultnum_'. $node->type, 1)) : variable_get('location_defaultnum_'. $node->type, 1);
 
     $form['locations'] = array_merge(
       is_array($form['locations']) ? $form['locations'] : array(),
       array(
         '#type' => 'fieldset',
-        '#title' => t('Location(s)'),
+        '#title' => format_plural($location_form_count, 'Location', 'Locations'),
         '#tree' => TRUE,
         '#attributes' => array_merge(is_array($form['locations']['#attributes']) ? $form['locations']['#attributes'] : array(), array('class' => 'locations')),
         '#weight' => variable_get('location_weight_'. $form['type']['#value'], 9),
@@ -658,9 +659,6 @@ function location_form_alter($form_id, &
       )
     );
 
-
-    $location_form_count = ($node->nid) ? max(count($node->locations), variable_get('location_defaultnum_'. $node->type, 1)) : variable_get('location_defaultnum_'. $node->type, 1);
-    
     for ($index = 0; $index < $location_form_count; $index++) {
       $form['locations'][$index] = array_merge(
         is_array($form['locations'][$index]) ? $form['locations'][$index] : array(),
