From e3ff71d66225f8adacd004705f14f8afc1bf7864 Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Mon, 12 Feb 2024 16:27:22 +0000 Subject: [PATCH] Move informative text to translations as well --- app/models/form/lettings/pages/reasonother_value_check.rb | 6 +++--- config/locales/en.yml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/models/form/lettings/pages/reasonother_value_check.rb b/app/models/form/lettings/pages/reasonother_value_check.rb index e4af8a1f1..98a3240d6 100644 --- a/app/models/form/lettings/pages/reasonother_value_check.rb +++ b/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", "arguments" => [{ "key" => "reasonother", "i18n_template" => "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." + @informative_text = { + "translation" => "soft_validations.reasonother.informative_text", + } end def questions diff --git a/config/locales/en.yml b/config/locales/en.yml index 5b34af84a..3bd2b499c 100644 --- a/config/locales/en.yml +++ b/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." 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: email: