Skip to content

Commit 10674c5

Browse files
DDCE-7722: welsh content update (#319)
* DDCE-7722: welsh content update * DDCE-7722: welsh content update
1 parent dce7801 commit 10674c5

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

app/views/exclusion/NinoExclusionSearchForm.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
@excludedEmployeesLink = {<a class="govuk-link" href="@routes.ExclusionListController.performPageLoad(isCurrentTaxYear, iabdType)">}
3737
@benefitLabel = @{ messages("BenefitInKind.label." + iabdType.id) }
3838

39-
@govukLayoutWrapper(PageTitle(messages("ExclusionSearch.form.title"), searchForm.hasErrors)) {
39+
@govukLayoutWrapper(PageTitle(messages(if(config.mpbikToggle) "ExclusionSearchMPBIK.form.title" else "ExclusionSearch.form.title"), searchForm.hasErrors)) {
4040

4141
@if(searchForm.hasErrors){
4242
<div class="govuk-error-summary" role="group" aria-labelledby="error-summary-heading-1" tabindex="-1">
@@ -82,7 +82,7 @@ <h2 class="govuk-error-summary__title" id="error-summary-heading-1">
8282
} else{
8383
<span class="govuk-caption-l">@messages("ExclusionSearchMPBIK.form.current.tax.year", ""+taxYearRange.cy, ""+taxYearRange.cyplus1)</span>
8484
}
85-
<h1 id="title" class="govuk-heading-l">@messages("ExclusionSearch.form.headerMPBIK", ""+benefitLabel)</h1>
85+
<h1 id="title" class="govuk-heading-l">@messages("ExclusionSearchMPBIK.form.header", ""+benefitLabel)</h1>
8686
}else{
8787
<span class="govuk-caption-l">@benefitLabel</span>
8888
<h1 id="title" class="govuk-fieldset__heading">@messages("ExclusionSearch.form.header")</h1>

conf/messages

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ ExclusionSearch.form.header = Search for the employee you want to exclude
266266
ExclusionSearch.caption = Employee to be excluded
267267
ExclusionSearch.payroll.date = 6 April {0}
268268

269-
ExclusionSearch.form.headerMPBIK = Search for the employee you want to exclude from {0}
269+
ExclusionSearchMPBIK.form.title = Search for the employee to exclude
270+
ExclusionSearchMPBIK.form.header = Search for the employee to exclude from {0}
270271

271272
ExclusionSearch.Fail.Desc = This employee can’t be found.
272273
ExclusionSearch.Fail.Exists.Desc = This employee has already been excluded for {0}. You can see them in your {1}excluded employee list{2}.

conf/messages.cy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ ExclusionSearch.form.header = Chwiliwch am y cyflogai rydych am ei eithrio
266266
ExclusionSearch.caption = Cyflogai i’w eithrio
267267
ExclusionSearch.payroll.date = 6 Ebrill {0}
268268

269-
ExclusionSearch.form.headerMPBIK = Chwiliwch am y cyflogai rydych am ei eithrio o {0}
269+
ExclusionSearchMPBIK.form.title = Chwilio am y cyflogai i’w eithrio
270+
ExclusionSearchMPBIK.form.header = Chwilio am y cyflogai i’w eithrio o {0}
270271

271272
ExclusionSearch.Fail.Desc = Nid oedd modd dod o hyd i’r cyflogai hwn
272273
ExclusionSearch.Fail.Exists.Desc = Mae’r cyflogai hwn eisoes wedi’i eithrio ar gyfer {0}. Gallwch ei weld yn eich {1}rhestr o gyflogeion sydd wedi’u heithrio{2}.

test/views/exclusion/NinoExclusionSearchViewSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class NinoExclusionSearchViewSpec extends PBIKViewSpec {
4545

4646
behave like pageWithTitle(messages("ExclusionSearch.form.title"))
4747
if (april2026MpbikToggle)
48-
behave like pageWithHeader(messages("ExclusionSearch.form.headerMPBIK", "" + iabdTypeMileage))
48+
behave like pageWithHeader(messages("ExclusionSearchMPBIK.form.header", "" + iabdTypeMileage))
4949
else
5050
behave like pageWithHeader(messages("ExclusionSearch.form.header"))
5151
behave like pageWithContinueButtonForm(s"/payrollbik/cyp1/${iabdType.id}/nino/search-for-employee", "Continue")
@@ -130,7 +130,7 @@ class NinoExclusionSearchViewSpec extends PBIKViewSpec {
130130

131131
behave like pageWithTitle(messages("ExclusionSearch.form.title"))
132132
if (april2026MpbikToggle)
133-
behave like pageWithHeader(messages("ExclusionSearch.form.headerMPBIK", "" + iabdTypeMileage))
133+
behave like pageWithHeader(messages("ExclusionSearchMPBIK.form.header", "" + iabdTypeMileage))
134134
else
135135
behave like pageWithHeader(messages("ExclusionSearch.form.header"))
136136
behave like pageWithContinueButtonForm(s"/payrollbik/cyp1/${iabdType.id}/nino/search-for-employee", "Continue")

0 commit comments

Comments
 (0)