Bugzilla – Attachment 154897 Details for
Bug 33914
Improve translation of title tags: Course reserves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33914: Improve translation of title tags: Course reserves
Bug-33914-Improve-translation-of-title-tags-Course.patch (text/plain), 8.30 KB, created by
David Nind
on 2023-08-29 10:12:02 UTC
(
hide
)
Description:
Bug 33914: Improve translation of title tags: Course reserves
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-08-29 10:12:02 UTC
Size:
8.30 KB
patch
obsolete
>From 9bcfb619d520ba75f9055dff7a8b76f270232c6d Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 6 Jun 2023 15:15:11 +0000 >Subject: [PATCH] Bug 33914: Improve translation of title tags: Course reserves > >This patch updates course reserves templates so that title >tags can be more easily translated. > >To test you should have the UseCourseReserves system preference enabled. >Apply the patch and confirm that the following course reserves >pages have the correct title tags: > >- Course reserves >- New course >- Course details >- Edit course >- Add reserves (step 1 and 2) >- Batch add reserves (step 1 and 2) >- Batch remove reserves >- Invalid course (/cgi-bin/koha/course_reserves/course-details.pl?course_id=) > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../en/modules/course_reserves/add_items-step1.tt | 8 +++++++- > .../en/modules/course_reserves/add_items-step2.tt | 13 +++++++++++-- > .../en/modules/course_reserves/batch_add_items.tt | 9 +++++++-- > .../en/modules/course_reserves/batch_rm_items.tt | 7 ++++++- > .../en/modules/course_reserves/course-details.tt | 6 +++++- > .../en/modules/course_reserves/course-reserves.tt | 7 +++++-- > .../prog/en/modules/course_reserves/course.tt | 10 +++++++++- > .../en/modules/course_reserves/invalid-course.tt | 7 ++++++- > 8 files changed, 56 insertions(+), 11 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt >index 751c89ac1c..4be78f6873 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt >@@ -1,7 +1,13 @@ > [% USE raw %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Add reserves › [% course.course_name | html %] › Course reserves › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Add reserves") | html %] › >+ [% course.course_name | html %] › >+ [% t("Course reserves") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > <body id="courses_add_items_step1" class="course"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt >index ba14d8f2d9..284fd5acd6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt >@@ -1,10 +1,19 @@ > [% USE raw %] > [% USE HtmlTags %] > [% USE Branches %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-[% PROCESS 'i18n.inc' %] >-<title>[% IF is_edit || course_reserve %]Edit reserve[% ELSE %]Add reserves[% END %] › [% course.course_name | html %] › Course reserves › Koha</title> >+<title>[% FILTER collapse %] >+ [% IF is_edit || course_reserve %] >+ [% t("Edit reserve") | html %] >+ [% ELSE %] >+ [% t("Add reserves") | html %] >+ [% END %] › >+ [% course.course_name | html %] › >+ [% t("Course reserves") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt >index eb4e674a24..5527b8b76d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt >@@ -2,11 +2,16 @@ > [% USE AuthorisedValues %] > [% USE Branches %] > [% USE ItemTypes %] >- >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > > [% INCLUDE 'doc-head-open.inc' %] >-<title>Add reserves › [% course.course_name | html %] › Course reserves › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Add reserves") | html %] › >+ [% course.course_name | html %] › >+ [% t("Course reserves") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > <body id="courses_add_items_step1" class="course"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt >index 7f3f657a2a..b390d5e755 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt >@@ -1,8 +1,13 @@ >+[% USE raw %] > [% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > > [% INCLUDE 'doc-head-open.inc' %] >-<title>Remove reserves › Course reserves › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Remove reserves") | html %] › >+ [% t("Course reserves") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > <body id="courses_rm_items" class="course"> >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 591452fa63..12d5211632 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 >@@ -8,7 +8,11 @@ > [% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Course details for [% course.course_name | html %] › Course reserves › Koha</title> >+<title>[% FILTER collapse %] >+ [% tx("Course details for {course_name}", { course_name = course.course_name }) | html %] › >+ [% t("Course reserves") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > [% FILTER collapse %] > <style> >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 50f12bfeb6..28e6268281 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 >@@ -2,10 +2,13 @@ > [% USE Asset %] > [% USE AuthorisedValues %] > [% USE TablesSettings %] >-[% SET footerjs = 1 %] > [% PROCESS 'i18n.inc' %] >+[% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Course reserves › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Course reserves") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > > </head> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt >index 2a7cc6e946..b74f4b37a7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt >@@ -3,7 +3,15 @@ > [% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>[% IF course_name %] Edit [% course_name | html %] [% ELSE %] New course [% END %] › Course reserves › Koha</title> >+<title>[% FILTER collapse %] >+ [% IF ( course_name ) %] >+ [% tx("Edit {course_name}", { course_name = course_name }) | html %] >+ [% ELSE %] >+ [% t("New course") | html %] >+ [% END %] › >+ [% t("Course reserves") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > <style> > #course_instructors { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/invalid-course.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/invalid-course.tt >index e68cdd197a..036f858fc1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/invalid-course.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/invalid-course.tt >@@ -1,6 +1,11 @@ > [% USE raw %] >+[% PROCESS 'i18n.inc' %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Course reserves › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Invalid course") | html %] >+ [% t("Course reserves") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > <body id="courses_invalid_course" class="course"> > >-- >2.30.2
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 33914
:
152285
|
154897
|
155085