Browse Source

Extract text to translation file

pull/981/head
Kat 4 years ago
parent
commit
36ee81ad74
  1. 6
      app/views/locations/toggle_active.html.erb
  2. 2
      app/views/locations/toggle_active_confirm.html.erb
  3. 9
      config/locales/en.yml

6
app/views/locations/toggle_active.html.erb

@ -14,10 +14,10 @@
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<%= f.govuk_error_summary %> <%= f.govuk_error_summary %>
<%= f.govuk_radio_buttons_fieldset :deactivation_date, <%= f.govuk_radio_buttons_fieldset :deactivation_date,
legend: { text: "When should this change apply?"}, legend: { text: I18n.t("questions.location.deactivation.apply_from")},
caption: { text: "Deactivate #{@location.postcode}"}, caption: { text: "Deactivate #{@location.postcode}"},
hint: { text: "If the date is before 5 April 2022, select ‘From the start of the current collection period’ because the previous period has now closed."} do %> hint: { text: I18n.t("hints.location.deactivation")} do %>
<%= govuk_warning_text text: "It will not be possible to add logs with this scheme if their tenancy start date is on or after the date you enter. Any existing logs may be affected." %> <%= govuk_warning_text text: I18n.t("warnings.location.deactivation.existing_logs") %>
<%= f.govuk_radio_button :deactivation_date, <%= f.govuk_radio_button :deactivation_date,
Time.now(), Time.now(),
label: { text: "From the start of the current collection period (5 April 2022)" } %> label: { text: "From the start of the current collection period (5 April 2022)" } %>

2
app/views/locations/toggle_active_confirm.html.erb

@ -6,7 +6,7 @@
<span class="govuk-caption-l"><%= @scheme.service_name %></span> <span class="govuk-caption-l"><%= @scheme.service_name %></span>
<%= "This change will affect SOME logs" %> <%= "This change will affect SOME logs" %>
</h1> </h1>
<%= govuk_warning_text text: "Your data providers will need to review these logs and answer a few questions again. We’ll email each log creator with a list of logs that need updating." %> <%= govuk_warning_text text: I18n.t("warnings.location.deactivation.review_logs") %>
<%= f.hidden_field :confirm, :value => true %> <%= f.hidden_field :confirm, :value => true %>
<%= f.hidden_field :deactivation_date, :value => deactivation_date %> <%= f.hidden_field :deactivation_date, :value => deactivation_date %>
<div class="govuk-button-group"> <div class="govuk-button-group">

9
config/locales/en.yml

@ -368,6 +368,8 @@ en:
startdate: "When did the first property in this location become available under this scheme? (optional)" startdate: "When did the first property in this location become available under this scheme? (optional)"
add_another_location: "Do you want to add another location?" add_another_location: "Do you want to add another location?"
mobility_type: "What are the mobility standards for the majority of units in this location?" mobility_type: "What are the mobility standards for the majority of units in this location?"
deactivation:
apply_from: "When should this change apply?"
descriptions: descriptions:
location: location:
mobility_type: mobility_type:
@ -380,6 +382,13 @@ en:
postcode: "For example, SW1P 4DF." postcode: "For example, SW1P 4DF."
name: "This is how you refer to this location within your organisation" name: "This is how you refer to this location within your organisation"
units: "A unit can be a bedroom in a shared house or flat, or a house with 4 bedrooms. Do not include bedrooms used for wardens, managers, volunteers or sleep-in staff." units: "A unit can be a bedroom in a shared house or flat, or a house with 4 bedrooms. Do not include bedrooms used for wardens, managers, volunteers or sleep-in staff."
deactivation: "If the date is before 5 April 2022, select ‘From the start of the current collection period’ because the previous period has now closed."
warnings:
location:
deactivation:
existing_logs: "It will not be possible to add logs with this scheme if their tenancy start date is on or after the date you enter. Any existing logs may be affected."
review_logs: "Your data providers will need to review these logs and answer a few questions again. We’ll email each log creator with a list of logs that need updating."
test: test:
one_argument: "This is based on the tenant’s work situation: %{ecstat1}" one_argument: "This is based on the tenant’s work situation: %{ecstat1}"

Loading…
Cancel
Save