Bugzilla – Attachment 124089 Details for
Bug 28898
Context for translation: term (word) vs. term (semester)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28898: Context for translation: term (word) vs. term (semester)
Bug-28898-Context-for-translation-term-word-vs-ter.patch (text/plain), 5.66 KB, created by
Caroline Cyr La Rose
on 2021-08-25 20:23:54 UTC
(
hide
)
Description:
Bug 28898: Context for translation: term (word) vs. term (semester)
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2021-08-25 20:23:54 UTC
Size:
5.66 KB
patch
obsolete
>From c21bcd4f8f4e2a915cc072e3ffddd8ec4ec03edb Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >Date: Wed, 25 Aug 2021 16:23:02 -0400 >Subject: [PATCH] Bug 28898: Context for translation: term (word) vs. term > (semester) > >This patch add context to the term Term in the context of course reserves. > >To test: >0- Apply patch >Set up course reserves >1- Enable UseCourseReserves >2- Create at least one authorized value for DEPARTMENT >3- Create at least one authorized value for TERM >4- Create a course >5- Add at least one item to the course > >Check the terms: >6- Go to the OPAC >7- Go to Course reserves >** 8- In the list of courses, check the Term column heading >9- Go to the staff interface >10- Go to Course reserves >** 11- In the list of courses, check the Term column heading >12- Click on the course name >** 13- Check the Term line in the course description > >Add a new language (fr-CA in the example, change for whatever language code you want) >14- In a terminal, run >gulp po:create --lang fr-CA >15- Then, run >gulp po:update --lang fr-CA >16- In system preferences, enable the new language in language and OpacLanguages >17- Switch the language in staff interface and OPAC > >Change the translations >18- In your favourite text editor, open fr-CA-messages.po >19- Find the string 'msgctxt Semester' >20- Enter a word in msgstr >21- Save the file >22- In a terminal, go to misc/translator >23- Run >./translate install fr-CA > >Check the translations >24- Redo the steps to check the terms (6-16) and make sure the terms in steps 8, 11, and 13 are changed for the word you put in step 20. >25- Optionally, check the following pages to make sure the terms are not the word you put in step 20 (these pages shouldn't have been changed) >- opac-tags (your account > your tags) >- opac-authorities (search for an authority in Authority search) >- review (tags in staff interface) >--- > .../prog/en/modules/course_reserves/course-details.tt | 4 +++- > .../prog/en/modules/course_reserves/course-reserves.tt | 4 +++- > .../opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt | 4 +++- > 3 files changed, 9 insertions(+), 3 deletions(-) > >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 12efce92bb..06515a6373 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 >@@ -4,6 +4,8 @@ > [% USE ItemTypes %] > [% USE Branches %] > [% USE TablesSettings %] >+[%# USE the plugin and define some macros %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Course details for [% course.course_name | html %] › Course reserves › Koha</title> >@@ -65,7 +67,7 @@ > <div class="rows"> > <ol> > <li><span class="label">Course name</span> [% course.course_name | html %]</li> >- <li><span class="label">Term</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) | html %]</li> >+ <li><span class="label">[% tp('Semester', 'Term') | html %]</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) | html %]</li> > <li><span class="label">Department</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) | html %]</li> > <li><span class="label">Course number</span> [% course.course_number | html %]</li> > <li><span class="label">Section</span> [% course.section | html %]</li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt >index d2fcd6b476..43a1103449 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt >@@ -3,6 +3,8 @@ > [% USE AuthorisedValues %] > [% USE TablesSettings %] > [% SET footerjs = 1 %] >+[%# USE the plugin and define some macros %] >+[% PROCESS 'i18n.inc' %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Course reserves › Koha</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -48,7 +50,7 @@ > <th>Dept.</th> > <th>Course #</th> > <th>Section</th> >- <th>Term</th> >+ <th>[% tp('Semester', 'Term') | html %]</th> > <th>Instructors</th> > <th>Staff note</th> > <th>Public note</th> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt >index 7a6bf7ad9f..9ada53ca80 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt >@@ -3,6 +3,8 @@ > [% USE Koha %] > [% USE AuthorisedValues %] > [% USE TablesSettings %] >+[%# USE the plugin and define some macros %] >+[% PROCESS 'i18n.inc' %] > > [% INCLUDE 'doc-head-open.inc' %] > <title>Courses › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title> >@@ -41,7 +43,7 @@ > <th>Dept.</th> > <th>Course #</th> > <th>Section</th> >- <th>Term</th> >+ <th>[% tp('Semester', 'Term') | html %]</th> > <th>Instructors</th> > <th>Notes</th> > </tr> >-- >2.17.1
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 28898
:
124089
|
124212
|
124213
|
124214
|
124438
|
124439
|
124440
|
124741
|
124742
|
124743