Changeset 904

Show
Ignore:
Timestamp:
07/26/08 11:47:34 (4 months ago)
Author:
areski
Message:

bug on language

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/common/lib/Class.A2Billing.php

    r896 r904  
    13381338                else $agi-> stream_file('prepaid-account_refill', '#'); 
    13391339 
    1340                 if ($units==0 && $cents==0)
     1340                if ($units==0 && $cents==0)
    13411341                        $agi->say_number(0); 
    13421342                        $agi-> stream_file($unit_audio, '#'); 
    1343                 }else
    1344                         if ($units > 1)
     1343                } else
     1344                        if ($units > 1)
    13451345                                $agi->say_number($units); 
    13461346 
    1347                                 if(($this ->current_language=='ru')&&(strtolower($this->currency)=='usd')&& ( ( $units%10==2) || ($units%10==3 )|| ($units%10==4)) )
    1348                                                // test for the specific grammatical rules in RUssian 
    1349                                                $agi-> stream_file('dollar2', '#'); 
    1350                                        }elseif(($this ->current_language=='ru')&&(strtolower($this->currency)=='usd')&& ( $units%10==1)) { 
    1351                                                // test for the specific grammatical rules in RUssian 
    1352                                                $agi-> stream_file($unit_audio, '#'); 
    1353                                        }else
    1354                                                $agi-> stream_file($units_audio, '#'); 
    1355                                        
    1356  
    1357                         }else
     1347                                if (($this ->current_language=='ru') && (strtolower($this->currency)=='usd') && ( ( $units%10==2) || ($units%10==3 ) || ($units%10==4)) )
     1348                                        // test for the specific grammatical rules in Russian 
     1349                                        $agi-> stream_file('dollar2', '#'); 
     1350                                }elseif (($this ->current_language=='ru') && (strtolower($this->currency)=='usd') && ( $units%10==1)) { 
     1351                                        // test for the specific grammatical rules in Russian 
     1352                                        $agi-> stream_file($unit_audio, '#'); 
     1353                                } else
     1354                                        $agi-> stream_file($units_audio, '#'); 
     1355                               
     1356 
     1357                        } else
    13581358                                $agi->say_number($units); 
    13591359                                 
    1360                                 if(($this ->current_language=='ru')&&(strtolower($this->currency)=='usd')&& ($units == 0))
    1361                                 $agi-> stream_file($units_audio, '#');         
    1362                                 }else{                                 
    1363                                 $agi-> stream_file($unit_audio, '#'); 
     1360                                if (($this ->current_language=='ru') && (strtolower($this->currency)=='usd') && ($units == 0))
     1361                                       $agi-> stream_file($units_audio, '#');  
     1362                                } else {                               
     1363                                       $agi-> stream_file($unit_audio, '#'); 
    13641364                                } 
    13651365                        } 


Google