internationalization/localization, RT12515
[freeside.git] / httemplate / view / cust_main / payment_history / refund.html
index 4a48fea..154525d 100644 (file)
@@ -1,6 +1,6 @@
-<% $pre %>Refund<% $post %>
+<% $refund %>
 (<% $payby. $payinfo %>)
-by <% $cust_refund->otaker %><% $view %><% $delete %>
+<% mt('by') |h %> <% $cust_refund->otaker %><% $view %><% $delete %>
 <%init>
 
 my( $cust_refund, %opt ) = @_;
@@ -12,23 +12,18 @@ my $payinfo = $payby eq 'CARD'
                 ? $cust_refund->paymask
                 : $cust_refund->payinfo;
 
-$payby =~ s/^BILL$/Check #/ if $payinfo;
-$payby =~ s/^BILL$/Check/;
-$payby =~ s/^CHEK$/Electronic check /;
-$payby =~ s/^(CARD|COMP)$/$1 /;
+$payby = translate_payby_refund($payby,$payinfo);
 
-my($pre, $post) = ('', '');
-if ( $cust_refund->unapplied > 0 ) {
-  $pre = '<B><FONT COLOR="#FF0000">Unapplied ';
-  $post = '</FONT></B>';
-}
+my $refund = mt('Refund');
+$refund = '<B><FONT COLOR="#FF0000">' . mt('Unapplied Refund') . '</FONT></B>' 
+    if $cust_refund->unapplied > 0;
 
 my $view =
   ' ('. include('/elements/popup_link.html',
-                  'label'     => 'view receipt',
+                  'label'     => mt('view receipt'),
                   'action'    => "${p}view/cust_refund.html?link=popup;".
                                  'refundnum='. $cust_refund->refundnum,
-                  'actionlabel' => 'Payment Receipt',
+                  'actionlabel' => mt('Payment Receipt'),
                ).
    ')';
 
@@ -42,8 +37,8 @@ if ( $cust_refund->closed !~ /^Y/i
   $delete = qq! (<A HREF="javascript:areyousure('!.
             qq!${p}misc/delete-cust_refund.cgi?!. $cust_refund->refundnum.
             qq!', 'Are you sure you want to delete this refund?')"!.
-            qq! TITLE="Delete this refund from the database completely - not recommended"!.
-            qq!>delete</A>)!;
+            qq! TITLE="!.mt('Delete this refund from the database completely - not recommended').
+            ">".mt('delete')."</A>)";
 }
 
 </%init>