~ubuntu-branches/debian/sid/libembperl-perl/sid

« back to all changes in this revision

Viewing changes to Embperl/Form/Validate/Default.pm

  • Committer: Bazaar Package Importer
  • Author(s): Gunnar Wolf, Jonathan Yu, Damyan Ivanov, Ryan Niebur, gregor herrmann, Gunnar Wolf
  • Date: 2009-10-15 11:43:24 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20091015114324-2rnqzsj9jmpwd9nt
Tags: 2.3.0-1
[ Jonathan Yu ]
* New upstream release
  + SSI syntax now behaves more like mod_include
  + Improved XHTML/XML support
  + Fix to correctly retrieve Cookie header under apache2
  + Fix segfault when a value of an input attribute is removed
* Bringing this package under the pkg-perl group (Closes: #543609)
* Updated d/watch with CPAN search site
* Standards-Version 3.8.3
  + Remove version dependency on perl
  + Add Vcs-* and Homepage fields
* Drop version dependency on:
  + apache2-prefork-dev (>= 2.2.3-3.3) [oldstable 2.2.3-4]
  + apache2-mpm-prefork (>= 2.2.3-3.3) [oldstable  2.2.3-4]
  + libapache2-mod-perl2 (>= 2.0.2-2.3) [oldstable 2.0.2-2.4]
* Remove libcgi-pm-perl | perl-modules (>= 5.8.0) | libcgi-perl,
  which is always satisfied by perl
* Add extensive patches to fix POD errors and add whatis entries
* Add a patch to remove some Unicode data from POD; it was causing
  an obscure error with `AE' (thanks Ryan52!)

[ Damyan Ivanov ]
* debian/rules: fix target dependencies

[ Ryan Niebur ]
* Update jawnsy's email address
* Update ryan52's email address

[ gregor herrmann ]
* Split out all changes to upstream code into proper patches managed by
  quilt.
* Add patch cgi_pm.patch by Niko Tyni to avoid FTBFS if a newer CGI.pm is
  present at test time (closes: #521971).
* Update debian/copyright.
* debian/rules:
  - clean up a bit
  - call make with "-j1", the upstream build system is not parallel-build safe
  - add support for DEB_BUILD_OPTIONS nocheck
* Change Section to "perl".
* Remove dbinitembperlapache (created by test suite).

[ Gunnar Wolf ]
* Updated README.Debian to reflect the current reality re: thread
  safety, dropping mentions of obsolete mod_perl v1 and mentioning the
  deprecation of embperl itself
* Reload Apache if a2enmod/a2dismod was called in postinst/prerm
* Added Suggests: apache2-mpm-prefork, as it is the closer we can get to
  get the non-threaded versions of Apache2 by default besides
  documenting, which is already done in README.Debian. (Closes: #412521)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#   IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11
11
#   WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12
12
#
13
 
#   $Id: Default.pm 294769 2005-08-13 19:43:05Z richter $
 
13
#   $Id: Default.pm 474140 2006-11-13 04:41:09Z richter $
14
14
#
15
15
###################################################################################
16
16
 
50
50
        validate_must_not_contain => 'Das Feld %0 darf folgende Zeichen nicht enthalten: "%2"'
51
51
    },
52
52
 
 
53
    'de.utf-8' => 
 
54
    {
 
55
        validate_required => 'Bitte Feld "%0" ausfüllen',
 
56
        validate_eq => 'Falscher Inhalt "%1" des Feldes "%0": Erwartet wird "%2"',
 
57
        validate_same => '"%0" stimmt nicht mit "%2" überein',
 
58
        validate_lt => '%0 muß kleiner als %2 sein',
 
59
        validate_gt => '%0 muß größer als %2 sein',
 
60
        validate_le => '%0 muß kleiner oder gleich wie %2 sein',
 
61
        validate_ge => '%0 muß größer oder gleich %2 sein',
 
62
        validate_ne => '%0 muß ungleich %2 sein',
 
63
        validate_length_max => 'Inhalt des Feldes %0 ist zu lang, maximale Länge sind %2, eingegeben wurden %1 Zeichen',
 
64
        validate_length_min => 'Inhalt des Feldes %0 ist zu kurz, minimal Länge sind %2, eingegeben wurden %1 Zeichen',
 
65
        validate_length_eq => 'Inhalt des Feldes %0 hat die falsche Länge: Er sollte %2 Zeichen lang sein, ist aber %1 lang',
 
66
        validate_matches_regex => 'Inhalt "%1" des Feldes %0 entspricht nicht dem regulären Ausdruck /%2/',
 
67
        validate_matches_regex_js => 'Inhalt "%1" des Feldes %0 entspricht nicht dem regulären Ausdruck /%2/',
 
68
        validate_not_matches_regex => 'Inhalt "%1" des Feldes %0 darf nicht dem regulären Ausdruck /%2/ entsprechen',
 
69
        validate_not_matches_regex_js => 'Inhalt "%1" des Feldes %0 darf nicht dem regulären Ausdruck /%2/ entsprechen',
 
70
        validate_matches_wildcard => 'Inhalt "%1" des Feldes %0 entspricht nicht dem Wildcard-Ausdruck "%2"',
 
71
        validate_must_only_contain => 'Das Feld %0 darf nur folgende Zeichen enthalten: "%2"',
 
72
        validate_must_contain_one_of => 'Das Feld %0 muß mindestens eines der folgenden Zeichen enthalten: "%2"',
 
73
        validate_must_not_contain => 'Das Feld %0 darf folgende Zeichen nicht enthalten: "%2"'
 
74
    },
 
75
 
53
76
    en =>
54
77
    {
55
78
        validate_required => 'Please enter a value in %0',
148
171
    return ('obj.value') ;
149
172
    }
150
173
 
 
174
 
 
175
# --------------------------------------------------------------
 
176
 
 
177
sub validate_checked
 
178
    {
 
179
    my ($self, $key, $value, $arg, $fdat, $pref) = @_ ;
 
180
    
 
181
    return !defined($value) || $value eq ''  ? undef : []  ;
 
182
    }
 
183
 
 
184
# --------------------------------------------------------------
 
185
 
 
186
sub getscript_checked
 
187
    {
 
188
    my ($self, $arg, $pref) = @_ ;
 
189
    
 
190
    return ('obj.checked') ;
 
191
    }
 
192
 
 
193
# --------------------------------------------------------------
 
194
 
 
195
sub validate_notchecked
 
196
    {
 
197
    my ($self, $key, $value, $arg, $fdat, $pref) = @_ ;
 
198
    
 
199
    return !defined($value) || $value eq ''  ? [] : undef ;
 
200
    }
 
201
 
 
202
# --------------------------------------------------------------
 
203
 
 
204
sub getscript_notchecked
 
205
    {
 
206
    my ($self, $arg, $pref) = @_ ;
 
207
    
 
208
    return ('!obj.checked') ;
 
209
    }
 
210
 
151
211
# --------------------------------------------------------------
152
212
 
153
213
sub validate_eq