[Vtigercrm-commits] [vtiger-commits] r10432 - in /vtigercrm/branches/5.0.3/modules/Webmails: DetailView.php ListView.php language/en_us.lang.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 14 06:41:19 EDT 2007
Author: saraj
Date: Wed Mar 14 04:41:12 2007
New Revision: 10432
Log:
fix for i18n issue - in Email / My Mails. Fixes #3034 --Minnie
Modified:
vtigercrm/branches/5.0.3/modules/Webmails/DetailView.php
vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
vtigercrm/branches/5.0.3/modules/Webmails/language/en_us.lang.php
Modified: vtigercrm/branches/5.0.3/modules/Webmails/DetailView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/DetailView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/DetailView.php Wed Mar 14 04:41:12 2007
@@ -29,23 +29,23 @@
echo '<td>';
echo '<table border="0" width="100%" cellpadding="0" cellspacing="0">';
-echo '<tr><td width="10%">From:</td><td>'.$elist->from.'</td></tr>';
-echo '<tr><td width="10%">To:</td><td>'.$elist->to.'</td></tr>';
+echo '<tr><td width="10%">'.$mod_strings['LBL_FROM'].'</td><td>'.$elist->from.'</td></tr>';
+echo '<tr><td width="10%">'.$mod_strings['LBL_TO'].'</td><td>'.$elist->to.'</td></tr>';
//Added to get the UTF-8 string - 30-11-06 - Mickie
$elist->subject = utf8_decode(imap_utf8($elist->subject));
-echo '<tr><td width="10%">Subject:</td><td>'.$elist->subject.'</td></tr>';
-echo '<tr><td width="10%">Date:</td><td>'.$elist->date.'</td></tr>';
+echo '<tr><td width="10%">'.$mod_strings['LBL_SUBJECT'].'</td><td>'.$elist->subject.'</td></tr>';
+echo '<tr><td width="10%">'.$mod_strings['LBL_DATE'].'</td><td>'.$elist->date.'</td></tr>';
echo '</table>';
echo '</td></tr>';
$webmail->loadMail();
-echo '<tr><td align="center"><iframe src="index.php?module=Webmails&action=body&mailid='.$mailid.'&mailbox='.$mailbox.'" width="100%" height="450" frameborder="0" style="border:1px solid gray">No Iframes supported</iframe></td></tr>';
+echo '<tr><td align="center"><iframe src="index.php?module=Webmails&action=body&mailid='.$mailid.'&mailbox='.$mailbox.'" width="100%" height="450" frameborder="0" style="border:1px solid gray">'.$mod_strings['LBL_NO_IFRAMES_SUPPORTED'].'</iframe></td></tr>';
-echo "<tr><td><p style='font-weight:bold'>Email Attachments:</p></td></tr>";
+echo "<tr><td><p style='font-weight:bold'>".$mod_strings['LBL_EMAIL_ATTACHMENTS']."</p></td></tr>";
foreach($webmail->attachments as $key=>$value) {
echo '<tr><td>'.($key+1).') <a href="index.php?module=Webmails&action=dlAttachments&num='.$key.'&mailid='.$mailid.'&mailbox='.$mailbox.'" target="_blank">'.$value["filename"]."</a></td></tr>";
Modified: vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/ListView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/ListView.php Wed Mar 14 04:41:12 2007
@@ -266,13 +266,13 @@
}
echo "</script>";
-$listview_header = array("<th>Info</th>","<th>Subject</th>","<th>Date</th>","<th>From</th>","<th>Del</th>");
+$listview_header = array("<th>".$mod_strings['LBL_INFO']."</th>","<th>".$mod_strings['LBL_LIST_SUBJECT']."</th>","<th>".$mod_strings['LABEL_DATE']."</th>","<th>".$mod_strings['LABEL_FROM']."</th>","<th>".$mod_strings['LBL_DEL']."</th>");
$listview_entries = array();
$displayed_msgs=0;
$new_msgs=0;
if(($numEmails) <= 0)
- $listview_entries[0][] = '<td colspan="6" width="100%" align="center"><b>No Emails In This Folder</b></td>';
+ $listview_entries[0][] = '<td colspan="6" width="100%" align="center"><b>'.$mod_strings['LBL_NO_EMAILS'].'</b></td>';
else {
if(isset($_REQUEST["search"])) {
@@ -318,7 +318,7 @@
$i=0;
if (is_array($list)) {
$boxes = '<select name="mailbox" id="mailbox_select" onChange="move_messages();">';
- $boxes .= '<option value="move_to" SELECTED>Move To...</option>';
+ $boxes .= '<option value="move_to" SELECTED>'.$mod_strings['LBL_MOVE_TO'].'</option>';
foreach ($list as $key => $val) {
$tmpval = preg_replace(array("/\{.*?\}/i"),array(""),$val->name);
if(preg_match("/trash/i",$tmpval))
Modified: vtigercrm/branches/5.0.3/modules/Webmails/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/language/en_us.lang.php Wed Mar 14 04:41:12 2007
@@ -136,6 +136,15 @@
'LBL_MAIL_CONNECT_ERROR_INFO'=>'Error connecting mail server!<br> Check in My Accounts->List Mail Server -> List Mail Account',
// Added for 5.0.3 release
'IN_REPLY_TO_THE_MESSAGE' => 'In reply to the message sent by ',
+'LBL_NO_EMAILS'=>'No Emails In This Folder',
+'LBL_MOVE_TO'=>'Move To...',
+'LBL_DEL'=>'Del ',
+'LABEL_FROM'=>'From',
+'LBL_INFO'=>'Info',
+'LABEL_DATE'=>'Date',
+'LBL_NO_IFRAMES_SUPPORTED'=>'No Iframes supported',
+'LBL_EMAIL_ATTACHMENTS'=>'Email Attachments:',
+
);
?>
More information about the vtigercrm-commits
mailing list