From 92f5aead92f1ef1c6af30682779d7c7f3e95a8aa Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 16 Oct 2018 11:51:40 -0300 Subject: [PATCH] Bug 21571: Make ACCTDETAILS translatable This patch makes the notice "ACCTDETAILS" translatable. Test plan: 1. Switch on TranslateNotices and AutoEmailOpacUser 2. Define templates for different languages for ACCTDETAILS 3. Create a new patron, define an email address, userid and password. Also pick a different "preferred language" then the default value 4. You should receive the email with the correct, translated, email. Signed-off-by: Hugo Agud Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens (cherry picked from commit a200aafd3b181b736dc288e208730a50372fbfd8) Signed-off-by: Martin Renvoize (cherry picked from commit ddfa48bf7029216051da386d211bbd4327a7453b) Signed-off-by: Lucas Gass (cherry picked from commit 3d3a3bbe92926f61f3b93e6f0bd7e4f6742083fc) Signed-off-by: Fridolin Somers --- C4/Letters.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Letters.pm b/C4/Letters.pm index 49355882ad..3eacdbecdf 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -626,6 +626,7 @@ sub SendAlerts { module => 'members', letter_code => $letter_code, branchcode => $externalid->{'branchcode'}, + lang => $externalid->{lang} || 'default', tables => { 'branches' => $library, 'borrowers' => $externalid->{'borrowernumber'}, -- 2.39.5