From eabce0ad8d57757d143d2e9d7e8d22f9480d45c9 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 14 Nov 2013 13:36:25 -0500 Subject: [PATCH] LP#1251347: Get the most recent session locale for Event description translation Signed-off-by: Mike Rylander Signed-off-by: Ben Shum --- Open-ILS/src/perlmods/lib/OpenILS/Event.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Event.pm b/Open-ILS/src/perlmods/lib/OpenILS/Event.pm index b147f84355..3d578d3854 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Event.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Event.pm @@ -4,6 +4,7 @@ use strict; use warnings; use XML::LibXML; use OpenSRF::Utils::SettingsClient; use OpenSRF::Utils::Logger; +use OpenSRF::AppSession; my $logger = "OpenSRF::Utils::Logger"; @@ -37,7 +38,8 @@ sub new { $fff ||= ""; $lll ||= ""; - my $lang = 'en-US'; # assume english for now + my $lang = OpenSRF::AppSession->default_locale; + $lang = 'en-US' if (!exists($$descs{$lang})); # just in case... my $t = CORE::localtime(); -- 2.11.0