diff options
| author | Luc Donnet | 2017-09-21 09:33:29 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2017-09-21 09:33:29 +0200 | 
| commit | d62e303b9cae0f4c2e1e5075e4135faa24dd4460 (patch) | |
| tree | a0729dab658b176b21e4286d80538448e067c7bf | |
| parent | 2661aed29a0078bc3984424a6a4225cefc8394f3 (diff) | |
| download | chouette-core-d62e303b9cae0f4c2e1e5075e4135faa24dd4460.tar.bz2 | |
Add responder gem to automatically have flash message Refs #4576 @2
| -rw-r--r-- | Gemfile | 1 | ||||
| -rw-r--r-- | Gemfile.lock | 1 | ||||
| -rw-r--r-- | config/locales/api_keys.en.yml | 3 | ||||
| -rw-r--r-- | config/locales/api_keys.fr.yml | 3 | ||||
| -rw-r--r-- | config/locales/calendars.en.yml | 3 | ||||
| -rw-r--r-- | config/locales/calendars.fr.yml | 3 | ||||
| -rw-r--r-- | config/locales/compliance_controls.en.yml | 3 | ||||
| -rw-r--r-- | config/locales/compliance_controls.fr.yml | 3 | ||||
| -rw-r--r-- | config/locales/flash_responders.en.yml | 10 | ||||
| -rw-r--r-- | config/locales/flash_responders.fr.yml | 10 | ||||
| -rw-r--r-- | config/locales/line_referentials.en.yml | 3 | ||||
| -rw-r--r-- | config/locales/line_referentials.fr.yml | 3 | ||||
| -rw-r--r-- | config/locales/referentials.en.yml | 6 | ||||
| -rw-r--r-- | config/locales/referentials.fr.yml | 6 | ||||
| -rw-r--r-- | config/locales/routing_constraint_zones.en.yml | 3 | ||||
| -rw-r--r-- | config/locales/routing_constraint_zones.fr.yml | 3 | ||||
| -rw-r--r-- | config/locales/stop_area_referentials.en.yml | 5 | ||||
| -rw-r--r-- | config/locales/stop_area_referentials.fr.yml | 5 | ||||
| -rw-r--r-- | config/locales/workbenches.en.yml | 6 | ||||
| -rw-r--r-- | config/locales/workbenches.fr.yml | 6 | 
20 files changed, 70 insertions, 16 deletions
| @@ -102,6 +102,7 @@ gem 'roo'  # Controller  gem 'inherited_resources' +gem 'responders'  gem 'google-analytics-rails'  # Model diff --git a/Gemfile.lock b/Gemfile.lock index fef3270a3..9a7be2d84 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -642,6 +642,7 @@ DEPENDENCIES    rb-fsevent    rb-inotify    reflex! +  responders    rgeo (~> 0.5.2)    roo    rspec-rails (~> 3.5.0) diff --git a/config/locales/api_keys.en.yml b/config/locales/api_keys.en.yml index 1480c8e55..096846446 100644 --- a/config/locales/api_keys.en.yml +++ b/config/locales/api_keys.en.yml @@ -15,7 +15,8 @@ en:        title: "Update api key"    activerecord:      models: -      api_key: "Api Key" +      one: "Api Key" +      other: "Api keys"      attributes:        api_key:          name: "Name" diff --git a/config/locales/api_keys.fr.yml b/config/locales/api_keys.fr.yml index 20af91a49..ff13cc1ca 100644 --- a/config/locales/api_keys.fr.yml +++ b/config/locales/api_keys.fr.yml @@ -15,7 +15,8 @@ fr:        title: "Editer la clé d'accès API"    activerecord:      models: -      api_key: "Clé d'accès API" +      one: "Clé d'accès API" +      other: "Clés d'accès API"      attributes:        api_key:          name: "Nom" diff --git a/config/locales/calendars.en.yml b/config/locales/calendars.en.yml index 42e26e995..3b015ff08 100644 --- a/config/locales/calendars.en.yml +++ b/config/locales/calendars.en.yml @@ -56,7 +56,8 @@ en:            end: End    activerecord:      models: -      calendar: Calendar +      one: calendar +      other: calendars      attributes:        calendar:          name: Name diff --git a/config/locales/calendars.fr.yml b/config/locales/calendars.fr.yml index 63f6465d9..55ec9c620 100644 --- a/config/locales/calendars.fr.yml +++ b/config/locales/calendars.fr.yml @@ -56,7 +56,8 @@ fr:            end: Fin    activerecord:      models: -      calendar: Calendrier +      one: "calendrier" +      other: "calendriers"      attributes:        calendar:          name: Nom diff --git a/config/locales/compliance_controls.en.yml b/config/locales/compliance_controls.en.yml index 56439e46b..4eaaf184e 100644 --- a/config/locales/compliance_controls.en.yml +++ b/config/locales/compliance_controls.en.yml @@ -15,7 +15,8 @@ en:        title: "Update compliance control"    activerecord:      models: -      compliance_control: "compliance control" +      one: "compliance control" +      other: "compliance controls"      attributes:        compliance_control:          name: Name diff --git a/config/locales/compliance_controls.fr.yml b/config/locales/compliance_controls.fr.yml index 40f758ee4..78359b998 100644 --- a/config/locales/compliance_controls.fr.yml +++ b/config/locales/compliance_controls.fr.yml @@ -15,7 +15,8 @@ fr:        title: "Editer le jeu de controle"    activerecord:      models: -      compliance_control: "Jeu de controle" +      one: "jeu de controle" +      other: "jeux de controle"      attributes:        compliance_control:          name: "Nom" diff --git a/config/locales/flash_responders.en.yml b/config/locales/flash_responders.en.yml new file mode 100644 index 000000000..659a0bcc5 --- /dev/null +++ b/config/locales/flash_responders.en.yml @@ -0,0 +1,10 @@ +en: +  flash: +    actions: +      create: +        notice: "%{resource_name} was successfully created." +      update: +        notice: "%{resource_name} was successfully updated." +      destroy: +        notice: "%{resource_name} was successfully destroyed." +        alert: "%{resource_name} could not be destroyed." diff --git a/config/locales/flash_responders.fr.yml b/config/locales/flash_responders.fr.yml new file mode 100644 index 000000000..356b83665 --- /dev/null +++ b/config/locales/flash_responders.fr.yml @@ -0,0 +1,10 @@ +fr: +  flash: +    actions: +      create: +        notice: "%{resource_name} a été créé avec succès." +      update: +        notice: "%{resource_name} a été mis à jour avec succès." +      destroy: +        notice: "%{resource_name} a été détruit avec succès." +        alert: "%{resource_name} ne peut pas être détruit." diff --git a/config/locales/line_referentials.en.yml b/config/locales/line_referentials.en.yml index 78083912d..c6e498b50 100644 --- a/config/locales/line_referentials.en.yml +++ b/config/locales/line_referentials.en.yml @@ -14,7 +14,8 @@ en:    activerecord:      models:        line_referential: -        one:   "referential" +        one:   "line referential" +        other: "line referentials"      attributes:        line_referential:          sync_interval: "Synchronisation frequency" diff --git a/config/locales/line_referentials.fr.yml b/config/locales/line_referentials.fr.yml index c8dfbd640..1711fdf9c 100644 --- a/config/locales/line_referentials.fr.yml +++ b/config/locales/line_referentials.fr.yml @@ -14,7 +14,8 @@ fr:    activerecord:      models:        line_referential: -        one:   "référentiel" +        one: "référentiel de ligne" +        other: "référentiels de ligne"      attributes:        line_referential:          sync_interval: "Fréquence de synchronisation" diff --git a/config/locales/referentials.en.yml b/config/locales/referentials.en.yml index 9ae6bfe35..14b4dbe66 100644 --- a/config/locales/referentials.en.yml +++ b/config/locales/referentials.en.yml @@ -48,9 +48,9 @@ en:    activerecord:      models:        referential: -        zero: "Data space" -        one: "Data space" -        other: "Data spaces" +        zero: "data space" +        one: "data space" +        other: "data spaces"      attributes:        referential:          name: "Data space name" diff --git a/config/locales/referentials.fr.yml b/config/locales/referentials.fr.yml index a201ccadd..b90f6e5b6 100644 --- a/config/locales/referentials.fr.yml +++ b/config/locales/referentials.fr.yml @@ -48,9 +48,9 @@ fr:    activerecord:      models:        referential: -        zero: "Jeu de Données" -        one: "Jeu de Données" -        other: "Jeux de Données" +        zero: "jeu de Données" +        one: "jeu de Données" +        other: "jeux de Données"      attributes:        referential:          name: "Nom" diff --git a/config/locales/routing_constraint_zones.en.yml b/config/locales/routing_constraint_zones.en.yml index 836705a6a..882c227fe 100644 --- a/config/locales/routing_constraint_zones.en.yml +++ b/config/locales/routing_constraint_zones.en.yml @@ -1,7 +1,8 @@  en:    activerecord:      models: -      routing_constraint_zone: Routing constraint zone +      one: routing constraint zone +      other: routing constraint zones      attributes:        routing_constraint_zone:          name: Name diff --git a/config/locales/routing_constraint_zones.fr.yml b/config/locales/routing_constraint_zones.fr.yml index c262a851a..4ff0718b2 100644 --- a/config/locales/routing_constraint_zones.fr.yml +++ b/config/locales/routing_constraint_zones.fr.yml @@ -1,7 +1,8 @@  fr:    activerecord:      models: -      routing_constraint_zone: Zone de contrainte +      one: zone de contrainte +      other: zone de contraintes      attributes:        routing_constraint_zone:          name: Nom diff --git a/config/locales/stop_area_referentials.en.yml b/config/locales/stop_area_referentials.en.yml index bf2e0dc8b..11baf67e2 100644 --- a/config/locales/stop_area_referentials.en.yml +++ b/config/locales/stop_area_referentials.en.yml @@ -5,3 +5,8 @@ en:        cancel_sync: "Cancel reflex synchronization"      show:        title: 'Synchronization iCAR' +  activerecord: +    models: +      stop_area_referential: +        one: "stop area referential" +        other: "stop area referentials" diff --git a/config/locales/stop_area_referentials.fr.yml b/config/locales/stop_area_referentials.fr.yml index b09c648f0..bb4c4463a 100644 --- a/config/locales/stop_area_referentials.fr.yml +++ b/config/locales/stop_area_referentials.fr.yml @@ -5,3 +5,8 @@ fr:        cancel_sync: "Annuler la synchronisation Reflex"      show:        title: 'Synchronisation iCAR' +  activerecord: +    models: +      stop_area_referential: +        one: "référentiel d'arrêt" +        other: "référentiel d'arrêts" diff --git a/config/locales/workbenches.en.yml b/config/locales/workbenches.en.yml index 8a458e118..051ef1c96 100644 --- a/config/locales/workbenches.en.yml +++ b/config/locales/workbenches.en.yml @@ -14,3 +14,9 @@ en:        zero: "Currently, there is no referential in your workbench"        one: "Currently, there is one referential in your workbench"        other: "Currently, there are #{count} referentials in your workbench" +  activerecord: +    models: +      workbench: +        zero: "workbench" +        one: "workbench" +        other: "workbenches" diff --git a/config/locales/workbenches.fr.yml b/config/locales/workbenches.fr.yml index 559593492..f361251a0 100644 --- a/config/locales/workbenches.fr.yml +++ b/config/locales/workbenches.fr.yml @@ -15,3 +15,9 @@ fr:        zero: "Aucun jeu de données à l'heure actuelle"        one: "1 jeu de données à l'heure actuelle"        other: "#{count} jeux de données à l'heure actuelle" +  activerecord: +    models: +      workbench: +        zero: "espace de travail" +        one: "espace de travail" +        other: "espaces de travail" | 
