Browse Source

Move informative text to translations as well

pull/2236/head
Rachael Booth 2 years ago
parent
commit
e3ff71d662
  1. 6
      app/models/form/lettings/pages/reasonother_value_check.rb
  2. 3
      config/locales/en.yml

6
app/models/form/lettings/pages/reasonother_value_check.rb

@ -7,9 +7,9 @@ class Form::Lettings::Pages::ReasonotherValueCheck < ::Form::Page
"translation" => "soft_validations.reasonother.title_text", "translation" => "soft_validations.reasonother.title_text",
"arguments" => [{ "key" => "reasonother", "i18n_template" => "reasonother" }], "arguments" => [{ "key" => "reasonother", "i18n_template" => "reasonother" }],
} }
@informative_text = "The reason you have entered looks very similar to one of the existing response categories. @informative_text = {
Please check the categories and select the appropriate one. "translation" => "soft_validations.reasonother.informative_text",
If the existing categories are not suitable, please confirm here to move onto the next question." }
end end
def questions def questions

3
config/locales/en.yml

@ -734,6 +734,9 @@ Make sure these answers are correct."
hint_text: "We would expect the mortgage amount and the deposit added together to be the same as the purchase price minus the discount." hint_text: "We would expect the mortgage amount and the deposit added together to be the same as the purchase price minus the discount."
reasonother: reasonother:
title_text: "You told us that the tenant’s main reason for leaving their last settled home was %{reasonother}" title_text: "You told us that the tenant’s main reason for leaving their last settled home was %{reasonother}"
informative_text: "The reason you have entered looks very similar to one of the existing response categories.
Please check the categories and select the appropriate one.
If the existing categories are not suitable, please confirm here to move onto the next question."
devise: devise:
email: email:

Loading…
Cancel
Save