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

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



Revision: 2702
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2702&view=rev
Author:   einhverfr
Date:     2009-06-25 02:12:46 +0000 (Thu, 25 Jun 2009)

Log Message:
-----------
Minor bug fixes (moved handler to use strict, fixed translation bug

Modified Paths:
--------------
    trunk/LedgerSMB.pm
    trunk/locale/po/es_EC.po
    trunk/lsmb-request.pl

Modified: trunk/LedgerSMB.pm
===================================================================
--- trunk/LedgerSMB.pm	2009-06-19 20:49:54 UTC (rev 2701)
+++ trunk/LedgerSMB.pm	2009-06-25 02:12:46 UTC (rev 2702)
@@ -239,9 +239,11 @@
 
     $self->{dbh}->do("set DateStyle to '" 
 		.$date_setting{$self->{_user}->{dateformat}}."'");
-    #my $locale   = LedgerSMB::Locale->get_handle($self->{_user}->{countrycode})
-    $self->{_locale} = LedgerSMB::Locale->get_handle('en') # temporary
+    my $locale   = LedgerSMB::Locale->get_handle($self->{_user}->{language})
+#    $self->{_locale} = LedgerSMB::Locale->get_handle('en') # temporary
      or $self->error(__FILE__.':'.__LINE__.": Locale not loaded: $!\n");
+    $self->{_locale} = $locale;
+    $self->debug({file => '/tmp/base.debug'});
 
     $self->{stylesheet} = $self->{_user}->{stylesheet};
 

Modified: trunk/locale/po/es_EC.po
===================================================================
--- trunk/locale/po/es_EC.po	2009-06-19 20:49:54 UTC (rev 2701)
+++ trunk/locale/po/es_EC.po	2009-06-25 02:12:46 UTC (rev 2702)
@@ -928,6 +928,9 @@
 msgid "Edit Preferences for"
 msgstr "Editar preferencias de"
 
+msgid "Preferences for %1"
+msgstr "Preferencias de %1"
+
 msgid "Edit Pricegroup"
 msgstr "Editar Precio de Grupo"
 
@@ -1135,12 +1138,18 @@
 msgid "GL Reference Number"
 msgstr ""
 
-msgid "GL Transaction"
+msgid "Journal Entry"
 msgstr "Nota de Contabilidad"
 
-msgid "General Ledger"
+msgid "General Journal"
 msgstr "Notas de Contabilidad"
 
+msgid "Tax Forms"
+msgstr "Formas de Ivas"
+
+msgid "Taxes"
+msgstr "Ivas"
+
 msgid "Generate"
 msgstr ""
 

Modified: trunk/lsmb-request.pl
===================================================================
--- trunk/lsmb-request.pl	2009-06-19 20:49:54 UTC (rev 2701)
+++ trunk/lsmb-request.pl	2009-06-25 02:12:46 UTC (rev 2702)
@@ -30,16 +30,17 @@
 use LedgerSMB;
 use LedgerSMB::Locale;
 use Data::Dumper;
+use strict;
 
 # for custom preprocessing logic
 eval { require "custom.pl"; };
 
-$request = new LedgerSMB;
+my $request = new LedgerSMB;
 $request->{action} = '__default' if (!$request->{action});
 
 $ENV{SCRIPT_NAME} =~ m/([^\/\\]*.pl)\?*.*$/;
-$script = $1;
-$locale = LedgerSMB::Locale->get_handle( ${LedgerSMB::Sysconfig::language} )
+my $script = $1;
+my $locale = LedgerSMB::Locale->get_handle( ${LedgerSMB::Sysconfig::language} )
   or $request->error( __FILE__ . ':' . __LINE__ . ": Locale not loaded: $!\n" );
 
 if (!$script){


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