diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-23 13:45:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-23 13:45:40 +0000 |
commit | 00936826ad83160d24622a7a69521fe6536d2e7a (patch) | |
tree | aa5e579d1b2266b8ae48e7c7137740197ce6cd24 | |
parent | a3af546fe4772179bf8d650d1e3475640fa2ffb6 (diff) | |
download | brdo-00936826ad83160d24622a7a69521fe6536d2e7a.tar.gz brdo-00936826ad83160d24622a7a69521fe6536d2e7a.tar.bz2 |
- Patch #833654 by aaronbauman: change 'Larger' and 'Smaller' to 'Greater' and 'Less' in number module.
-rw-r--r-- | modules/field/modules/number/number.module | 8 |
1 files changed, 4 insertions, 4 deletions
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'])), ); } } |