From 00936826ad83160d24622a7a69521fe6536d2e7a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 23 Jun 2010 13:45:40 +0000 Subject: - Patch #833654 by aaronbauman: change 'Larger' and 'Smaller' to 'Greater' and 'Less' in number module. --- modules/field/modules/number/number.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/field/modules/number/number.module b/modules/field/modules/number/number.module index 8fd19a0e0..276e369b8 100644 --- a/modules/field/modules/number/number.module +++ b/modules/field/modules/number/number.module @@ -173,8 +173,8 @@ function number_field_instance_settings_form($field, $instance) { * Implements hook_field_validate(). * * Possible error codes: - * - 'number_min': The value is smaller than the allowed minimum value. - * - 'number_max': The value is larger than the allowed maximum value. + * - 'number_min': The value is less than the allowed minimum value. + * - 'number_max': The value is greater than the allowed maximum value. */ function number_field_validate($entity_type, $entity, $field, $instance, $langcode, $items, &$errors) { foreach ($items as $delta => $item) { @@ -182,13 +182,13 @@ function number_field_validate($entity_type, $entity, $field, $instance, $langco if (is_numeric($instance['settings']['min']) && $item['value'] < $instance['settings']['min']) { $errors[$field['field_name']][$langcode][$delta][] = array( 'error' => 'number_min', - 'message' => t('%name: the value may be no smaller than %min.', array('%name' => t($instance['label']), '%min' => $instance['settings']['min'])), + 'message' => t('%name: the value may be no less than %min.', array('%name' => t($instance['label']), '%min' => $instance['settings']['min'])), ); } if (is_numeric($instance['settings']['max']) && $item['value'] > $instance['settings']['max']) { $errors[$field['field_name']][$langcode][$delta][] = array( 'error' => 'number_max', - 'message' => t('%name: the value may be no larger than %max.', array('%name' => t($instance['label']), '%max' => $instance['settings']['max'])), + 'message' => t('%name: the value may be no greater than %max.', array('%name' => t($instance['label']), '%max' => $instance['settings']['max'])), ); } } -- cgit v1.2.3