From b0342302a0d70dbad25c0f2c2970a0957ec34bf2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 5 Sep 2023 17:06:51 +0000 Subject: [PATCH] Bug 34380: Fix inconsistencies in Item types page titles, breadcrumbs, and header MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch fixes inconsistencies in the item type administration page so that page titles, breadcrumb navigation, and page headers are consistent with each other and with other pages in Koha. To test, apply the patch and go to Administration -> Item types. Check each variation of the page to confirm that everything looks correct: - Item types list - New item type - Edit item type - Confirm deletion of item type Signed-off-by: Émily-Rose Francoeur Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/admin/itemtypes.tt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 b59fe3e45a..5a093affbe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -13,14 +13,14 @@ [% IF ( itemtype ) %] [% tx("Modify item type '{item_type}'", { item_type = itemtype.itemtype }) | html %] [% ELSE %] - [% t("Add item type") | html %] + [% t("New item type") | html %] [% END %] › [% END %] [% IF op == 'delete_confirm' %] [% IF ( total ) %] [% tx("Cannot delete item type '{item_type}'", { item_type = itemtype.itemtype }) | html %] [% ELSE %] - [% tx("Delete item type '{item_type}'?", { item_type = itemtype.itemtype }) | html %] + [% tx("Confirm deletion of item type '{item_type}'?", { item_type = itemtype.itemtype }) | html %] [% END %] › [% END %] [% IF op == 'delete_confirmed' %] @@ -72,11 +72,11 @@ [% IF op == 'add_form' %] [% IF itemtype %] [% WRAPPER breadcrumb_item bc_active= 1 %] - Modify item type '[% itemtype.itemtype | html %]' + [% tx("Modify item type '{item_type}'", { item_type = itemtype.itemtype }) | html %] [% END %] [% ELSE %] [% WRAPPER breadcrumb_item bc_active= 1 %] - Add item type + New item type [% END %] [% END %] [% END %] @@ -84,11 +84,11 @@ [% IF op == 'delete_confirm' %] [% IF total %] [% WRAPPER breadcrumb_item bc_active= 1 %] - Cannot delete item type '[% itemtype.itemtype | html %]' + [% tx("Cannot delete item type '{item_type}'", { item_type = itemtype.itemtype }) | html %] [% END %] [% ELSE %] [% WRAPPER breadcrumb_item bc_active= 1 %] - Delete item type '[% itemtype.itemtype | html %]'? + [% tx("Confirm deletion of item type '{item_type}'?", { item_type = itemtype.itemtype }) | html %] [% END %] [% END %] [% END %] @@ -144,9 +144,9 @@ [% IF op == 'add_form' %] [% IF itemtype %] -

Modify item type

+

[% tx("Modify item type '{item_type}'", { item_type = itemtype.itemtype }) | html %]

[% ELSE %] -

Add item type

+

New item type

[% END %]
@@ -354,7 +354,7 @@ [% IF op == 'delete_confirm' %]
-

Delete item type '[% itemtype.itemtype | html %]'?

+

[% tx("Are you sure you want to delete item type '{item_type}'?", { item_type = itemtype.itemtype }) | html %]

-- 2.39.5
Item type