From 2883a774560b8ec6929708cdcf80408306e413cd Mon Sep 17 00:00:00 2001 From: berick Date: Wed, 9 Feb 2011 12:29:26 -0500 Subject: [PATCH] if no locale config is present in oils_web, assume en_US exists and is valid --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm index 8f19a07aa5..807af477d7 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm @@ -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 {} -- 2.11.0