From 47ff3d1f8a805bc5f3fda8eb1ac36bb3a380036f Mon Sep 17 00:00:00 2001 From: tetragon Date: Tue, 10 Apr 2007 19:43:54 +0000 Subject: Adding per-user language setting load git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1056 4979c152-3d1c-0410-bac9-87ea11338e46 --- menu.pl | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3