From b297e4ee2450f0fff3ec0c43ca379c0f7179de27 Mon Sep 17 00:00:00 2001 From: lduranteau Date: Tue, 7 Jan 2025 15:05:56 +0000 Subject: [PATCH] fix lp-327 : name ending hint text --- locales/cy/translations.json | 3 ++- locales/en/translations.json | 3 ++- src/views/pages/name/options-with-or-without-welsh.njk | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/locales/cy/translations.json b/locales/cy/translations.json index 3f14e69..d4ba9d3 100644 --- a/locales/cy/translations.json +++ b/locales/cy/translations.json @@ -52,7 +52,8 @@ "sensitiveWordHint" : "WELSH - If the name includes sensitive words or expressions that require approval (opens in a new tab), you must get permission before you register.", "existingTrademarkHint" : "WELSH - You should also use the trade mark search (opens in a new tab) to check if your name matches an existing trade mark. If it does, consider choosing a different name. Companies House will not carry out this check for you.", "nameEnding" : "WELSH - Which limited partnership name ending would you prefer to go on the public record?", - "nameEndingHint" : "WELSH - There's no difference between the name endings Limited Partnership, LP and L.P. except how they look. Partneriaeth Cyfyngedig, PC, and P.C. can only be used if the partnership's principal place of business is in Wales.", + "nameEndingHint" : "WELSH - There's no difference between the name endings Limited Partnership, LP and L.P. except how they look.", + "nameEndingWelshHint" : "WELSH - There's no difference between the name endings Limited Partnership, LP and L.P. except how they look. Partneriaeth Cyfyngedig, PC, and P.C. can only be used if the partnership's principal place of business is in Wales.", "privateFund" : { "title" : "WELSH - Private fund limited partnership name", diff --git a/locales/en/translations.json b/locales/en/translations.json index 486ea29..0ab91d7 100644 --- a/locales/en/translations.json +++ b/locales/en/translations.json @@ -52,7 +52,8 @@ "sensitiveWordHint" : "If the name includes sensitive words or expressions that require approval (opens in a new tab), you must get permission before you register.", "existingTrademarkHint" : "You should also use the trade mark search (opens in a new tab) to check if your name matches an existing trade mark. If it does, consider choosing a different name. Companies House will not carry out this check for you.", "nameEnding" : "Which limited partnership name ending would you prefer to go on the public record?", - "nameEndingHint" : "There's no difference between the name endings Limited Partnership, LP and L.P. except how they look. Partneriaeth Cyfyngedig, PC, and P.C. can only be used if the partnership's principal place of business is in Wales.", + "nameEndingHint" : "There's no difference between the name endings Limited Partnership, LP and L.P. except how they look.", + "nameEndingWelshHint" : "There's no difference between the name endings Limited Partnership, LP and L.P. except how they look. Partneriaeth Cyfyngedig, PC, and P.C. can only be used if the partnership's principal place of business is in Wales.", "privateFund" : { "title" : "Private fund limited partnership name", diff --git a/src/views/pages/name/options-with-or-without-welsh.njk b/src/views/pages/name/options-with-or-without-welsh.njk index 0631611..7997f53 100644 --- a/src/views/pages/name/options-with-or-without-welsh.njk +++ b/src/views/pages/name/options-with-or-without-welsh.njk @@ -30,6 +30,8 @@ ] %} +{% set hint = i18n.namePage.nameEndingHint %} + {% if partnershipType == "LP" or partnershipType == "PFLP" %} {% set nameEndingOptionsList = (nameEndingOptionsList.push( { @@ -60,6 +62,8 @@ } } ), nameEndingOptionsList) %} + + {% set hint = i18n.namePage.nameEndingWelshHint %} {% endif %} {{ govukRadios({ @@ -75,7 +79,7 @@ } }, hint: { - text: i18n.namePage.nameEndingHint + text: hint }, items: nameEndingOptionsList }) }}