internationalization/localization, RT12515
[freeside.git] / httemplate / view / cust_main / payment_history / credit.html
index f2b29b0..6dd8970 100644 (file)
@@ -27,21 +27,21 @@ if ($conf->exists('cust_credit_bill_pkg-manual')) {
 }
 
 my( $apply, $ext ) = ( '', '', '', '' );
-my $credit = mt("Credit by [_1]", $cust_credit->otaker );
+my $credit = emt("Credit by [_1]", $cust_credit->otaker );
 if (    scalar(@cust_credit_bill)   == 0
      && scalar(@cust_credit_refund) == 0 ) {
   #completely unapplied
   $credit = '<B><FONT COLOR="#FF0000">'
-        . mt("Unapplied Credit by [_1]", $cust_credit->otaker )
+        . emt("Unapplied Credit by [_1]", $cust_credit->otaker )
         . '</FONT></B>';
   if ( $curuser->access_right('Apply credit') ) {
     if ( $cust_credit->cust_main->total_owed > 0 ) {
       $apply = ' ('.
                include( '/elements/popup_link.html',
-                          'label'    => mt('apply'),
+                          'label'    => emt('apply'),
                           'action'   => "${p}edit/cust_credit_bill.cgi?".
                                         $cust_credit->crednum,
-                          'actionlabel' => mt('Apply credit'),
+                          'actionlabel' => emt('Apply credit'),
                           %cust_credit_bill_width,
                           %cust_credit_bill_height,
                       ).
@@ -50,10 +50,10 @@ if (    scalar(@cust_credit_bill)   == 0
     if ( $cust_credit->cust_main->total_unapplied_refunds > 0 ) {
       $apply.= ' ('.
                include( '/elements/popup_link.html',
-                          'label'    => mt('apply to refund'),
+                          'label'    => emt('apply to refund'),
                           'action'   => "${p}edit/cust_credit_refund.cgi?".
                                         $cust_credit->crednum,
-                          'actionlabel' => mt('Apply credit to refund'),
+                          'actionlabel' => emt('Apply credit to refund'),
                           'width'    => 392,
                       ).
                ')';
@@ -68,7 +68,7 @@ if (    scalar(@cust_credit_bill)   == 0
           && scalar(@cust_credit_refund) == 1
           && $cust_credit->credited == 0      ) {
   #applied to one refund
-  $desc .= mt(" refunded on [_1]", time2str($date_format, $cust_credit_refund[0]->_date) );
+  $desc .= emt(" refunded on [_1]", time2str($date_format, $cust_credit_refund[0]->_date) );
 } else {
   #complicated
   $desc .= '<BR>';
@@ -79,7 +79,7 @@ if (    scalar(@cust_credit_bill)   == 0
                     . $app->applied_to_invoice . '<BR>';
     } elsif ( $app->isa('FS::cust_credit_refund') ) {
       $desc .= '&nbsp;&nbsp;' .
-               mt("[_1][_2] refunded on [_3]", $money_char, $app->amount,
+               emt("[_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";
@@ -87,16 +87,16 @@ if (    scalar(@cust_credit_bill)   == 0
   }
   if ( $cust_credit->credited > 0 ) {
     $desc .= '&nbsp;&nbsp;<B><FONT COLOR="#FF0000">' .
-              mt("[_1][_2] unapplied", $money_char, $cust_credit->credited) .
+              emt("[_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 = ' ('.
                  include( '/elements/popup_link.html',
-                            'label'       => mt('apply'),
+                            'label'       => emt('apply'),
                             'action'      => "${p}edit/cust_credit_bill.cgi?".
                                              $cust_credit->crednum,
-                            'actionlabel' => mt('Apply credit'),
+                            'actionlabel' => emt('Apply credit'),
                             %cust_credit_bill_width,
                             %cust_credit_bill_height,
                         ).
@@ -105,10 +105,10 @@ if (    scalar(@cust_credit_bill)   == 0
       if ( $cust_credit->cust_main->total_unapplied_refunds > 0 ) {
         $apply.= ' ('.
                  include( '/elements/popup_link.html',
-                            'label'       => mt('apply to refund'),
+                            'label'       => emt('apply to refund'),
                             'action'      => "${p}edit/cust_credit_refund.cgi?".
                                              $cust_credit->crednum,
-                            'actionlabel' => mt('Apply credit to refund'),
+                            'actionlabel' => emt('Apply credit to refund'),
                             'width'       => 392,
                         ).
                  ')';
@@ -120,17 +120,17 @@ if (    scalar(@cust_credit_bill)   == 0
 #
 my $delete = '';
 $delete = areyousure_link("${p}misc/delete-cust_credit.cgi?".$cust_credit->crednum,
-                            mt('Are you sure you want to delete this credit?'),
+                            emt('Are you sure you want to delete this credit?'),
                             '',
-                            mt('delete')
+                            emt('delete')
                           )
 if ( $cust_credit->closed !~ /^Y/i && $curuser->access_right('Delete credit') );
 
 my $unapply = '';
 $unapply = areyousure_link("${p}misc/unapply-cust_credit.cgi?".$cust_credit->crednum,
-                            mt('Are you sure you want to unapply this credit?'),
+                            emt('Are you sure you want to unapply this credit?'),
                             '',
-                            mt('unapply')
+                            emt('unapply')
                           )
 if ( $cust_credit->closed !~ /^Y/i && scalar(@cust_credit_bill)
      && $curuser->access_right('Unapply credit') );