diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-10 19:43:54 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-10 19:43:54 +0000 |
commit | 47ff3d1f8a805bc5f3fda8eb1ac36bb3a380036f (patch) | |
tree | d17c6058f14cdf5bdd039b33dbd1ea0eeadf54bc | |
parent | 54ae4eddc6e05a6819e3dbbd250684d39a9c8bee (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-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; |