From 1d05d53e82a0883182e7b4ed8ff3e61123970202 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 16 Jul 2025 13:28:46 +0000 Subject: [PATCH] Bug 40418: Update the item type translation process to avoid Greybox modal This patch updates the item type translation process so that it takes place on a separate standalone page instead of in a Greybox modal. Although currently only item types can be translated in this way, the original plan was to expand the range of data that could be translated. For this reason I used [% SWITCH %] in localization.tt for determining whether to use the term "item type." This accommodates, I hope, expansion of the feature. To test you must have more than one installed translation. - Apply the patch and go to Administration -> Item types. - Edit an item type. - On the "Description" line, click "Translate into other languages." - You should be redirected to a new page, "Add translations for item type 'XXX.' - Confirm that the page title, breadcrumbs, and heading are correct. - Test the process of adding and deleting a translation. - Test the process of performing an inline edit of an existing translation by clicking the table cell. - Test that the "Return to item type 'XXX'" button returns you to the item type you were editing. Sponsored-by: Athens County Public Libraries Signed-off-by: Caroline Cyr La Rose --- .../prog/en/modules/admin/itemtypes.tt | 5 +- .../prog/en/modules/admin/localization.tt | 213 ++++++++++-------- 2 files changed, 124 insertions(+), 94 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt index 0f7915e3657..f1dc5dc9f4a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -194,9 +194,7 @@ Required [% IF can_be_translated %] - Translate into other languages + Translate into other languages [% END %]
  • @@ -532,7 +530,6 @@ [% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] - [% INCLUDE 'greybox.inc' %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'select2.inc' %] [% END %] -[% INCLUDE 'popup-bottom.inc' %] +[% INCLUDE 'intranet-bottom.inc' %] -- 2.43.0