diff options
author | Jonas Oberg <jonas@morus.se> | 2012-11-28 09:56:11 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2014-03-11 16:36:21 +0000 |
commit | 45011434e360439a9f15a767a08ac3569c2c040b (patch) | |
tree | 1232da6f77366cda0dabd33d704e1ae255202548 | |
parent | 4fe5beaaa3eaffa030e178f0c8f4fbaef87c8267 (diff) |
Updated translation of dates
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixaMinGata.pm | 4 | ||||
-rw-r--r-- | templates/web/fixmystreet/report/_item.html | 7 |
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 ) ) %] |