internationalization/localization, RT12515
[freeside.git] / httemplate / view / cust_main / payment_history / refund.html
index 154525d..c73d51e 100644 (file)
@@ -1,6 +1,6 @@
-<% $refund %>
-(<% $payby. $payinfo %>)
-<% mt('by') |h %> <% $cust_refund->otaker %><% $view %><% $delete %>
+<% $refund %> 
+(<% "$payby$payinfo" %>)
+<% "$view$delete" %>
 <%init>
 
 my( $cust_refund, %opt ) = @_;
@@ -11,11 +11,12 @@ my $payby = $cust_refund->payby;
 my $payinfo = $payby eq 'CARD'
                 ? $cust_refund->paymask
                 : $cust_refund->payinfo;
-
 $payby = translate_payby_refund($payby,$payinfo);
 
-my $refund = mt('Refund');
-$refund = '<B><FONT COLOR="#FF0000">' . mt('Unapplied Refund') . '</FONT></B>' 
+my $refund = mt("Refund by [_1]",$cust_refund->otaker);
+$refund = '<B><FONT COLOR="#FF0000">' 
+    . mt("Unapplied Refund by [_1]",$cust_refund->otaker) 
+    . '</FONT></B>' 
     if $cust_refund->unapplied > 0;
 
 my $view =
@@ -27,19 +28,14 @@ my $view =
                ).
    ')';
 
-
 my $delete = '';
-if ( $cust_refund->closed !~ /^Y/i
-     && $opt{'deleterefunds'}
-     && $curuser->access_right('Delete refund')
-   )
-{
-  $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="!.mt('Delete this refund from the database completely - not recommended').
-            ">".mt('delete')."</A>)";
-}
+$delete = areyousure_link("${p}misc/delete-cust_refund.cgi?".$cust_refund->refundnum,
+                           mt('Are you sure you want to delete this refund?'),
+                           mt('Delete this refund from the database completely - not recommended'),
+                           mt('delete')
+                          ) 
+    if ( $cust_refund->closed !~ /^Y/i && $opt{'deleterefunds'} 
+                                && $curuser->access_right('Delete refund') );
 
 </%init>