Index: handlers/views_handler_field_numeric.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/handlers/views_handler_field_numeric.inc,v
retrieving revision 1.6
diff -u -p -r1.6 views_handler_field_numeric.inc
--- handlers/views_handler_field_numeric.inc	2 Jul 2009 00:13:12 -0000	1.6
+++ handlers/views_handler_field_numeric.inc	3 Jun 2010 08:30:51 -0000
@@ -17,6 +17,9 @@ class views_handler_field_numeric extend
     $options['precision'] = array('default' => 0);
     $options['decimal'] = array('default' => '.', 'translatable' => TRUE);
     $options['separator'] = array('default' => ',', 'translatable' => TRUE);
+    $options['format_plural'] = array('default' => FALSE);
+    $options['format_plural_singular'] = array('default' => '1');
+    $options['format_plural_plural'] = array('default' => '@count');
     $options['prefix'] = array('default' => '', 'translatable' => TRUE);
     $options['suffix'] = array('default' => '', 'translatable' => TRUE);
 
@@ -57,6 +60,28 @@ class views_handler_field_numeric extend
       '#description' => t('What single character to use as the thousands separator.'),
       '#size' => 2,
     );
+    $form['format_plural'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Format plural'),
+      '#description' => t('If checked, special handling will be used for plurality.'),
+      '#default_value' => $this->options['format_plural'],
+    );
+    $form['format_plural_singular'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Singular form'),
+      '#default_value' => $this->options['format_plural_singular'],
+      '#description' => t('Text to use for the singular form.'),
+      '#process' => array('views_process_dependency'),
+      '#dependency' => array('edit-options-format-plural' => array(TRUE)),
+    );
+    $form['format_plural_plural'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Plural form'),
+      '#default_value' => $this->options['format_plural_plural'],
+      '#description' => t('Text to use for the plural form, @count will be replaced with the value.'),
+      '#process' => array('views_process_dependency'),
+      '#dependency' => array('edit-options-format-plural' => array(TRUE)),
+    );
     $form['prefix'] = array(
       '#type' => 'textfield',
       '#title' => t('Prefix'),
@@ -91,6 +117,11 @@ class views_handler_field_numeric extend
       return '';
     }
 
+    // Should we format as a plural.
+    if (!empty($this->options['format_plural'])) {
+      $value = format_plural($value, $this->options['format_plural_singular'], $this->options['format_plural_plural']);
+    }
+
     return check_plain($this->options['prefix'] . $value . $this->options['suffix']);
   }
 }
