Browse Source

Add missing question to translations

pull/2709/head
Kat 2 years ago
parent
commit
5759bbbafc
  1. 3
      app/models/form/sales/questions/prevshared.rb
  2. 6
      config/locales/forms/2023/sales/income_benefits_and_savings.en.yml

3
app/models/form/sales/questions/prevshared.rb

@ -2,11 +2,8 @@ class Form::Sales::Questions::Prevshared < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "prevshared" @id = "prevshared"
@check_answer_label = "Previous property shared ownership?"
@header = "Was the previous property under shared ownership?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "For any buyer"
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end end

6
config/locales/forms/2023/sales/income_benefits_and_savings.en.yml

@ -82,3 +82,9 @@ en:
check_answer_label: "Buyer previously owned a property." check_answer_label: "Buyer previously owned a property."
hint_text: "" hint_text: ""
question_text: "Has the buyer previously owned a property?" question_text: "Has the buyer previously owned a property?"
prevshared:
page_header: ""
check_answer_label: "Previous property shared ownership?"
hint_text: "For any buyer"
question_text: "Was the previous property under shared ownership?"
Loading…
Cancel
Save