diff options
-rwxr-xr-x | menu.pl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |