aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/FixaMinGata.pm4
-rw-r--r--templates/web/fixmystreet/report/_item.html7
2 files changed, 10 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixaMinGata.pm b/perllib/FixMyStreet/Cobrand/FixaMinGata.pm
index 10a85aef0..e101705bf 100644
--- a/perllib/FixMyStreet/Cobrand/FixaMinGata.pm
+++ b/perllib/FixMyStreet/Cobrand/FixaMinGata.pm
@@ -7,6 +7,10 @@ use warnings;
use Carp;
use mySociety::MaPit;
use FixMyStreet::Geocode::OSM;
+use DateTime;
+
+
+DateTime->DefaultLocale('sv_SE');
sub path_to_web_templates {
my $self = shift;
diff --git a/templates/web/fixmystreet/report/_item.html b/templates/web/fixmystreet/report/_item.html
index 852633f76..8e2e73a8d 100644
--- a/templates/web/fixmystreet/report/_item.html
+++ b/templates/web/fixmystreet/report/_item.html
@@ -6,7 +6,12 @@
<img class="img" height="60" width="90" src="[% photo.url_fp %]" alt="">
[% END %]
<h4>[% problem.title | html %]</h4>
- <small>[% prettify_dt( problem.confirmed, 1 ) %]
+ <small>
+ [% IF c.cobrand.moniker != 'fixamingata' %] [%# Default: %]
+ [%- prettify_dt( problem.confirmed, 1 ) %]
+ [% ELSE %] [%# Swedish cobrand fixamingata: %]
+ [%- prettify_dt( problem.confirmed) %]
+ [% END %]
[%- IF dist %], [% dist %]km[% END %]
[%- IF include_lastupdate AND problem.confirmed != problem.lastupdate AND problem.whensent != problem.lastupdate %],
[% tprintf(loc('last updated %s'), prettify_dt( problem.lastupdate, 1 ) ) %]