[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1056] branches/1.2/menu.pl
- Subject: SF.net SVN: ledger-smb: [1056] branches/1.2/menu.pl
- From: ..hidden..
- Date: Tue, 10 Apr 2007 12:43:56 -0700
Revision: 1056
http://svn.sourceforge.net/ledger-smb/?rev=1056&view=rev
Author: tetragon
Date: 2007-04-10 12:43:54 -0700 (Tue, 10 Apr 2007)
Log Message:
-----------
Adding per-user language setting load
Modified Paths:
--------------
branches/1.2/menu.pl
Modified: branches/1.2/menu.pl
===================================================================
--- branches/1.2/menu.pl 2007-04-10 16:45:19 UTC (rev 1055)
+++ branches/1.2/menu.pl 2007-04-10 19:43:54 UTC (rev 1056)
@@ -100,6 +100,8 @@
# 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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.