Bugzilla – Attachment 190142 Details for
Bug 41340
Better translatability on 'batch_item_record_modification.inc'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41340: Better translatability on 'batch_item_record_modification.inc'
Bug-41340-Better-translatability-on-batchitemrecor.patch (text/plain), 3.15 KB, created by
David Nind
on 2025-12-04 00:45:37 UTC
(
hide
)
Description:
Bug 41340: Better translatability on 'batch_item_record_modification.inc'
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-12-04 00:45:37 UTC
Size:
3.15 KB
patch
obsolete
>From 22cc4889a7a2cad14d7b6e6d92f943142bdc8341 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Tom=C3=A1s=20Cohen=20Arazi?= <tomascohen@theke.io> >Date: Mon, 1 Dec 2025 12:21:20 -0300 >Subject: [PATCH] Bug 41340: Better translatability on > 'batch_item_record_modification.inc' >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> >Signed-off-by: David Nind <david@davidnind.com> >--- > .../batch_item_record_modification.inc | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc >index 1ee3fd72cb..ba400992a2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc >@@ -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 %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41340
:
190053
|
190064
| 190142