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:
parent
d4ee7bd5f0
commit
5060bde417
|
|
@ -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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue