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

SF.net SVN: ledger-smb:[4954] trunk



Revision: 4954
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4954&view=rev
Author:   einhverfr
Date:     2012-07-01 09:33:55 +0000 (Sun, 01 Jul 2012)
Log Message:
-----------
Minor fixes for locale handling

Modified Paths:
--------------
    trunk/LedgerSMB/Locale.pm
    trunk/LedgerSMB/Sysconfig.pm
    trunk/LedgerSMB.pm

Modified: trunk/LedgerSMB/Locale.pm
===================================================================
--- trunk/LedgerSMB/Locale.pm	2012-07-01 08:53:11 UTC (rev 4953)
+++ trunk/LedgerSMB/Locale.pm	2012-07-01 09:33:55 UTC (rev 4954)
@@ -74,6 +74,7 @@
 
 package LedgerSMB::Locale;
 
+use LedgerSMB::Sysconfig;
 use base 'Locale::Maketext';
 use Locale::Maketext::Lexicon;
 use Encode;

Modified: trunk/LedgerSMB/Sysconfig.pm
===================================================================
--- trunk/LedgerSMB/Sysconfig.pm	2012-07-01 08:53:11 UTC (rev 4953)
+++ trunk/LedgerSMB/Sysconfig.pm	2012-07-01 09:33:55 UTC (rev 4954)
@@ -107,9 +107,10 @@
     return_accno no_db_str tempdir cache_templates fs_cssdir)
   )
 {
-    ${$var} = $config{'main'}{$var} if $config{'main'}{$var};
+    ${$var} = $config{main}{$var} if $config{main}{$var};
 }
 
+
 if ($cssdir !~ m|/$|){
     $cssdir = "$cssdir/";
 }

Modified: trunk/LedgerSMB.pm
===================================================================
--- trunk/LedgerSMB.pm	2012-07-01 08:53:11 UTC (rev 4953)
+++ trunk/LedgerSMB.pm	2012-07-01 09:33:55 UTC (rev 4954)
@@ -291,7 +291,7 @@
     }
     #HV set _locale already to default here,so routines lower in stack can use it;e.g. login.pl
     $self->{_locale}=LedgerSMB::Locale->get_handle(${LedgerSMB::Sysconfig::language})
-      or $self->error( __FILE__ . ':' . __LINE__ .": Locale not loaded: $!\n" );
+      or $self->error( __FILE__ . ':' . __LINE__ .": Locale ($LedgerSMB::Sysconfig::language) not loaded: $!\n" );
 
     $self->{action} = "" unless defined $self->{action};
     $self->{action} =~ s/\W/_/g;

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