if no locale config is present in oils_web, assume en_US exists and is valid
authorberick <berick@esilibrary.com>
Wed, 9 Feb 2011 17:29:26 +0000 (12:29 -0500)
committerberick <berick@esilibrary.com>
Wed, 9 Feb 2011 17:29:26 +0000 (12:29 -0500)
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm

index 8f19a07..807af47 100644 (file)
@@ -246,6 +246,8 @@ sub load_locale_handlers {
     my $ctx = shift;
     my $locales = $ctx->{locales};
 
+    $locales->{en_US} = {} unless exists $locales->{en_US};
+
     for my $lang (keys %$locales) {
         my $messages = $locales->{$lang};
         $messages = '' if ref $messages; # empty {}