X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fpending_payment.html;h=3da5a622936d9a0eda5b18795d0cde4d1742a238;hb=170aa1e8078280e7c03a6ebfc67280de66fa1b9d;hp=7d21f899fa20dd3641e615590fbb89b4b1856604;hpb=b8d1f6382bd483b4c5718a7930ea2493a1686d50;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history/pending_payment.html b/httemplate/view/cust_main/payment_history/pending_payment.html index 7d21f899f..3da5a6229 100644 --- a/httemplate/view/cust_main/payment_history/pending_payment.html +++ b/httemplate/view/cust_main/payment_history/pending_payment.html @@ -1,4 +1,4 @@ -Pending payment <% "$info $status ($link)" %> +<% mt('Pending payment') |h %> <% "$info $status ($link)" %> <%init> my( $cust_pay_pending, %opt ) = @_; @@ -14,21 +14,13 @@ if ( $payby eq 'CARD' ) { $payinfo = $cust_pay_pending->paymask; } elsif ( $payby eq 'CHEK' ) { my( $account, $aba ) = split('@', $cust_pay_pending->paymask ); - $payinfo = "ABA $aba, Acct #$account"; + $payinfo = mt("ABA [_1], Acct #[_2]",$aba,$account); } else { $payinfo = $cust_pay_pending->payinfo; } my $target = "$payby$payinfo"; -$payby =~ s/^BILL$/Check #/ if $payinfo; -$payby =~ s/^CHEK$/Electronic check /; -$payby =~ s/^PREP$/Prepaid card /; -$payby =~ s/^CARD$/Credit card #/; -$payby =~ s/^COMP$/Complimentary by /; -$payby =~ s/^CASH$/Cash/; -$payby =~ s/^WEST$/Western Union/; -$payby =~ s/^MCRD$/Manual credit card/; -$payby =~ s/^BILL$//; +$payby = translate_payby($payby,$payinfo); my $info = $payby ? "($payby$payinfo)" : ''; my %statusaction = ( @@ -51,11 +43,11 @@ if ( $action && $edit_pending ) { 'action' => $p. 'edit/cust_pay_pending.html'. '?paypendingnum='. $cust_pay_pending->paypendingnum. ";action=$action", - 'label' => $action, + 'label' => mt($action), 'color' => '#ff0000', 'width' => 655, 'height' => ( $action eq 'delete' ? 480 : 575 ), - 'actionlabel' => ucfirst($action). ' pending payment', + 'actionlabel' => mt(ucfirst($action). ' pending payment'), ); }