From 4e196d703cee8982c6315ffae389da05f7780381 Mon Sep 17 00:00:00 2001 From: Dave G Date: Mon, 5 Aug 2024 13:42:13 -0400 Subject: [PATCH] clean up translations --- .../match_decisions/thirteen/thirteen_accept_referral.rb | 4 ++-- .../thirteen/thirteen_confirm_match_success.rb | 8 ++++---- app/models/match_routes/thirteen.rb | 4 ++-- app/models/translation.rb | 6 ++++++ 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/models/match_decisions/thirteen/thirteen_accept_referral.rb b/app/models/match_decisions/thirteen/thirteen_accept_referral.rb index a2c3ff1c7..73254dbd1 100644 --- a/app/models/match_decisions/thirteen/thirteen_accept_referral.rb +++ b/app/models/match_decisions/thirteen/thirteen_accept_referral.rb @@ -72,8 +72,8 @@ def initialize_decision! send_notifications: true private def ensure_required_contacts_present_on_accept missing_contacts = [] missing_contacts << "a #{Translation.translate('Shelter Agency Thirteen')} Contact" if save_will_accept? && match.shelter_agency_contacts.none? - missing_contacts << "a #{Translation.translate('SSP Thirteen')} Contact" if save_will_accept? && match.ssp_contacts.none? - missing_contacts << "a #{Translation.translate('HSP Thirteen')} Contact" if save_will_accept? && match.hsp_contacts.none? + missing_contacts << "a #{Translation.translate('Stabilization Service Providers Thirteen')} Contact" if save_will_accept? && match.ssp_contacts.none? + missing_contacts << "a #{Translation.translate('Housing Search Provider Thirteen')} Contact" if save_will_accept? && match.hsp_contacts.none? errors.add :match_contacts, "needs #{missing_contacts.to_sentence}" if missing_contacts.any? end diff --git a/app/models/match_decisions/thirteen/thirteen_confirm_match_success.rb b/app/models/match_decisions/thirteen/thirteen_confirm_match_success.rb index 8cb2ab996..737c9375f 100644 --- a/app/models/match_decisions/thirteen/thirteen_confirm_match_success.rb +++ b/app/models/match_decisions/thirteen/thirteen_confirm_match_success.rb @@ -28,9 +28,9 @@ def label def label_for_status status case status.to_sym - when :pending then "#{Translation.translate('DND')} to confirm match success" - when :confirmed then "#{Translation.translate('DND')} confirms match success" - when :rejected then "Match rejected by #{Translation.translate('DND')}" + when :pending then "#{Translation.translate('CoC Thirteen')} to confirm match success" + when :confirmed then "#{Translation.translate('CoC Thirteen')} confirms match success" + when :rejected then "Match rejected by #{Translation.translate('CoC Thirteen')}" when :canceled then 'Match canceled' when :back then backup_status_label end @@ -41,7 +41,7 @@ def step_name end def actor_type - Translation.translate('DND') + Translation.translate('CoC Thirteen') end def contact_actor_type diff --git a/app/models/match_routes/thirteen.rb b/app/models/match_routes/thirteen.rb index ada49842b..af51e63db 100644 --- a/app/models/match_routes/thirteen.rb +++ b/app/models/match_routes/thirteen.rb @@ -62,9 +62,9 @@ def contact_label_for(contact_type) when :housing_subsidy_admin_contacts Translation.translate('HSA Thirteen') when :ssp_contacts - Translation.translate('SSP Thirteen') + Translation.translate('Stabilization Service Providers Thirteen') when :hsp_contacts - Translation.translate('HSP Thirteen') + Translation.translate('Housing Search Provider Thirteen') when :dnd_staff_contacts Translation.translate('CoC Thirteen') else diff --git a/app/models/translation.rb b/app/models/translation.rb index cafded986..90d55a905 100644 --- a/app/models/translation.rb +++ b/app/models/translation.rb @@ -92,6 +92,7 @@ def self.known_translations 'CoC Six', 'CoC Eleven', 'CoC Twelve', + 'CoC Thirteen', 'Confirm Match Success', 'Confirm Match Success Six', 'Criminal Background Hearing', @@ -142,6 +143,7 @@ def self.known_translations 'Housing Search Provider Eight', 'Housing Search Provider Eleven', 'Housing Search Provider Nine', + 'Housing Search Provider Thirteen', 'Housing Search Providers', 'Housing Search Worker', 'housing subsidy administrator', @@ -157,6 +159,7 @@ def self.known_translations 'HSA Eight', 'HSA Eleven', 'HSA Twelve', + 'HSA Thirteen', 'HSA Complete Match', 'HSA Complete Match Six', 'HSA Nine', @@ -188,6 +191,7 @@ def self.known_translations 'Match Route Six', 'Match Route Ten', 'Match Route Twelve', + 'Match Route Thirteen', 'match shelter agency agreement modal', 'Match status update', 'Meth Production Conviction', @@ -243,6 +247,7 @@ def self.known_translations 'Shelter Agency Nine', 'Shelter Agency Six', 'Shelter Agency Twelve', + 'Shelter Agency Thirteen', 'shelter case manager', 'Should this tag be added to anyone with an assessment score?', 'SSP', @@ -254,6 +259,7 @@ def self.known_translations 'Stabilization Service Providers', 'Stabilization Services Provider', 'Stabilization Service Providers Eleven', + 'Stabilization Service Providers Thirteen', 'Staff Decline', 'Strengths', 'Submit Client Application',