[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [969] branches/1.2/menu.pl



Revision: 969
          http://svn.sourceforge.net/ledger-smb/?rev=969&view=rev
Author:   einhverfr
Date:     2007-03-20 19:17:37 -0700 (Tue, 20 Mar 2007)

Log Message:
-----------
Fixing locale errors when checking password

Modified Paths:
--------------
    branches/1.2/menu.pl

Modified: branches/1.2/menu.pl
===================================================================
--- branches/1.2/menu.pl	2007-03-21 01:31:32 UTC (rev 968)
+++ branches/1.2/menu.pl	2007-03-21 02:17:37 UTC (rev 969)
@@ -69,6 +69,8 @@
 $pos = rindex $0, '/';
 $script = substr($0, $pos + 1);
 
+$locale = LedgerSMB::Locale->get_handle($myconfig{countrycode}) or
+	$form->error(__FILE__.':'.__LINE__.": Locale not loaded: $!\n");
 # we use $script for the language module
 $form->{script} = $script;
 # strip .pl for translation files
@@ -100,8 +102,6 @@
 %myconfig = %{LedgerSMB::User->fetch_config($form->{login})};
 
 # locale messages
-$locale = LedgerSMB::Locale->get_handle($myconfig{countrycode}) or
-	$form->error(__FILE__.':'.__LINE__.": Locale not loaded: $!\n");
 #$form->{charset} = $locale->encoding;
 $form->{charset} = 'UTF-8';
 $locale->encoding('UTF-8');


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.