Changeset 12500

Show
Ignore:
Timestamp:
03/23/09 06:49:58 (1 year ago)
Author:
asha
Message:

#5579 : Hardcoded strings in webmail download attachments. - Asha

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vtigercrm/branches/5.1/modules/Webmails/dlAttachments.php

    r10824 r12500  
    1717require_once('modules/Webmails/MailBox.php'); 
    1818 
    19 global $MailBox
     19global $MailBox, $mod_strings
    2020$MailBox = new MailBox($_REQUEST["mailbox"]); 
    2121 
     
    3030echo "<table class='small' width='100%' cellspacing='1' cellpadding='0' border='0' style='font-size:18px'>"; 
    3131if(count($email->attname) <= 0) 
    32         echo "<tr align='center'><td nowrap>No files to download</td></tr>"; 
     32        echo "<tr align='center'><td nowrap>".$mod_strings['LBL_NO_ATTACHMENTS']."</td></tr>"; 
    3333else{ 
    3434        for($i=0;$i<count($email->attname);$i++){ 
    3535                $attachment_links .= "&nbsp;&nbsp;&nbsp;&nbsp;".$email->anchor_arr[$i].$email->attname[$i]."</a></br>"; 
    3636        } 
    37         echo "<tr><td><table class='small' width='100%' cellspacing='1' cellpadding='0' border='0' style='font-size:13px'><tr><td width='90%'>There are ".count($email->attname)." attachment(s) to choose from:</td></tr>"; 
     37        echo "<tr><td><table class='small' width='100%' cellspacing='1' cellpadding='0' border='0' style='font-size:13px'><tr><td width='90%'>".$mod_strings['LBL_THERE_ARE']." ".count($email->attname)." ".$mod_strings['LBL_ATTACHMENTS_TO_CHOOSE'].":</td></tr>"; 
    3838        echo "<tr><td width='100%'>".$attachment_links."</div></td></tr>"; 
    3939        echo "</td></tr></table>"; 
  • vtigercrm/branches/5.1/modules/Webmails/language/en_us.lang.php

    r12494 r12500  
    173173'LBL_MESSAGES'=>'Messages', 
    174174 
     175'LBL_NO_ATTACHMENTS'=>'No files to download',  
     176'LBL_THERE_ARE'=>'There are ',  
     177'LBL_ATTACHMENTS_TO_CHOOSE'=>' attachment(s) to choose from',  
     178 
    175179); 
    176180?>