Bugzilla – Attachment 186986 Details for
Bug 40866
Weird and untranslatable message appears every time something is checked out
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40866: Make message translatable
Bug-40866-Make-message-translatable.patch (text/plain), 1.15 KB, created by
Paul Derscheid
on 2025-09-26 16:08:32 UTC
(
hide
)
Description:
Bug 40866: Make message translatable
Filename:
MIME Type:
Creator:
Paul Derscheid
Created:
2025-09-26 16:08:32 UTC
Size:
1.15 KB
patch
obsolete
>From 2a7505a7f955bbfd5d634a1149301e5bacf38273 Mon Sep 17 00:00:00 2001 >From: Paul Derscheid <paul.derscheid@lmscloud.de> >Date: Fri, 26 Sep 2025 15:34:29 +0000 >Subject: [PATCH] Bug 40866: Make message translatable > >--- > circ/circulation.pl | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 1c67cca81ae..4d37cf4f716 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -58,6 +58,7 @@ use Koha::SearchEngine; > use Koha::SearchEngine::Search; > use Koha::Patron::Modifications; > use Koha::Token; >+use Koha::I18N qw(__); > > use List::MoreUtils qw( uniq ); > >@@ -571,8 +572,8 @@ if ( @$barcodes && $op eq 'cud-checkout' ) { > my $branchcode = C4::Context->userenv->{branch}; > > if ($issueconfirmed) { >- $message = "Restriction overridden temporarily"; >- @message = ("Restriction overridden temporarily"); >+ $message = __("Restriction overridden temporarily"); >+ @message = ( __("Restriction overridden temporarily") ); > > my $infos = ( > { >-- >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 40866
:
186985
|
186986
|
187063
|
187116