internationalization/localization, RT12515
[freeside.git] / httemplate / view / cust_main / payment_history / credit.html
index ffe6133..f2b29b0 100644 (file)
@@ -7,6 +7,7 @@ my( $cust_credit, %opt ) = @_;
 my $date_format = $opt{'date_format'} || '%m/%d/%Y';
 
 my $conf = new FS::Conf;
+my $money_char = $conf->config('money_char') || '$';
 my $curuser = $FS::CurrentUser::CurrentUser;
 
 my @cust_credit_bill = $cust_credit->cust_credit_bill;
@@ -74,23 +75,20 @@ if (    scalar(@cust_credit_bill)   == 0
   foreach my $app ( sort { $a->_date <=> $b->_date }
                          ( @cust_credit_bill, @cust_credit_refund ) ) {
     if ( $app->isa('FS::cust_credit_bill') ) {
-      $desc .= '&nbsp;&nbsp;'.
-               '$'. $app->amount.
-               ' '. $app->applied_to_invoice.
-               '<BR>';
-               #' on '. time2str($date_format, $app->_date).
+      $desc .= '&nbsp;&nbsp;' . $money_char . $app->amount . ' '
+                    . $app->applied_to_invoice . '<BR>';
     } elsif ( $app->isa('FS::cust_credit_refund') ) {
-      $desc .= '&nbsp;&nbsp;'.
-               '$'. $app->amount.
-               mt(" refunded on [_1]", time2str($date_format, $app->_date) ).
-               '<BR>';
+      $desc .= '&nbsp;&nbsp;' .
+               mt("[_1][_2] refunded on [_3]", $money_char, $app->amount,
+                    time2str($date_format, $app->_date) ) . '<BR>';
     } else {
       die "$app is not a FS::cust_credit_bill or a FS::cust_credit_refund";
     }
   }
   if ( $cust_credit->credited > 0 ) {
-    $desc .= '&nbsp;&nbsp;<B><FONT COLOR="#FF0000">$'.
-             $cust_credit->credited. ' unapplied</FONT></B>';
+    $desc .= '&nbsp;&nbsp;<B><FONT COLOR="#FF0000">' .
+              mt("[_1][_2] unapplied", $money_char, $cust_credit->credited) .
+              '</FONT></B>';
     if ( $curuser->access_right('Apply credit') ) {
       if ( $cust_credit->cust_main->total_owed > 0 ) {
         $apply = ' ('.