[open-ils-commits] [GIT] Evergreen ILS branch master updated. c21ad6192ea00305f5a293bf4917294bcf3213df

Evergreen Git git at git.evergreen-ils.org
Tue Mar 27 14:05:33 EDT 2012


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  c21ad6192ea00305f5a293bf4917294bcf3213df (commit)
      from  cf5074a904d84cabc869bfeda4000afd9047a59e (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 c21ad6192ea00305f5a293bf4917294bcf3213df
Author: Bill Erickson <berick at esilibrary.com>
Date:   Tue Mar 27 10:25:36 2012 -0400

    Template processor always falls back to en_us
    
    When no locales are registered and/or when a given locale is missing
    a translation, fall back to en_us as the default locale.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
index afc50dc..66fb47e 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
@@ -230,8 +230,8 @@ sub load_locale_handlers {
 
     my @locale_tags = sort { length($a) <=> length($b) } keys %locales;
 
-    # If no locales are defined, fall back to en_us so that at least 1 handler exists
-    push(@locale_tags, 'en_us') unless @registered_locales or @locale_tags;
+    # always fall back to en_us, the assumed template language
+    push(@locale_tags, 'en_us');
 
     for my $idx (0..$#locale_tags) {
 

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list