From: berick Date: Wed, 9 Feb 2011 17:29:26 +0000 (-0500) Subject: if no locale config is present in oils_web, assume en_US exists and is valid X-Git-Tag: opac-tt-poc-demo2~27^2~27 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2883a774560b8ec6929708cdcf80408306e413cd;p=evergreen%2Fequinox.git if no locale config is present in oils_web, assume en_US exists and is valid --- 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 {}