Localization des dates plus aboutie

recurrent
echarp 8 years ago
parent 2ab36e8575
commit 0cc1c4d0f6
  1. 2
      config/application.rb
  2. 7
      config/locales/en.yml
  3. 7
      config/locales/fr.yml

@ -29,8 +29,6 @@ module AgendaDuLibreRails
# config.i18n.default_locale = :de
config.i18n.default_locale = :fr
I18n.config.enforce_available_locales = true
config.action_mailer.default_options = {
from: 'moderateurs@agendadulibre.org',
to: 'moderateurs@agendadulibre.org'

@ -1,10 +1,11 @@
en:
date:
formats:
month: "%B %Y"
month: '%B %Y'
period: From %{start} to %{end}.
same_day: On %{date} from %{start} to %{end}.
long: '%A %e %B %Y'
time:
formats:
at: "%A %d %B %Y at %Hh%M"
hours: "%Hh%M"
at: '%A %e %B %Y at %Hh%M'
hours: '%Hh%M'

@ -1,10 +1,11 @@
fr:
date:
formats:
month: "%B %Y"
month: '%B %Y'
period: Du %{start} au %{end}.
same_day: Le %{date} de %{start} à %{end}.
long: '%A %e %B %Y'
time:
formats:
at: "%A %d %B %Y à %Hh%M"
hours: "%Hh%M"
at: '%A %e %B %Y à %Hh%M'
hours: '%Hh%M'

Loading…
Cancel
Save