Changeset 151 for trunk/bin/module_maker/validation.cli.php
- Timestamp:
- Jun 6, 2006 3:19:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/validation.cli.php
r145 r151 187 187 } 188 188 if ($max_length > 0 && $len_type == 'string') { 189 $o[] = "\$fv->stringLength('$field', 0, $max_length, sprintf(_(\"%s must be % f-to-%fcharacters in length.\"), _(\"$title\"), 0, $max_length));";189 $o[] = "\$fv->stringLength('$field', 0, $max_length, sprintf(_(\"%s must be %d-to-%d characters in length.\"), _(\"$title\"), 0, $max_length));"; 190 190 } 191 191 if ($len_type == 'num') { 192 $o[] = "\$fv->numericRange('$field', $min, $max, sprintf(_(\"%s must be a number between % f and %f.\"), _(\"$title\"), $min, $max));";192 $o[] = "\$fv->numericRange('$field', $min, $max, sprintf(_(\"%s must be a number between %d and %d.\"), _(\"$title\"), $min, $max));"; 193 193 } 194 194
Note: See TracChangeset
for help on using the changeset viewer.