~ubuntu-branches/ubuntu/edgy/libcgi-formbuilder-perl/edgy

« back to all changes in this revision

Viewing changes to lib/CGI/FormBuilder/Messages/C.pm

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2006-05-28 15:47:27 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060528154727-u26u5nqd0btamxpm
Tags: 3.03.01-1
* New upstream release.
  + optgroups bugfix for complex arrays.
  + removal of HTML::Entities support due to utf8 issues. Closes:
    bug#338369 (thanks to Todd Charron <tcharron@badkarma.mine.nu> for
    reporting, and to several others for working on workarounds).
  + new es_ES Messages module with better translations
  + a patch from Mark Hedges to enable plugin modules for mailresults()
* Update local cdbs snippet copyright-check.mk:
  + Broaden scan to also look for "(c)" by default.
  + Make egrep options configurable.
* Bump up standards-version to 3.7.2 (no changes needed).
* Update debian/copyright_hints (nothing remarkable).
* Bump up debian/watch to version 3 syntax, and use uversionmangle
  instead of multiple parantheses (both work using uscan locally, but
  the later hopefully works with qa.debian.org too).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# Copyright (c) 2005 Nate Wiger <nate@wiger.org>. All Rights Reserved.
 
3
# Use "perldoc CGI::FormBuilder::Messages" to read full documentation.
 
4
 
 
5
package CGI::FormBuilder::Messages::locale;
 
6
 
 
7
=head1 NAME
 
8
 
 
9
CGI::FormBuilder::Messages::en_US - English (default) messages for FormBuilder
 
10
 
 
11
=head1 SYNOPSIS
 
12
 
 
13
    use CGI::FormBuilder;
 
14
 
 
15
    my $form = CGI::FormBuilder->new(messages => 'auto');
 
16
 
 
17
=cut
 
18
 
 
19
use strict;
 
20
 
 
21
our $VERSION = '3.03';
 
22
 
 
23
# Simply create a hash of messages for this language
 
24
our %MESSAGES = (
 
25
    lang                  => 'en_US',
 
26
    charset               => 'iso-8859-1',
 
27
 
 
28
    js_invalid_start      => '%s error(s) were encountered with your submission:',
 
29
    js_invalid_end        => 'Please correct these fields and try again.',
 
30
 
 
31
    js_invalid_input      => '- Invalid entry for the "%s" field',
 
32
    js_invalid_select     => '- Select an option from the "%s" list',
 
33
    js_invalid_multiple   => '- Select one or more options from the "%s" list',
 
34
    js_invalid_checkbox   => '- Check one or more of the "%s" options',
 
35
    js_invalid_radio      => '- Choose one of the "%s" options',
 
36
    js_invalid_password   => '- Invalid entry for the "%s" field',
 
37
    js_invalid_textarea   => '- Please fill in the "%s" field',
 
38
    js_invalid_file       => '- Invalid filename 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     => <<EOT,
 
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
# This method should remain unchanged
 
78
sub messages {
 
79
    return wantarray ? %MESSAGES : \%MESSAGES;
 
80
}
 
81
 
 
82
1;
 
83
__END__
 
84
 
 
85
=head1 DESCRIPTION
 
86
 
 
87
This module contains English (default) messages for FormBuilder.
 
88
 
 
89
If the C<messages> option is set to "auto" (the recommended
 
90
but NOT default setting), these messages will automatically
 
91
be displayed to English clients, or clients for which no
 
92
language set exists:
 
93
 
 
94
     my $form = CGI::FormBuilder->new(messages => 'auto');
 
95
 
 
96
To force display of these messages, use the following
 
97
option:
 
98
 
 
99
     my $form = CGI::FormBuilder->new(messages => ':en_US');
 
100
 
 
101
=head1 REVISION
 
102
 
 
103
$Id: en_US.pm,v 1.11 2006/02/24 01:42:29 nwiger Exp $
 
104
 
 
105
=head1 AUTHOR
 
106
 
 
107
Copyright (c) 2005-2006 Nate Wiger <nate@wiger.org>. All Rights Reserved.
 
108
 
 
109
This module is free software; you may copy this under the terms of
 
110
the GNU General Public License, or the Artistic License, copies of
 
111
which should have accompanied your Perl kit.
 
112
 
 
113
=cut
 
114