[freeside-commits] freeside/httemplate/view/cust_main payment_history.html, 1.53, 1.54

Erik Levinson levinse at wavetail.420.am
Mon May 16 11:48:27 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv10956

Modified Files:
	payment_history.html 
Log Message:
internationalization/localization, RT12515

Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -w -d -r1.53 -r1.54
--- payment_history.html	16 May 2011 16:29:49 -0000	1.53
+++ payment_history.html	16 May 2011 18:48:24 -0000	1.54
@@ -450,4 +450,32 @@
 
 }
 
+sub translate_payby {
+    my ($payby,$payinfo) = (shift,shift);
+    my %payby = (
+        BILL    => $payinfo ? mt('Check #') : '',
+        CHEK    => mt('Electronic check '),
+        PREP    => mt('Prepaid card '),
+        CARD    => mt('Credit card #'),
+        COMP    => mt('Complimentary by '),
+        CASH    => mt('Cash'),
+        WEST    => mt('Western Union'),
+        MCRD    => mt('Manual credit card'),
+    );
+    $payby = (exists $payby{$payby}) ? $payby{$payby} : $payby; 
+    $payby;
+};
+
+sub translate_payby_refund {
+    my ($payby,$payinfo) = (shift,shift);
+    my %payby = (
+        BILL    => $payinfo ? mt('Check #') : mt('Check'),
+        CHEK    => mt('Electronic check '),
+        CARD    => 'CARD ',
+        COMP    => 'COMP ',
+    );
+    $payby = (exists $payby{$payby}) ? $payby{$payby} : $payby; 
+    $payby;
+};
+
 </%init>



More information about the freeside-commits mailing list