| 1 | package String::Validator::Language::EN; | ||
| 2 | $String::Validator::Language::EN::VERSION = '2.04'; | ||
| 3 | sub new { | ||
| 4 | return { | ||
| 5 | common_strings_not_match => "Strings don\'t match.", | ||
| 6 | common_tooshort => "Does not meet requirement: Min Length ", | ||
| 7 | common_toolong => " Does not meet requirement: Max Length ", | ||
| 8 | email_fqdn => | ||
| 9 | 'Does not appear to contain a Fully Qualified Domain Name.', | ||
| 10 | email_rfc822_noat => 'Missing @ symbol', | ||
| 11 | email_rfc822 => 'Does not look like an email address.', | ||
| 12 | email_tld => 'This TLD (Top Level Domain) is not recognized.', | ||
| 13 | email_nomx1 => 'Mail Exchanger for ', | ||
| 14 | email_nomx2 => | ||
| 15 | ' is missing from Public DNS. Mail cannot be delivered.', | ||
| 16 | password_mintypes => sub { | ||
| 17 | my $self = shift @_; | ||
| 18 | return | ||
| 19 | "Input contained $self->{types_found} types of character, $self->{min_types} are required."; | ||
| 20 | }, | ||
| 21 | password_minoftype => sub { | ||
| 22 | my ( $required, $type ) = @_; | ||
| 23 | if ( $type eq 'num' ) { $type = 'numeric' } | ||
| 24 | return "At least $required characters of type $type is required."; | ||
| 25 | }, | ||
| 26 | password_typeprohibit => sub { | ||
| 27 | my $type = shift @_; | ||
| 28 | if ( $type eq 'num' ) { $type = 'numeric' } | ||
| 29 | return "character type $type is prohibited."; | ||
| 30 | }, | ||
| 31 | phonenanp_not10 => sub { | ||
| 32 | my $D = shift; # num1, num2, len | ||
| 33 | return | ||
| 34 | "Not a 10 digit Area-Number $D->{num1} .. $D->{num2} = $D->{len}."; | ||
| 35 | }, | ||
| 36 | phonenanp_badarea => 'Invalid or unassigned Area Code. Area Codes Must be greater than 200 and all numbers containing 11 are reserved for Short Codes.', | ||
| 37 | }; | ||
| 38 | } | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |