Bugzilla – Attachment 177591 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.46 KB, created by
Caroline Cyr La Rose
on 2025-02-06 19:21:49 UTC
(
hide
)
Description:
Bug 39045: Add translation context to course status (active/inactive)
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2025-02-06 19:21:49 UTC
Size:
2.46 KB
patch
obsolete
>From 11d2ab1bd2369ea05e02b253f3923ef5654e4b7a 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 >--- > .../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 b4c3abe6d4..ca179f37cb 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 >@@ -104,7 +104,7 @@ > <li><span class="label">Staff note</span> [% course.staff_note | html %]</li> > <li><span class="label">Public note</span> [% course.public_note | $raw %]</li> > <li><span class="label">Student count</span> [% course.students_count | 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', 'Inactive') | html %][% END %]</li> > </ol> > </fieldset> > </div> <!-- /.page-section --> >-- >2.43.0
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