diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-17 10:51:46 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-17 10:51:46 +0000 |
commit | 96daa0b0a01b4e3eb337574d558680bb8a3327c9 (patch) | |
tree | 7f138b181a600c0d5c297d6e9b2f2403c8eac9d6 /web/reports.cgi | |
parent | 84c53bffb01a0699810a422eb6946a86d3b7004d (diff) |
.po update, Oslo on all reports page.
Diffstat (limited to 'web/reports.cgi')
-rwxr-xr-x | web/reports.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
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 .= '</a>'; $out .= ' <small>(sent to both)</small>' if $_->{councils}>1; - $out .= ' <small>(not sent to council)</small>' if $_->{councils}==0 && $q->{site} ne 'emptyhomes'; + $out .= ' <small>' . _('(not sent to council)') . '</small>' if $_->{councils}==0 && $q->{site} ne 'emptyhomes'; $out .= '<br><small>' . ent($_->{detail}) . '</small>' if $all; $out .= '</li>'; } |