From eb2988842aeedf282fb4f619da7ce1f720369dd8 Mon Sep 17 00:00:00 2001 From: Caroline Cyr La Rose Date: Thu, 6 Feb 2025 14:20:12 -0500 Subject: [PATCH] Bug 39045: Add translation context to course status (active/inactive) This patch adds translation context to 'Active' and 'Inactive' when used as the course status in course reserves. To test: 1. Go to Course reserves 2. Click 'New course' 3. Fill out the mandatory fields 4. Click 'Save' --> In the course details, there should be a field Status 'Active' 5. Click 'Edit course' 6. Uncheck 'Enabled?' 7. Click 'Save' --> In the course details, there should be a field Status 'Inactive' 8. Apply patch 9. Update translations ktd --shell gulp po:update --lang fr-CA 10. View the fr-CA-messages.po file --> There should be entries with 'Course status' in msgctxt 11. Optionally, translate the strings (remember to remove the fuzzy flag, if any) 12. Install new translations ktd --root --shell koha-translate --install fr-CA --dev kohadev koha-translate --update fr-CA --dev kohadev 13. Enable the new language in Administration > System preferences > StaffInterfaceLanguages 14. Repeat step 1-7 --> Translations should be whatever you put in the po file Signed-off-by: Owen Leonard --- .../prog/en/modules/course_reserves/course-details.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index 3ca71955fb2..3d6a93a4d9a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -130,7 +130,7 @@
  • Public note: [% course.public_note | scrub_html type => 'note' | $raw %]
  • [% END %]
  • Student count: [% course.students_count || "0" | html %]
  • -
  • Status: [% IF course.enabled == 'yes' %]Active[% ELSE %]Inactive[% END %]
  • +
  • Status [% IF course.enabled == 'yes' %][% tp('Course status', 'Active') | html %][% ELSE %][% tp('Course status', -- 2.39.5