From 1b151ee015e401313c5fb6502ccc8ff00ece0a07 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Fri, 1 Sep 2017 14:57:16 +0200 Subject: [PATCH] Add missing translations in registration wizard --- app/views/registration/steps/_contact.html.haml | 6 +++--- config/locales/en.yml | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/registration/steps/_contact.html.haml b/app/views/registration/steps/_contact.html.haml index 3b7d43ae72..169e98cc85 100644 --- a/app/views/registration/steps/_contact.html.haml +++ b/app/views/registration/steps/_contact.html.haml @@ -13,17 +13,17 @@ .row .small-12.columns.field %label{ for: 'enterprise_contact' } {{'enterprise_contact' | t}}: - %input.chunky.small-12.columns{ id: 'enterprise_contact', name: 'contact', required: true, placeholder: "Contact Name", ng: { model: 'enterprise.contact' } } + %input.chunky.small-12.columns{ id: 'enterprise_contact', name: 'contact', required: true, placeholder: t(:enterprise_contact_placeholder), ng: { model: 'enterprise.contact' } } %span.error.small-12.columns{ ng: { show: "contact.contact.$error.required && submitted" } } {{'enterprise_contact_required' | t}} .row .small-12.columns.field %label{ for: 'enterprise_email_address' } {{'enterprise_email_address' | t}}: - %input.chunky.small-12.columns{ id: 'enterprise_email_address', name: 'email_address', type: 'email', placeholder: "eg. charlie@thefarm.com", ng: { model: 'enterprise.email_address' } } + %input.chunky.small-12.columns{ id: 'enterprise_email_address', name: 'email_address', type: 'email', placeholder: t(:enterprise_email_placeholder), ng: { model: 'enterprise.email_address' } } .row .small-12.columns.field %label{ for: 'enterprise_phone' } {{'enterprise_phone' | t}}: - %input.chunky.small-12.columns{ id: 'enterprise_phone', name: 'phone', placeholder: "eg. (03) 1234 5678", ng: { model: 'enterprise.phone' } } + %input.chunky.small-12.columns{ id: 'enterprise_phone', name: 'phone', placeholder: t(:enterprise_phone_placeholder), ng: { model: 'enterprise.phone' } } .small-12.medium-12.large-5.hide-for-small-only .row.buttons diff --git a/config/locales/en.yml b/config/locales/en.yml index 8ce260fb77..af7953a339 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1312,9 +1312,12 @@ See the %{link} to find out more about %{sitename}'s features and to start using registration_greeting: "Greetings!" who_is_managing_enterprise: "Who is responsible for managing %{enterprise}?" enterprise_contact: "Primary Contact" + enterprise_contact_placeholder: "Contact Name" enterprise_contact_required: "You need to enter a primary contact." enterprise_email_address: "Email address" + enterprise_email_placeholder: "eg. charlie@thefarm.com" enterprise_phone: "Phone number" + enterprise_phone_placeholder: "eg. (03) 1234 5678" back: "Back" continue: "Continue" limit_reached_headline: "Oh no!" @@ -1385,6 +1388,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using registration_finished_activate_instruction_html: "We've sent a confirmation email to %{email} if it hasn't been activated before.
Please follow the instructions there to make your enterprise visible on the Open Food Network." registration_finished_action: "Open Food Network home" + registration_contact_name: 'Contact Name' registration_type_headline: "Last step to add %{enterprise}!" registration_type_question: "Are you a producer?" registration_type_producer: "Yes, I'm a producer"