Bug 41340: Better translatability on 'batch_item_record_modification.inc'

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Tomás Cohen Arazi 2025-12-01 12:21:20 -03:00 committed by Lucas Gass
parent d4ee7bd5f0
commit 5060bde417
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 9 additions and 3 deletions

View File

@ -1,11 +1,16 @@
[% USE Koha %]
[% PROCESS 'i18n.inc' %]
[% BLOCK report %]
[% SET report = job.report %]
[% IF report %]
<div class="alert alert-info">
[% IF report.modified_itemnumbers.size %]
<span>[% report.modified_itemnumbers.size | html %] item(s) modified (with [% report.modified_fields | html %] field(s) modified).</span>
[% SET modified_items_count = report.modified_itemnumbers.size %]
[% SET modified_fields_count = report.modified_fields %]
<span
>[% tnx( '{count} item modified', '{count} items modified', modified_items_count, { count = modified_items_count }) + ' (' + tnx( 'with {count} field modified', 'with {count} fields modified', modified_fields_count, { count = modified_fields_count }) + ').' | html %]</span
>
[% ELSE %]
<span>No items modified.</span>
[% END %]
@ -16,7 +21,8 @@
<div>
[% IF report.errors.size %]
<div class="alert alert-warning">
<span>[% report.errors.size | html %] item(s) could not be modified.</span>
[% SET error_items_count = report.errors.size %]
<span>[% tnx('{count} item could not be modified.', '{count} items could not be modified.', error_items_count, { count = error_items_count }) | html %]</span>
</div>
[% END %]
</div>
@ -41,7 +47,7 @@
[% END %]
[% IF too_many_items_display %]
<p>Too many items ([% report.modified_itemnumbers.size | html %]): You have edited more than [% Koha.Preference('MaxItemsToDisplayForBatchMod') | html %] items in a batch, items will not be shown.</p>
<p>[% tx('Too many items ({count}): You have edited more than {max} items in a batch, items will not be shown.', { count => report.modified_itemnumbers.size, max => Koha.Preference('MaxItemsToDisplayForBatchMod') }) | html %]</p>
[% ELSIF items.size %]
[% PROCESS items_table_batchmod headers => item_header_loop, items => items, display_columns_selection => 1 %]
[% END %]