File Coverage

lib/CGI/FormBuilder/Messages/default.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             ###########################################################################
3             # Copyright (c) Nate Wiger http://nateware.com. All Rights Reserved.
4             # Please visit http://formbuilder.org for tutorials, support, and examples.
5             ###########################################################################
6              
7             package CGI::FormBuilder::Messages::default;
8              
9 11     11   12194 use strict;
  11         22  
  11         543  
10 11     11   13027 use utf8;
  11         124  
  11         69  
11              
12 11     11   6992 use CGI::FormBuilder::Messages::base;
  11         28  
  11         331  
13 11     11   65 use base 'CGI::FormBuilder::Messages::base';
  11         24  
  11         3165  
14              
15             our $VERSION = '3.09';
16              
17             # Default messages (US English)
18             __PACKAGE__->define_messages({
19             lang => 'en_US',
20             charset => 'iso-8859-1',
21              
22             js_invalid_start => '%s error(s) were encountered with your submission:',
23             js_invalid_end => 'Please correct these fields and try again.',
24              
25             js_invalid_input => '- Invalid entry for the "%s" field',
26             js_invalid_select => '- Select an option from the "%s" list',
27             js_invalid_multiple => '- Select one or more options from the "%s" list',
28             js_invalid_checkbox => '- Check one or more of the "%s" options',
29             js_invalid_radio => '- Choose one of the "%s" options',
30             js_invalid_password => '- Invalid entry for the "%s" field',
31             js_invalid_textarea => '- Please fill in the "%s" field',
32             js_invalid_file => '- Invalid filename for the "%s" field',
33             js_invalid_number => '- Invalid numerical entry for the "%s" field',
34             js_invalid_date => '- Invalid date for the "%s" field',
35             js_invalid_url => '- Invalid url for the "%s" field',
36             js_invalid_email => '- Invalid email for the "%s" field',
37             js_invalid_time => '- Invalid time for the "%s" field',
38             'js_invalid_datetime-local' => '- Invalid date for the "%s" field',
39             js_invalid_default => '- Invalid entry for the "%s" field',
40              
41             js_noscript => 'Please enable Javascript or use a newer browser.',
42              
43             form_required_text => 'Fields that are %shighlighted%s are required.',
44              
45             form_invalid_text => '%s error(s) were encountered with your submission. '
46             . 'Please correct the fields %shighlighted%s below.',
47              
48             form_invalid_input => 'Invalid entry',
49             form_invalid_hidden => 'Invalid entry',
50             form_invalid_select => 'Select an option from this list',
51             form_invalid_checkbox => 'Check one or more options',
52             form_invalid_radio => 'Choose an option',
53             form_invalid_password => 'Invalid entry',
54             form_invalid_textarea => 'Please fill this in',
55             form_invalid_file => 'Invalid filename',
56             form_invalid_default => 'Invalid entry',
57              
58             form_grow_default => 'Additional %s',
59             form_select_default => '-select-',
60             form_other_default => 'Other:',
61             form_submit_default => 'Submit',
62             form_reset_default => 'Reset',
63            
64             form_confirm_text => 'Success! Your submission has been received %s.',
65              
66             mail_confirm_subject => '%s Submission Confirmation',
67             mail_confirm_text => <
68             Your submission has been received %s,
69             and will be processed shortly.
70              
71             If you have any questions, please contact our staff by replying
72             to this email.
73             EOT
74             mail_results_subject => '%s Submission Results',
75             });
76              
77             1;
78             __END__