summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-10 19:43:54 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-10 19:43:54 +0000
commit47ff3d1f8a805bc5f3fda8eb1ac36bb3a380036f (patch)
treed17c6058f14cdf5bdd039b33dbd1ea0eeadf54bc
parent54ae4eddc6e05a6819e3dbbd250684d39a9c8bee (diff)
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
-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;