Bugzilla – Attachment 183710 Details for
Bug 39045
Add translation context for "Active" and "Inactive"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39045: Add translation context to course status (active/inactive)
Bug-39045-Add-translation-context-to-course-status.patch (text/plain), 2.40 KB, created by
Owen Leonard
on 2025-07-02 17:52:05 UTC
(
hide
)
Description:
Bug 39045: Add translation context to course status (active/inactive)
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-07-02 17:52:05 UTC
Size:
2.40 KB
patch
obsolete
>From eb2988842aeedf282fb4f619da7ce1f720369dd8 Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >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 <oleonard@myacpl.org> >--- > .../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 @@ > <li><span class="label">Public note: </span> [% course.public_note | scrub_html type => 'note' | $raw %]</li> > [% END %] > <li><span class="label">Student count: </span> [% course.students_count || "0" | html %]</li> >- <li><span class="label">Status: </span> [% IF course.enabled == 'yes' %]Active[% ELSE %]Inactive[% END %]</li> >+ <li><span class="label">Status</span> [% IF course.enabled == 'yes' %][% tp('Course status', 'Active') | html %][% ELSE %][% tp('Course status', > </ol> > </div> > </div> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39045
:
177559
|
177560
|
177561
|
177562
|
177590
|
177591
|
177593
|
177595
|
177596
|
177601
|
177711
|
178900
|
178901
|
178902
|
178903
|
178904
|
178905
|
178906
|
178907
|
178908
|
178909
|
183708
|
183709
| 183710 |
183711
|
183712
|
183713
|
183714
|
183715
|
183716