From 96daa0b0a01b4e3eb337574d558680bb8a3327c9 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 17 Feb 2011 10:51:46 +0000 Subject: .po update, Oslo on all reports page. --- web/reports.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'web/reports.cgi') diff --git a/web/reports.cgi b/web/reports.cgi index 9d0787450..1b8557a06 100755 --- a/web/reports.cgi +++ b/web/reports.cgi @@ -49,6 +49,10 @@ sub main { $rss = '/rss' if $rss; print $q->redirect($base_url . $rss . '/reports/' . $area_name); return; + } elsif (mySociety::Config::get('COUNTRY') eq 'NO' && $q_council eq 'Oslo') { + $one_council = mySociety::MaPit::call('area', 3); + $area_type = $one_council->{type}; + $area_name = $one_council->{name}; } elsif (mySociety::Config::get('COUNTRY') eq 'NO' && $q_council =~ /,/) { my ($kommune, $fylke) = split /\s*,\s*/, $q_council; my @area_types = Cobrand::area_types($cobrand); @@ -327,7 +331,7 @@ sub list_problems { $out .= ent($_->{title}); $out .= ''; $out .= ' (sent to both)' if $_->{councils}>1; - $out .= ' (not sent to council)' if $_->{councils}==0 && $q->{site} ne 'emptyhomes'; + $out .= ' ' . _('(not sent to council)') . '' if $_->{councils}==0 && $q->{site} ne 'emptyhomes'; $out .= '
' . ent($_->{detail}) . '' if $all; $out .= ''; } -- cgit v1.2.3