diff options
| author | jpl | 2017-02-06 10:18:52 +0100 | 
|---|---|---|
| committer | jpl | 2017-02-06 10:18:52 +0100 | 
| commit | 72425b456c4a99741bf81f534cce1cb5c95ed4f4 (patch) | |
| tree | 9e85ea8948dcea29c5e809c43ffeede9972f0ce7 | |
| parent | 6993cb3a8f4cd5257f7e711eb34ac4f173356db5 (diff) | |
| download | chouette-core-72425b456c4a99741bf81f534cce1cb5c95ed4f4.tar.bz2 | |
Refs #2482: updating workbench#show wordings
| -rw-r--r-- | app/views/workbenches/show.html.slim | 6 | ||||
| -rw-r--r-- | config/locales/referentials.en.yml | 6 | ||||
| -rw-r--r-- | config/locales/referentials.fr.yml | 6 | 
3 files changed, 13 insertions, 5 deletions
diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim index 33765e824..732e306c4 100644 --- a/app/views/workbenches/show.html.slim +++ b/app/views/workbenches/show.html.slim @@ -36,12 +36,12 @@            = new_pagination @wbench_refs, 'pull-right'            = table_builder @wbench_refs, -            { 'Nom du JDD' => 'name', 'Etat' => 'status', +            { @wbench_refs.human_attribute_name(:name) => 'name', @wbench_refs.human_attribute_name(:status) => 'status',                'Organisation' => Proc.new {|w| w.organisation.name}, +              @wbench_refs.human_attribute_name(:validity_period) => Proc.new {|w| w.validity_period.nil? ? '-' : t('validity_range', debut: l(w.try(:validity_period).try(:begin), format: :short), end: l(w.try(:validity_period).try(:end), format: :short))},                'Nb lignes' => Proc.new {|w| w.lines.count}, -              'Plage de validité' => Proc.new {|w| w.validity_period.nil? ? '-' : t('validity_range', debut: l(w.try(:validity_period).try(:begin), format: :short), end: l(w.try(:validity_period).try(:end), format: :short))},                @wbench_refs.human_attribute_name(:updated_at) => Proc.new {|w| l(w.updated_at, format: :short)}, -              'Publié le' => ''}, +              @wbench_refs.human_attribute_name(:published_at) => ''},              [:show, :edit, :archive, :unarchive, :delete],              'table' diff --git a/config/locales/referentials.en.yml b/config/locales/referentials.en.yml index 995fdbcc7..805ac648c 100644 --- a/config/locales/referentials.en.yml +++ b/config/locales/referentials.en.yml @@ -42,7 +42,8 @@ en:          other: "Data spaces"      attributes:        referential: -        name: "Name" +        name: "Data space name" +        status: "Status"          slug: "Code"          prefix: "Neptune Object Id prefix"          projection_type: "Optional spatial reference system code (SRID)" @@ -77,6 +78,9 @@ en:          data_format: "Favorite format for export"          timebands: "Time bands"          routing_constraint_zone: Zone de contrainte +        validity_period: "Validity period" +        updated_at: "Updated" +        published_at: "Integrated"    formtastic:      titles:        referential: diff --git a/config/locales/referentials.fr.yml b/config/locales/referentials.fr.yml index 8a3e220bd..4b26b28ab 100644 --- a/config/locales/referentials.fr.yml +++ b/config/locales/referentials.fr.yml @@ -44,7 +44,8 @@ fr:          other: "Jeux de Données"      attributes:        referential: -        name: "Nom" +        name: "Nom du JDD" +        status: "Etat"          slug: "Code"          prefix: "Préfixe des identifiants Neptune"          projection_type: "Système de référence spatiale (SRID) optionnel" @@ -78,6 +79,9 @@ fr:          data_format_restrictions: "Format d'export privilégié"          data_format: "Format d'export privilégié"          timebands: "Créneaux horaires" +        validity_period: "Période de validité englobante" +        updated_at: "Modifié" +        published_at: "Intégré"    formtastic:      titles:        referential:  | 
