[Vtigercrm-commits] [vtiger-commits] r9581 - in /vtigercrm/branches/5.0.1/modules/Calendar: calendarLayout.php language/en_us.lang.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Oct 6 12:08:21 EDT 2006
Author: richie
Date: Fri Oct 6 10:08:15 2006
New Revision: 9581
Log:
* Fixed the i18n issue - ticket 2267
Modified:
vtigercrm/branches/5.0.1/modules/Calendar/calendarLayout.php
vtigercrm/branches/5.0.1/modules/Calendar/language/en_us.lang.php
Modified: vtigercrm/branches/5.0.1/modules/Calendar/calendarLayout.php
==============================================================================
--- vtigercrm/branches/5.0.1/modules/Calendar/calendarLayout.php (original)
+++ vtigercrm/branches/5.0.1/modules/Calendar/calendarLayout.php Fri Oct 6 10:08:15 2006
@@ -245,7 +245,7 @@
</td>";
$tabhtml .= "<td width='2%'><img onClick='fnvshobj(this,\"miniCal\"); getMiniCal(\"view=".$header['calendar']->view."".$header['calendar']->date_time->get_date_str()."&viewOption=".$viewBox."&subtab=".$subtab."&parenttab=".$category."\");' src='".$header['IMAGE_PATH']."btnL3Calendar.gif' alt='".$mod_strings['LBL_OPENCAL']."...' title='".$mod_strings['LBL_OPENCAL']."...' align='absmiddle' border='0'></td>";
$tabhtml .= "<td width=20% ><img onClick='fnvshobj(this,\"calSettings\"); getCalSettings(\"view=".$header['calendar']->view."".$header['calendar']->date_time->get_date_str()."&viewOption=".$viewBox."&subtab=".$subtab."&parenttab=".$category."\");' src='".$header['IMAGE_PATH']."tbarSettings.gif' alt='".$mod_strings['LBL_SETTINGS']."' title='".$mod_strings['LBL_SETTINGS']."' align='absmiddle' border='0'></td>";
- $tabhtml .= "<td class='calHdr calTopRight componentName'>".$app_strings[Calendar]."</td>";
+ $tabhtml .= "<td class='calHdr calTopRight componentName'>".$app_strings['Calendar']."</td>";
$tabhtml .= "</tr>";
echo $tabhtml;
$cal_log->debug("Exiting get_cal_header_tab() method...");
@@ -1137,7 +1137,7 @@
$eventlayer .= '</td>
<td><a href="index.php?action=DetailView&module=Calendar&record='.$id.'&activity_mode=Events&viewtype=calendar&parenttab='.$category.'"><span class="orgTab">'.$subject.'</span></a></td>
</tr>
- <tr><td>'.$action_str.'</td><td>('.$user.' | '.$eventstatus.' | '.$priority.')</td>
+ <tr><td>'.$action_str.'</td><td>('.$user.' | '.$mod_strings[$eventstatus].' | '.$mod_strings[$priority].')</td>
</table>
</div>';
@@ -1309,7 +1309,7 @@
global $log;
$Entries = Array();
$category = getParentTab();
- global $adb,$current_user,$mod_strings,$cal_log;
+ global $adb,$current_user,$mod_strings,$app_strings,$cal_log;
require('user_privileges/user_privileges_'.$current_user->id.'.php');
require('user_privileges/sharing_privileges_'.$current_user->id.'.php');
$cal_log->debug("Entering getEventList() method...");
@@ -1398,16 +1398,16 @@
$more_link = "<a href='index.php?action=DetailView&module=Calendar&record=".$id."&activity_mode=Events&viewtype=calendar&parenttab=".$category."' class='webMnu'>[".$mod_strings['LBL_MORE']."...]</a>";
$type = $adb->query_result($result,$i,"activitytype");
if($type == 'Call')
- $image_tag = "<img src='".$calendar['IMAGE_PATH']."Calls.gif' align='middle'> ".$type;
+ $image_tag = "<img src='".$calendar['IMAGE_PATH']."Calls.gif' align='middle'> ".$app_strings['Call'];
if($type == 'Meeting')
- $image_tag = "<img src='".$calendar['IMAGE_PATH']."Meetings.gif' align='middle'> ".$type;
+ $image_tag = "<img src='".$calendar['IMAGE_PATH']."Meetings.gif' align='middle'> ".$app_strings['Meeting'];
$element['eventtype'] = $image_tag;
$element['eventdetail'] = $contact_data." ".$subject." ".$more_link;
if(isPermitted("Calendar","EditView") == "yes")
$element['action'] ="<img onClick='getcalAction(this,\"eventcalAction\",".$id.",\"".$calendar['view']."\",\"".$calendar['calendar']->date_time->hour."\",\"".$calendar['calendar']->date_time->day."\",\"".$calendar['calendar']->date_time->month."\",\"".$calendar['calendar']->date_time->year."\",\"event\");' src='".$calendar['IMAGE_PATH']."cal_event.jpg' border='0'>";
else
$element['action'] =" ";
- $element['status'] = $adb->query_result($result,$i,"eventstatus");
+ $element['status'] = $mod_strings[$adb->query_result($result,$i,"eventstatus")];
$assignedto = $adb->query_result($result,$i,"user_name");
if(!empty($assignedto))
$element['assignedto'] = $assignedto;
Modified: vtigercrm/branches/5.0.1/modules/Calendar/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.1/modules/Calendar/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.1/modules/Calendar/language/en_us.lang.php Fri Oct 6 10:08:15 2006
@@ -400,9 +400,6 @@
'Not Started'=>'Not Started',
'In Progress'=>'In Progress',
'Pending Input'=>'Pending Input',
-'High'=>'High',
-'Medium'=>'Medium',
-'Low'=>'Low',
'LBL_REMAINDER_DAY'=>'days',
'LBL_REMAINDER_HRS'=>'hrs',
More information about the vtigercrm-commits
mailing list