Skip to content

Commit

Permalink
Move translations into form specific yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMacPherson committed Jan 22, 2025
1 parent b9376be commit 59ede36
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 31 deletions.
6 changes: 0 additions & 6 deletions config/locales/activerecord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -643,12 +643,6 @@ en:
blank: Enter the year the course or training was awarded
course_length:
blank: Enter the length of the course
jobseekers/professional_body_membership_form:
attributes:
name:
blank: Enter the name of the professional body.
exam_taken:
inclusion: Select yes if your professional body membership required you to take an exam.
jobseekers/account_transfer_form:
attributes:
email:
Expand Down
11 changes: 0 additions & 11 deletions config/locales/forms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -498,15 +498,6 @@ en:
year_awarded: Date completed
year_completed_hint: For example, 1998
course_length: Course length
jobseekers_professional_body_membership_form:
name: Name of professional body
membership_type: Membership type or level (optional)
membership_number: Membership or registration number (optional)
date_membership_obtained: Date obtained (optional)
exam_taken: Did you take an exam for this membership?
exam_taken_options:
"true": "Yes"
"false": "No"
personal_details_form:
email: Email
change_email_html: Select to %{link}
Expand Down Expand Up @@ -866,8 +857,6 @@ en:
jobseekers_profile_qualified_teacher_status_form:
qualified_teacher_status: Do you have qualified teacher status (QTS)?
has_teacher_reference_number: Do you have a teacher reference number (TRN)?
jobseekers_professional_body_membership_form:
exam_taken: Did you take an exam for this membership?
jobseekers_profile_employment_form:
current_role: Are you still working in this role?
ended_on: End date
Expand Down
14 changes: 0 additions & 14 deletions config/locales/jobseekers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -794,20 +794,6 @@ en:
description: Include any training you've completed within the last 3 years.
destroy:
success: Training deleted
professional_body_memberships:
destroy:
success: Professional body membership deleted
new:
page_title: Professional body membership
heading: Add professional body membership
edit:
page_title: Professional body membership
heading: Edit professional body membership
review:
page_title: Professional body membership
confirm_destroy:
caption: Delete professional body membership
heading: Confirm that you want to delete this professional body membership
qualifications:
confirm_destroy:
secondary:
Expand Down
40 changes: 40 additions & 0 deletions config/locales/jobseekers/professional_body_membership_form.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
en:
activemodel:
errors:
models:
jobseekers/professional_body_membership_form:
attributes:
name:
blank: Enter the name of the professional body.
exam_taken:
inclusion: Select yes if your professional body membership required you to take an exam.
helpers:
label:
jobseekers_professional_body_membership_form:
name: Name of professional body
membership_type: Membership type or level (optional)
membership_number: Membership or registration number (optional)
date_membership_obtained: Date obtained (optional)
exam_taken: Did you take an exam for this membership?
exam_taken_options:
"true": "Yes"
"false": "No"
legend:
jobseekers_professional_body_membership_form:
exam_taken: Did you take an exam for this membership?
jobseekers:
profiles:
professional_body_memberships:
destroy:
success: Professional body membership deleted
new:
page_title: Professional body membership
heading: Add professional body membership
edit:
page_title: Professional body membership
heading: Edit professional body membership
review:
page_title: Professional body membership
confirm_destroy:
caption: Delete professional body membership
heading: Confirm that you want to delete this professional body membership

0 comments on commit 59ede36

Please sign in to comment.