[Vtigercrm-commits] [vtiger-commits] r10234 - in /vtigercrm/branches/5.0.3: Smarty/templates/ActivityEditView.tpl modules/Calendar/CalendarCommon.php modules/Calendar/language/en_us.lang.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Feb 22 03:05:27 EST 2007


Author: saraj
Date: Thu Feb 22 01:05:20 2007
New Revision: 10234

Log:
i18n fix for Recurring event. Fixes #3041

Modified:
    vtigercrm/branches/5.0.3/Smarty/templates/ActivityEditView.tpl
    vtigercrm/branches/5.0.3/modules/Calendar/CalendarCommon.php
    vtigercrm/branches/5.0.3/modules/Calendar/language/en_us.lang.php

Modified: vtigercrm/branches/5.0.3/Smarty/templates/ActivityEditView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ActivityEditView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ActivityEditView.tpl Thu Feb 22 01:05:20 2007
@@ -504,7 +504,7 @@
 													<div id="repeatOptions" {$rptstyle}>
 													<table border=0 cellspacing=0 cellpadding=2>
 													<tr>
-													<td>Repeat once in every</td>
+													<td>{$MOD.LBL_REPEAT_ONCE}</td>
 													<td><input type="text" name="repeat_frequency" class="textbox" style="width:20px" value="{$ACTIVITYDATA.repeat_frequency}" ></td>
 													<td><select name="recurringtype">
 													<option value="Daily" onClick="ghide('repeatWeekUI'); ghide('repeatMonthUI');" {if $ACTIVITYDATA.eventrecurringtype eq 'Daily'} selected {/if}>{$MOD.LBL_DAYS}</option>
@@ -518,13 +518,13 @@
 												<div id="repeatWeekUI" {$rptweekstyle}>
 												<table border=0 cellspacing=0 cellpadding=2>
 												<tr>
-													<td><input name="sun_flag" value="sunday" {$ACTIVITYDATA.week0} type="checkbox"></td><td>Sun</td>
-													<td><input name="mon_flag" value="monday" {$ACTIVITYDATA.week1} type="checkbox"></td><td>Mon</td>
-													<td><input name="tue_flag" value="tuesday" {$ACTIVITYDATA.week2} type="checkbox"></td><td>Tue</td>
-													<td><input name="wed_flag" value="wednesday" {$ACTIVITYDATA.week3} type="checkbox"></td><td>Wed</td>
-													<td><input name="thu_flag" value="thursday" {$ACTIVITYDATA.week4} type="checkbox"></td><td>Thu</td>
-													<td><input name="fri_flag" value="friday" {$ACTIVITYDATA.week5} type="checkbox"></td><td>Fri</td>
-													<td><input name="sat_flag" value="saturday" {$ACTIVITYDATA.week6} type="checkbox"></td><td>Sat</td>
+													<td><input name="sun_flag" value="sunday" {$ACTIVITYDATA.week0} type="checkbox"></td><td>{$MOD.LBL_SM_SUN}</td>
+													<td><input name="mon_flag" value="monday" {$ACTIVITYDATA.week1} type="checkbox"></td><td>{$MOD.LBL_SM_MON}</td>
+													<td><input name="tue_flag" value="tuesday" {$ACTIVITYDATA.week2} type="checkbox"></td><td>{$MOD.LBL_SM_TUE}</td>
+													<td><input name="wed_flag" value="wednesday" {$ACTIVITYDATA.week3} type="checkbox"></td><td>{$MOD.LBL_SM_WED}</td>
+													<td><input name="thu_flag" value="thursday" {$ACTIVITYDATA.week4} type="checkbox"></td><td>{$MOD.LBL_SM_THU}</td>
+													<td><input name="fri_flag" value="friday" {$ACTIVITYDATA.week5} type="checkbox"></td><td>{$MOD.LBL_SM_FRI}</td>
+													<td><input name="sat_flag" value="saturday" {$ACTIVITYDATA.week6} type="checkbox"></td><td>{$MOD.LBL_SM_SAT}</td>
 												</tr>
 												</table>
 												</div>

Modified: vtigercrm/branches/5.0.3/modules/Calendar/CalendarCommon.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Calendar/CalendarCommon.php (original)
+++ vtigercrm/branches/5.0.3/modules/Calendar/CalendarCommon.php Thu Feb 22 01:05:20 2007
@@ -148,6 +148,7 @@
  */
 function getTimeCombo($format,$bimode,$hour='',$min='',$fmt='',$todocheck=false)
 {
+	global $mod_strings;
 	$combo = '';
 	$min = $min - ($min%5);
 	if($bimode == 'start' && !$todocheck)
@@ -195,7 +196,7 @@
 				$hrsel = ($hour == $hrvalue)?'selected':'';
 				$combo .= '<option value="'.$hrvalue.'" '.$hrsel.'>'.$hrvalue.'</option>';
 			}
-			$combo .= '</select>Hr&nbsp;';
+			$combo .= '</select>'.$mod_strings[LBL_HR].'&nbsp;';
 			$combo .= '<select name="'.$bimode.'min" id="'.$bimode.'min" class=small '.$jsfn.'>';
 			for($i=0;$i<12;$i++)
 			{
@@ -204,7 +205,7 @@
 				$minsel = ($min == $value)?'selected':'';
 				$combo .= '<option value="'.$value.'" '.$minsel.'>'.$value.'</option>';
 			}
-			$combo .= '</select>&nbsp;min<input type="hidden" name="'.$bimode.'fmt" id="'.$bimode.'fmt">';
+			$combo .= '</select>&nbsp;'.$mod_strings[LBL_MIN].'<input type="hidden" name="'.$bimode.'fmt" id="'.$bimode.'fmt">';
 		}
 		return $combo;
 }

Modified: vtigercrm/branches/5.0.3/modules/Calendar/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Calendar/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.3/modules/Calendar/language/en_us.lang.php Thu Feb 22 01:05:20 2007
@@ -364,6 +364,8 @@
 'LBL_RMD_ON'=>'Remind on',
 'LBL_REPEATEVENT'=>'Repeat once in every',
 'LBL_TIMEDATE'=>'Time & Date',
+'LBL_HR'=>'Hr',
+'LBL_MIN'=>'min',
 'LBL_EVENT'=>'Event',
 'Daily'=>'Day(s)',
 'Weekly'=>'Week(s)',





More information about the vtigercrm-commits mailing list