diff options
| author | Luc Donnet | 2017-12-21 12:03:20 +0100 | 
|---|---|---|
| committer | Luc Donnet | 2017-12-21 13:57:03 +0100 | 
| commit | 9a090ecdedac38eeff0aed137e311525e73832e9 (patch) | |
| tree | 2578a07ed502062e8fb8116202cf7eb673c3dc10 /config | |
| parent | b6606b25148b958a1f8d5502d95c7db12ef224b0 (diff) | |
| download | chouette-core-9a090ecdedac38eeff0aed137e311525e73832e9.tar.bz2 | |
Fix edit, i18n and add feature spec for purchase window Refs #5301 @3
Diffstat (limited to 'config')
| -rw-r--r-- | config/breadcrumbs.rb | 2 | ||||
| -rw-r--r-- | config/locales/purchase_windows.en.yml | 6 | ||||
| -rw-r--r-- | config/locales/purchase_windows.fr.yml | 8 | 
3 files changed, 10 insertions, 6 deletions
| diff --git a/config/breadcrumbs.rb b/config/breadcrumbs.rb index 03a98a513..263fc5f42 100644 --- a/config/breadcrumbs.rb +++ b/config/breadcrumbs.rb @@ -167,7 +167,7 @@ crumb :purchase_windows do |referential|    parent :referential, referential  end -crumb :purchase_window do |purchase_window, referential| +crumb :purchase_window do |referential, purchase_window|    link breadcrumb_name(purchase_window), referential_purchase_window_path(referential, purchase_window)    parent :purchase_windows, referential  end diff --git a/config/locales/purchase_windows.en.yml b/config/locales/purchase_windows.en.yml index 5fa98f08f..5ffed305a 100644 --- a/config/locales/purchase_windows.en.yml +++ b/config/locales/purchase_windows.en.yml @@ -57,8 +57,10 @@ en:            end: End    activerecord:      models: -      one: purchase window -      other: purchase windows +      purchase_window: +        zero: purchase window +        one: purchase window +        other: purchase windows      attributes:        purchase_windows:          name: Name diff --git a/config/locales/purchase_windows.fr.yml b/config/locales/purchase_windows.fr.yml index a7db04432..df5d45d82 100644 --- a/config/locales/purchase_windows.fr.yml +++ b/config/locales/purchase_windows.fr.yml @@ -43,7 +43,7 @@ fr:      create:        title: Ajouter un calendrier commercial      edit: -      title: Editer le calendrier comercial %{name} +      title: Editer le calendrier commercial %{name}      show:        title: Calendrier commercial %{name}    simple_form: @@ -57,8 +57,10 @@ fr:            end: Fin    activerecord:      models: -      one: "calendrier commercial" -      other: "calendriers commerciaux" +      purchase_window: +        zero: "calendrier commercial" +        one: "calendrier commercial" +        other: "calendriers commerciaux"      attributes:        purchase_window:          name: Nom | 
