[open-ils-commits] [GIT] Evergreen ILS branch master updated. eabce0ad8d57757d143d2e9d7e8d22f9480d45c9
Evergreen Git
git at git.evergreen-ils.org
Thu Sep 18 20:07:42 EDT 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via eabce0ad8d57757d143d2e9d7e8d22f9480d45c9 (commit)
from ba6a9a95d186c37e41b4a129ed14e68101710177 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit eabce0ad8d57757d143d2e9d7e8d22f9480d45c9
Author: Mike Rylander <mrylander at gmail.com>
Date: Thu Nov 14 13:36:25 2013 -0500
LP#1251347: Get the most recent session locale for Event description translation
Signed-off-by: Mike Rylander <mrylander at gmail.com>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Event.pm b/Open-ILS/src/perlmods/lib/OpenILS/Event.pm
index b147f84..3d578d3 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();
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/perlmods/lib/OpenILS/Event.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list