From 7092c5cd5b74f5191137359a07f58498311d650f Mon Sep 17 00:00:00 2001 From: samyou-softwire Date: Thu, 30 Apr 2026 15:09:30 +0100 Subject: [PATCH] CLDC-4328: Use a specific error message per year/log type --- config/locales/validations/lettings/2025/bulk_upload.en.yml | 2 +- config/locales/validations/lettings/2026/bulk_upload.en.yml | 2 +- config/locales/validations/sales/2025/bulk_upload.en.yml | 2 +- config/locales/validations/sales/2026/bulk_upload.en.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/locales/validations/lettings/2025/bulk_upload.en.yml b/config/locales/validations/lettings/2025/bulk_upload.en.yml index 886b8ac55..e7d6fe6f1 100644 --- a/config/locales/validations/lettings/2025/bulk_upload.en.yml +++ b/config/locales/validations/lettings/2025/bulk_upload.en.yml @@ -12,7 +12,7 @@ en: wrong_template: wrong_template: "Incorrect start dates, please ensure you have used the correct template." no_headers: "Your file does not contain the required header rows. Add or check the header rows and upload your file again. [Read more about using the template headers](%{guidance_link})." - wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for the correct type (lettings or sales) and year." + wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for lettings 2025." over_max_column_count: "Too many columns, please ensure you have used the correct template." owning_organisation: not_found: "The owning organisation code is incorrect." diff --git a/config/locales/validations/lettings/2026/bulk_upload.en.yml b/config/locales/validations/lettings/2026/bulk_upload.en.yml index e79d84715..1206b7ad6 100644 --- a/config/locales/validations/lettings/2026/bulk_upload.en.yml +++ b/config/locales/validations/lettings/2026/bulk_upload.en.yml @@ -12,7 +12,7 @@ en: wrong_template: wrong_template: "Incorrect start dates, please ensure you have used the correct template." no_headers: "Your file does not contain the required header rows. Add or check the header rows and upload your file again. [Read more about using the template headers](%{guidance_link})." - wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for the correct type (lettings or sales) and year." + wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for lettings 2026." over_max_column_count: "Too many columns, please ensure you have used the correct template." owning_organisation: not_found: "The owning organisation code is incorrect." diff --git a/config/locales/validations/sales/2025/bulk_upload.en.yml b/config/locales/validations/sales/2025/bulk_upload.en.yml index 418282081..49c5e1bc1 100644 --- a/config/locales/validations/sales/2025/bulk_upload.en.yml +++ b/config/locales/validations/sales/2025/bulk_upload.en.yml @@ -11,7 +11,7 @@ en: wrong_template: over_max_column_count: "Too many columns, please ensure you have used the correct template." no_headers: "Your file does not contain the required header rows. Add or check the header rows and upload your file again. [Read more about using the template headers](%{guidance_link})." - wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for the correct type (lettings or sales) and year." + wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for sales 2025." wrong_template: "Incorrect sale dates, please ensure you have used the correct template." numeric: within_range: "%{field} must be between %{min} and %{max}." diff --git a/config/locales/validations/sales/2026/bulk_upload.en.yml b/config/locales/validations/sales/2026/bulk_upload.en.yml index 7ca5bba19..6e3dc6a94 100644 --- a/config/locales/validations/sales/2026/bulk_upload.en.yml +++ b/config/locales/validations/sales/2026/bulk_upload.en.yml @@ -11,7 +11,7 @@ en: wrong_template: over_max_column_count: "Too many columns, please ensure you have used the correct template." no_headers: "Your file does not contain the required header rows. Add or check the header rows and upload your file again. [Read more about using the template headers](%{guidance_link})." - wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for the correct type (lettings or sales) and year." + wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for sales 2026." wrong_template: "Incorrect sale dates, please ensure you have used the correct template." numeric: within_range: "%{field} must be between %{min} and %{max}."