aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.cgi
diff options
context:
space:
mode:
authormatthew <matthew>2008-05-13 16:00:14 +0000
committermatthew <matthew>2008-05-13 16:00:14 +0000
commit03b2e92c9d42643b1b308c5b0a7a369ddf01e6f0 (patch)
tree4e78de30644d6882c10f194beb1f5d3c49707f72 /web/index.cgi
parent06baeaace3680d3e473c7b1360b715420f93c82e (diff)
More i18n; cache empty homes CSS.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-xweb/index.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/index.cgi b/web/index.cgi
index 8e27bccd6..7596a9763 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: index.cgi,v 1.192 2008-05-06 10:06:13 matthew Exp $
+# $Id: index.cgi,v 1.193 2008-05-13 16:00:14 matthew Exp $
use strict;
use Standard;
@@ -164,12 +164,12 @@ sub submit_update {
push @errors, $err if $err;
}
- push(@errors, 'Please enter a message') unless $input{update} =~ /\S/;
+ push(@errors, _('Please enter a message')) unless $input{update} =~ /\S/;
$input{name} = undef unless $input{name} =~ /\S/;
if ($input{email} !~ /\S/) {
- push(@errors, 'Please enter your email');
+ push(@errors, _('Please enter your email'));
} elsif (!mySociety::EmailUtil::is_valid_email($input{email})) {
- push(@errors, 'Please enter a valid email');
+ push(@errors, _('Please enter a valid email'));
}
my $image;