diff options
| author | vlatka pavisic | 2016-12-12 15:49:52 +0100 | 
|---|---|---|
| committer | vlatka pavisic | 2016-12-12 15:49:58 +0100 | 
| commit | 2d4e6b45b0295e8c01deaebb04f8be009a7f9d87 (patch) | |
| tree | efb5139d08a29e9e0c9017b35d34ca8aa611f34d /config | |
| parent | 73ab4dfc33dcf6b32198ae902fea3f8504821dea (diff) | |
| download | chouette-core-2d4e6b45b0295e8c01deaebb04f8be009a7f9d87.tar.bz2 | |
Refs #1955 : RoutingConstraintZone
Diffstat (limited to 'config')
| -rw-r--r-- | config/initializers/inflections.rb | 5 | ||||
| -rw-r--r-- | config/locales/referentials.en.yml | 1 | ||||
| -rw-r--r-- | config/locales/routing_constraint_zones.en.yml | 23 | ||||
| -rw-r--r-- | config/locales/routing_constraint_zones.fr.yml | 20 | ||||
| -rw-r--r-- | config/routes.rb | 1 | 
5 files changed, 48 insertions, 2 deletions
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 5f618b7d5..2dfacf970 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -4,12 +4,13 @@  # Add new inflection rules using the following format. Inflections  # are locale specific, and you may define rules for as many different  # locales as you wish. All of these examples are active by default: -ActiveSupport::Inflector.inflections(:en) do |inflect| +ActiveSupport::Inflector.inflections(:fr) do |inflect|  #   inflect.plural /^(ox)$/i, '\1en'  #   inflect.singular /^(ox)en/i, '\1'  #   inflect.irregular 'person', 'people'  #   inflect.uncountable %w( fish sheep ) -  inflect.irregular 'réseau', 'réseaux' +  inflect.plural 'réseau', 'réseaux' +  inflect.plural 'Zone de contrainte', 'Zones de contrainte'  end  # These inflection rules are supported but not enabled by default: diff --git a/config/locales/referentials.en.yml b/config/locales/referentials.en.yml index 07af15bc0..17d77e975 100644 --- a/config/locales/referentials.en.yml +++ b/config/locales/referentials.en.yml @@ -71,6 +71,7 @@ en:          data_format_restrictions: "Data format constraint"          data_format: "Favorite format for export"          timebands: "Time bands" +        routing_constraint_zone: Zone de contrainte    formtastic:      titles:        referential: diff --git a/config/locales/routing_constraint_zones.en.yml b/config/locales/routing_constraint_zones.en.yml new file mode 100644 index 000000000..10bcd2f62 --- /dev/null +++ b/config/locales/routing_constraint_zones.en.yml @@ -0,0 +1,23 @@ +en: +  activerecord: +    models: +      routing_constraint_zone: Routing constraint zone +      attributes: +        routing_constraint_zone: +          name: Name +          stop_areas: Stop areas +          line: Line +  routing_constraint_zones: +    actions: +      new: New routing constraint zone +      edit: Edit this routing constraint zone +      destroy: Delete this routing constraint zone +      destroy_confirm: Are you sure you want to delete this routing constraint zone? +    new: +      title: Add a new routings constraint zone +    edit: +      title: "Update routing constraint zone %{routing_constraint_zone}" +    show: +      title: "Routing constraint zone %{routing_constraint_zone}" +    index: + diff --git a/config/locales/routing_constraint_zones.fr.yml b/config/locales/routing_constraint_zones.fr.yml new file mode 100644 index 000000000..a4e6ed256 --- /dev/null +++ b/config/locales/routing_constraint_zones.fr.yml @@ -0,0 +1,20 @@ +fr: +  activerecord: +    models: +      routing_constraint_zone: Zone de contrainte +      attributes: +        routing_constraint_zone: +          name: Nom +  routing_constraint_zones: +    actions: +      new: Ajouter une zone de contrainte +      edit: Modifier cette zone de contrainte +      destroy: Supprimer cette zone de contrainte +      destroy_confirm: Etes vous sûr de supprimer cette zone de contrainte ? +    new: +      title: Ajouter une zone de contrainte +    edit: +      title: "Modifier la zone de contrainte %{routing_constraint_zone}" +    show: +      title: "Zone de contrainte %{routing_constraint_zone}" +    index: diff --git a/config/routes.rb b/config/routes.rb index 04d1875c9..c49b28a07 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -115,6 +115,7 @@ ChouetteIhm::Application.routes.draw do          resources :vehicle_journey_imports          resources :vehicle_journey_exports        end +      resources :routing_constraint_zones      end      resources :import_tasks, :only => [:new, :create]  | 
