diff options
author | Struan Donald <struan@exo.org.uk> | 2011-08-10 15:58:22 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-08-10 15:58:22 +0100 |
commit | b8942045bbd4f6ce6a6969522552ef2318b0c6fc (patch) | |
tree | 28de688e22ec7331796199cb399685d465eda827 /bin/open311-update-reports | |
parent | 0de9d82a715a21b03226c5ed2aa5a9b2b8ba97a0 (diff) |
translate text and use contact email for system user
Diffstat (limited to 'bin/open311-update-reports')
-rw-r--r-- | bin/open311-update-reports | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/open311-update-reports b/bin/open311-update-reports index 00242a094..079a3390c 100644 --- a/bin/open311-update-reports +++ b/bin/open311-update-reports @@ -8,7 +8,7 @@ use FixMyStreet::App; # FIXME - make this configurable and/or better my $system_user = FixMyStreet::App->model('DB::User')->find_or_create( { - email => 'fixmystreet@mysociety.org', + email => $c->conf('CONTACT_EMAIL'), name => 'System User', } ); @@ -97,13 +97,15 @@ while ( my $council = $council_list->next ) { if ( !$status_notes ) { # FIXME - better text here - $update->text( 'Closed by council' ); + $update->text( _('Closed by council') ); } $p->update; $update->insert; } } + # FIXME - if the council never marks as closed then + # we will always re-open problems. else { if ( $p->state eq 'fixed' ) { $p->state('confirmed'); @@ -112,7 +114,7 @@ while ( my $council = $council_list->next ) { if ( !$status_notes ) { # FIXME - better text here - $update->text( 'Re-opened by council' ); + $update->text( _('Re-opened by council') ); } $p->update; |