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

SF.net SVN: ledger-smb:[4191] branches/1.3



Revision: 4191
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4191&view=rev
Author:   tshvr
Date:     2011-12-10 13:06:42 +0000 (Sat, 10 Dec 2011)
Log Message:
-----------
localisatiion

Modified Paths:
--------------
    branches/1.3/UI/rp-search-payments.html
    branches/1.3/bin/rp.pl

Modified: branches/1.3/UI/rp-search-payments.html
===================================================================
--- branches/1.3/UI/rp-search-payments.html	2011-12-09 15:00:49 UTC (rev 4190)
+++ branches/1.3/UI/rp-search-payments.html	2011-12-10 13:06:42 UTC (rev 4191)
@@ -3,7 +3,7 @@
         <td colspan="3"><?lsmb PROCESS select element_data=form.paymentaccounts ?></td>
       </tr>
       <tr>
-        <th aligh="right"><?lsmb text('Vendor Number') ?></th>
+        <th aligh="right"><?lsmb text(form.meta_number_text) ?></th>
         <td colpan="3"><?lsmb INCLUDE input element_data = {
 		name = "meta_number"
 		size = '35'

Modified: branches/1.3/bin/rp.pl
===================================================================
--- branches/1.3/bin/rp.pl	2011-12-09 15:00:49 UTC (rev 4190)
+++ branches/1.3/bin/rp.pl	2011-12-10 13:06:42 UTC (rev 4191)
@@ -95,7 +95,6 @@
 # $locale->text('Non-taxable Purchases')
 
 sub report {
-
     my %hiddens;
     my %report = (
         balance_sheet    => { title => 'Balance Sheet' },
@@ -263,6 +262,8 @@
         $subform = 'payments';
 
         $form->{db} = ( $form->{report} =~ /payments$/ ) ? "ap" : "ar";
+        if($form->{db} eq 'ar'){$form->{meta_number_text}='Customer Number';}
+        else {$form->{meta_number_text}='Vendor Number';}
 
         RP->paymentaccounts( \%myconfig, \%$form );
 
@@ -288,7 +289,7 @@
 
     }
 
-    $form->{login} = 'test';
+    #$form->{login} = 'test';TODO meaning?
     $hiddens{$_} = $form->{$_} foreach qw(path login sessionid);
     $form->{yearend_options} = [
          {id => 'all',  label => $locale->text('All') }, 
@@ -1923,7 +1924,9 @@
 
     my %hiddens;
     my @options;
-    my $vc = ($form->{db} eq 'ar') ? 'Customer' : 'Vendor';
+    my $meta_number_text;
+    if($form->{db} eq 'ar'){$meta_number_text='Customer Number';}
+    else {$meta_number_text='Vendor Number';}
     if ( $form->{account} ) {
         ( $form->{paymentaccounts} ) = split /--/, $form->{account};
     }
@@ -2021,7 +2024,7 @@
         };
     $column_header{meta_number} = {
         href => "$href&sort=meta_number",
-        text => $locale->text("[_1] Number", $vc),
+        text => $locale->text($meta_number_text),
         };
     $column_header{employee} = {
         href => "$href&sort=employee",

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