projects
/
evergreen
/
tadl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba6a9a9
)
LP#1251347: Get the most recent session locale for Event description translation
author
Mike Rylander
<mrylander@gmail.com>
Thu, 14 Nov 2013 18:36:25 +0000
(13:36 -0500)
committer
Ben Shum
<bshum@biblio.org>
Fri, 19 Sep 2014 00:07:05 +0000
(20:07 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Event.pm
patch
|
blob
|
history
diff --git
a/Open-ILS/src/perlmods/lib/OpenILS/Event.pm
b/Open-ILS/src/perlmods/lib/OpenILS/Event.pm
index
b147f84
..
3d578d3
100644
(file)
--- 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();