Merge pull request #115 from sgmap/french_datetime

Commentaire: use fr local to display date
This commit is contained in:
LeSim 2017-04-19 10:10:57 +02:00 committed by GitHub
commit c103e55579
3 changed files with 56 additions and 3 deletions

View file

@ -7,7 +7,7 @@ class Commentaire < ActiveRecord::Base
after_save :internal_notification
def header
"#{email}, " + created_at.localtime.strftime('%d %b %Y %H:%M')
"#{email}, " + I18n.l(created_at.localtime, format: '%d %b %Y %H:%M')
end
private

View file

@ -43,11 +43,11 @@
.stat-card.stat-card-half.big-number-card.pull-left
%span.big-number-card-title TOTAL DÉMARCHES DÉMATÉRIALISÉES
%span.big-number-card-number
= number_with_delimiter(@procedures_count, :locale => :fr)
= number_with_delimiter(@procedures_count)
.stat-card.stat-card-half.big-number-card.pull-left
%span.big-number-card-title TOTAL DOSSIERS DÉPOSÉS
%span.big-number-card-number
= number_with_delimiter(@dossiers_count, :locale => :fr)
= number_with_delimiter(@dossiers_count)
.clearfix

View file

@ -189,6 +189,59 @@ fr:
extension_white_list_error: "Le format de fichier de la pièce jointe n'est pas valide."
procedure_archived: "Cette démarche en ligne a été fermée, il n'est plus possible de déposer de dossier."
date:
abbr_day_names:
- dim
- lun
- mar
- mer
- jeu
- ven
- sam
abbr_month_names:
-
- jan.
- fév.
- mar.
- avr.
- mai
- juin
- juil.
- août
- sept.
- oct.
- nov.
- déc.
day_names:
- dimanche
- lundi
- mardi
- mercredi
- jeudi
- vendredi
- samedi
formats:
default: "%d/%m/%Y"
short: "%e %b"
long: "%e %B %Y"
month_names:
-
- janvier
- février
- mars
- avril
- mai
- juin
- juillet
- août
- septembre
- octobre
- novembre
- décembre
order:
- :day
- :month
- :year
datetime:
distance_in_words:
about_x_hours: