Bugzilla – Attachment 155571 Details for
Bug 33924
Improve translation of title tags: Rotating collections
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33924: Improve translation of title tags: Rotating collections
Bug-33924-Improve-translation-of-title-tags-Rotati.patch (text/plain), 7.91 KB, created by
Salah Ghedda
on 2023-09-12 19:21:17 UTC
(
hide
)
Description:
Bug 33924: Improve translation of title tags: Rotating collections
Filename:
MIME Type:
Creator:
Salah Ghedda
Created:
2023-09-12 19:21:17 UTC
Size:
7.91 KB
patch
obsolete
>From 534f32505a10c03fb3de687ab68793422163bcad Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 6 Jun 2023 15:27:49 +0000 >Subject: [PATCH] Bug 33924: Improve translation of title tags: Rotating > collections > >This patch updates rotating collection templates so that title tags can >be more easily translated. > >The patch also makes some corrections to breadcrumb navigation and page >headers to make sure they are consistent with titles. > >To test, apply the patch and confirm that the following rotating >collection pages have the correct title tags: > >- Tools -> Rotating collections > - Rotating collections list > -> New collection > -> Edit collection > -> Delete collection -> Confirmation page > -> Transfer collection > >Signed-off-by: Salah Ghedda <salah.ghedda@inLibro.com> >--- > .../modules/rotating_collections/addItems.tt | 13 ++++++++--- > .../rotating_collections/editCollections.tt | 23 ++++++++++++------- > .../rotatingCollections.tt | 7 +++++- > .../transferCollection.tt | 13 ++++++++--- > 4 files changed, 41 insertions(+), 15 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt >index 01d9086ff1..a13bc572d0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt >@@ -1,8 +1,15 @@ > [% USE raw %] > [% USE Asset %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Add or remove items › Collection [% colTitle | html %] › Rotating collections › Tools › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Manage items") | html %] › >+ [% tx("Collection '{collection_title}'", { collection_title = colTitle }) | html %] › >+ [% t("Rotating collections") | html %] › >+ [% t("Tools") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >@@ -20,7 +27,7 @@ > <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> > [% END %] > [% WRAPPER breadcrumb_item %] >- <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]">Collection <em>[% colTitle | html %]</em></a> >+ <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]">[% tx("Collection '{collection_title}'", { collection_title = colTitle }) | html %]</a> > [% END %] > [% WRAPPER breadcrumb_item bc_active= 1 %] > <span>Manage items</span> >@@ -39,7 +46,7 @@ > </div> > [% ELSE %] > [% INCLUDE 'rotating-collections-toolbar.inc' %] >- <h1>Manage items for <em>[% colTitle | html %]</em></h1> >+ <h1>[% tx("Manage items for '{collection_title}'", { collection_title = colTitle }) | html %]</h1> > > [% IF ( previousActionAdd ) %] > [% IF ( addSuccess ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt >index 001558e1f6..bf4370550b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt >@@ -1,14 +1,21 @@ > [% USE raw %] > [% USE Asset %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title> >- [%- IF ( action == "new" ) %] >- Add a new collection >+<title>[% FILTER collapse %] >+ [% IF ( action == "new" ) %] >+ [% t("Add a new collection") | html %] >+ [% ELSIF ( action == "delete" ) %] >+ [% t("Collection deleted") | html %] > [% ELSE %] >- Edit collection [% editColTitle | html %] >- [% END -%] › Rotating collections › Tools › Koha >-</title> >+ [% t("Edit collection") | html %] › >+ [% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %] >+ [% END %] › >+ [% t("Rotating collections") | html %] › >+ [% t("Tools") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > <body id="rcoll_editCollections" class="tools rcoll"> >@@ -35,10 +42,10 @@ > [% END %] > [% ELSE %] > [% WRAPPER breadcrumb_item %] >- <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId | uri %]">Collection <em>[% editColTitle | html %]</em></a> >+ <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId | uri %]">[% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %]</em></a> > [% END %] > [% WRAPPER breadcrumb_item bc_active= 1 %] >- <span>Edit collection</span> >+ [% t("Edit collection") | html %] > [% END %] > [% END -%] > [% END #/ WRAPPER breadcrumbs %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt >index 2ed6ded2cc..1fadd9c4f5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt >@@ -1,9 +1,14 @@ > [% USE raw %] > [% USE Asset %] > [% USE Branches %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Rotating collections › Tools › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Rotating collections") | html %] › >+ [% t("Tools") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt >index 994604372e..fb54c8f80a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt >@@ -1,9 +1,16 @@ > [% USE raw %] > [% USE Asset %] > [% USE Branches %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Transfer collection › Rotating collections › Tools › Koha</title> >+<title>[% FILTER collapse %] >+ [% t("Transfer collection") | html %] › >+ [% tx("Collection '{collection_title}'", { collection_title = colTitle }) | html %] › >+ [% t("Rotating collections") | html %] › >+ [% t("Tools") | html %] › >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > <body id="rcoll_transferCollection" class="tools rcoll"> >@@ -20,7 +27,7 @@ > <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> > [% END %] > [% WRAPPER breadcrumb_item %] >- <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]">Collection <em>[% colTitle | html %]</em></a> >+ <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]">[% tx("Collection '{collection_title}'", { collection_title = colTitle }) | html %]</em></a> > [% END %] > [% WRAPPER breadcrumb_item bc_active= 1 %] > <span>Transfer collection</span> >@@ -33,7 +40,7 @@ > <div class="col-sm-10 col-sm-push-2"> > <main> > >- <h1>Transfer collection <em>[% colTitle | html %]</em></h1> >+ <h1>[% tx("Transfer collection '{collection_title}'", { collection_title = colTitle }) | html %]</h1> > > [% IF ( messages ) %] > [% FOREACH message IN messages %] >-- >2.34.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 33924
:
155226
|
155571
|
155850