diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-21 16:34:45 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-21 16:34:45 +0000 |
commit | 7268857dae0237b8996f5cfefc48e8c00b70823e (patch) | |
tree | beaaf25f4f5e03ab7b2cb3c2b23f36e8a290dbea | |
parent | d9aed79af9e2b2bdac0425d881e11c92f17d6f41 (diff) |
Couple of translation misses.
-rwxr-xr-x | web/contact.cgi | 8 | ||||
-rwxr-xr-x | web/index.cgi | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/web/contact.cgi b/web/contact.cgi index a2196e765..aefd3de7a 100755 --- a/web/contact.cgi +++ b/web/contact.cgi @@ -206,10 +206,12 @@ sub contact_page { } else { $intro .= $q->p(_('You are reporting the following problem report for being abusive, containing personal information, or similar:')); $item_title = ent($p->{title}); + my $date_time = Page::prettify_epoch($q, $p->{confirmed}); $item_meta = $q->em( - 'Reported ', - ($p->{anonymous}) ? 'anonymously' : "by " . ent($p->{name}), - ' at ' . Page::prettify_epoch($q, $p->{confirmed})); + $p->{anonymous} + ? sprintf(_('Reported anonymously at %s'), $date_time) + : sprintf(_('Reported by %s at %s'), ent($p->{name}), $date_time) + ); $item_body = ent($p->{detail}); } } diff --git a/web/index.cgi b/web/index.cgi index fd1bd2512..79a867f78 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -310,7 +310,7 @@ sub submit_problem { } elsif (!mySociety::EmailUtil::is_valid_email($input{email})) { $field_errors{email} = _('Please enter a valid email'); } - if ($input{category} && $input{category} eq '-- Pick a category --') { + if ($input{category} && $input{category} eq _('-- Pick a category --')) { $field_errors{category} = _('Please choose a category'); $input{category} = ''; } elsif ($input{category} && $input{category} eq _('-- Pick a property type --')) { @@ -562,7 +562,7 @@ please specify the closest point on land.')) unless %$all_councils; @categories = Page::scambs_categories(); } if (@categories) { - @categories = ('-- Pick a category --', @categories, _('Other')); + @categories = (_('-- Pick a category --'), @categories, _('Other')); $category = _('Category:'); } } else { |