aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/Page.pm6
-rwxr-xr-xweb/index.cgi4
2 files changed, 5 insertions, 5 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm
index 28646fbf3..daaa67551 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: Page.pm,v 1.155 2009-08-10 12:24:05 matthew Exp $
+# $Id: Page.pm,v 1.156 2009-08-11 09:28:41 matthew Exp $
#
package Page;
@@ -631,9 +631,9 @@ sub display_problem_text {
$out .= '<p><em>';
if ($q->{site} eq 'emptyhomes') {
if ($problem->{anonymous}) {
- $out .= sprintf(_('%s, reported anonymously at %s'), ent($problem->{category}), prettify_epoch($problem->{time}));
+ $out .= sprintf(_('%s, reported anonymously at %s'), ent(_($problem->{category})), prettify_epoch($problem->{time}));
} else {
- $out .= sprintf(_('%s, reported by %s at %s'), ent($problem->{category}), ent($problem->{name}), prettify_epoch($problem->{time}));
+ $out .= sprintf(_('%s, reported by %s at %s'), ent(_($problem->{category})), ent($problem->{name}), prettify_epoch($problem->{time}));
}
} else {
if ($problem->{service} && $problem->{category} && $problem->{category} ne 'Other' && $problem->{anonymous}) {
diff --git a/web/index.cgi b/web/index.cgi
index d9caaa6db..4b15cf168 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.265 2009-08-10 16:56:30 matthew Exp $
+# $Id: index.cgi,v 1.266 2009-08-11 09:28:41 matthew Exp $
use strict;
use Standard;
@@ -290,7 +290,7 @@ sub submit_problem {
if ($input{category} && $input{category} eq '-- Pick a category --') {
push (@errors, _('Please choose a category'));
$input{category} = '';
- } elsif ($input{category} && $input{category} eq '-- Pick a property type --') {
+ } elsif ($input{category} && $input{category} eq _('-- Pick a property type --')) {
push (@errors, _('Please choose a property type'));
$input{category} = '';
}