From 757f886af535d4e949f83cf14774fd6f81f28c28 Mon Sep 17 00:00:00 2001 From: Saimon Moore Date: Fri, 8 Sep 2017 13:35:19 +0200 Subject: [PATCH] Use proper namespaced translations ... in enterprise registration wizard Type step --- app/views/registration/steps/_type.html.haml | 14 +++++++------- config/locales/en.yml | 8 ++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/app/views/registration/steps/_type.html.haml b/app/views/registration/steps/_type.html.haml index 4c93c441f4..0a98d851ed 100644 --- a/app/views/registration/steps/_type.html.haml +++ b/app/views/registration/steps/_type.html.haml @@ -6,9 +6,9 @@ .row .small-12.columns %header - %h2{ "ng-bind" => "'registration_type_headline' | t:{enterprise: enterprise.name}" } + %h2{ "ng-bind" => "'enterprise.registration.modal.steps.type.headline' | t:{enterprise: enterprise.name}" } %h4 - {{'registration_type_question' | t}} + {{'enterprise.registration.modal.steps.type.question' | t}} %form{ name: 'type', novalidate: true, ng: { controller: "RegistrationFormCtrl", submit: "create(type)" } } .row#enterprise-types{ 'data-equalizer' => true, ng: { if: "::enterprise.type != 'own'" } } @@ -17,30 +17,30 @@ .small-12.medium-6.large-6.columns{ 'data-equalizer-watch' => true } %a.btnpanel#producer-panel{ href: "#", ng: { click: "enterprise.is_primary_producer = true", class: "{selected: enterprise.is_primary_producer}" } } %i.ofn-i_059-producer - %h4 {{'registration_type_producer' | t}} + %h4 {{'enterprise.registration.modal.steps.type.yes_producer' | t}} .small-12.medium-6.large-6.columns{ 'data-equalizer-watch' => true } %a.btnpanel#hub-panel{ href: "#", ng: { click: "enterprise.is_primary_producer = false", class: "{selected: enterprise.is_primary_producer == false}" } } %i.ofn-i_063-hub - %h4 {{'registration_type_no_producer' | t}} + %h4 {{'enterprise.registration.modal.steps.type.no_producer' | t}} .row .small-12.columns %input.chunky{ id: 'enterprise_is_primary_producer', name: 'is_primary_producer', hidden: true, required: true, ng: { model: 'enterprise.is_primary_producer' } } %span.error{ ng: { show: "type.is_primary_producer.$error.required && submitted" } } - {{'registration_type_error' | t}} + {{'enterprise.registration.modal.steps.type.producer_field_error' | t}} .row .small-12.columns .panel.callout .left %i.ofn-i_013-help   - %p {{'registration_type_producer_help' | t}} + %p {{'enterprise.registration.modal.steps.type.yes_producer_help' | t}} .panel.callout .left %i.ofn-i_013-help   - %p {{'registration_type_no_producer_help' | t}} + %p {{'enterprise.registration.modal.steps.type.no_producer_help' | t}} .row.buttons .small-12.columns diff --git a/config/locales/en.yml b/config/locales/en.yml index f047b059be..8b5193659b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1349,6 +1349,14 @@ See the %{link} to find out more about %{sitename}'s features and to start using phone_field_placeholder: 'eg. (03) 1234 5678' type: title: 'Type' + headline: "Last step to add %{enterprise}!" + question: "Are you a producer?" + yes_producer: "Yes, I'm a producer" + no_producer: "No, I'm not a producer" + producer_field_error: "Please choose one. Are you are producer?" + yes_producer_help: "Producers make yummy things to eat and/or drink. You're a producer if you grow it, raise it, brew it, bake it, ferment it, milk it or mould it." + no_producer_help: "If you’re not a producer, you’re probably someone who sells and distributes food. You might be a hub, coop, buying group, retailer, wholesaler or other." + about: title: 'About' images: