Bug 38684: Fix problem with koha-translate

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2025-01-01 21:24:43 +01:00 committed by Katrin Fischer
parent 5d59ec0baa
commit 3c1a4a2ffb
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -130,12 +130,12 @@
[% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
[% IF ( count ) %]
<li data-bs-toggle="tooltip" data-bs-placement="left" title="[%- I18N.tnx("There is an item attached to this record", "There are {count} items attached to this record", count, { count => count }) -%]. You must delete all items before deleting this record">
<li data-bs-toggle="tooltip" data-bs-placement="left" title="[%- I18N.tnx('There is an item attached to this record. You must delete all items before deleting this record', 'There are {count} items attached to this record. You must delete all items before deleting this record', count, { count => count }) -%]">
<a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a>
</li>
[% ELSIF ( biblio.subscriptions.count ) %]
[%- SET subscriptions_count = biblio.subscriptions.count -%]
<li data-bs-toggle="tooltip" data-bs-placement="left" title="[%- I18N.tnx("There is a subscription attached to this record", "There are {count} subscriptions attached to this record", subscriptions_count, { count => subscriptions_count }) -%]. You must delete all subscriptions before deleting this record">
<li data-bs-toggle="tooltip" data-bs-placement="left" title="[%- I18N.tnx('There is a subscription attached to this record. You must delete all subscriptions before deleting this record', 'There are {subscriptions_count} subscriptions attached to this record. You must delete all subscriptions before deleting this record', subscriptions_count, { subscriptions_count => subscriptions_count }) -%]">
<a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a>
</li>
[% ELSE %]