summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmenu.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/menu.pl b/menu.pl
index 98e7e2f2..c606e551 100755
--- a/menu.pl
+++ b/menu.pl
@@ -100,6 +100,8 @@ $SIG{__DIE__} = sub { $form->error(__FILE__.':'.__LINE__.': '.$_[0]) };
# grab user config. This is ugly and unecessary if/when
# we get rid of myconfig and use User as a real object
%myconfig = %{LedgerSMB::User->fetch_config($form->{login})};
+$locale = LedgerSMB::Locale->get_handle($myconfig{countrycode}) or
+ $form->error(__FILE__.':'.__LINE__.": Locale not loaded: $!\n");
# locale messages
#$form->{charset} = $locale->encoding;