[Vtigercrm-commits] [vtiger-commits] r10304 - /vtigercrm/branches/5.0.3/Smarty/templates/ComposeEmail.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Mar 2 02:30:03 EST 2007


Author: richie
Date: Fri Mar  2 00:29:54 2007
New Revision: 10304

Log:
fixed i18n issues for alerts

Modified:
    vtigercrm/branches/5.0.3/Smarty/templates/ComposeEmail.tpl

Modified: vtigercrm/branches/5.0.3/Smarty/templates/ComposeEmail.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ComposeEmail.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ComposeEmail.tpl Fri Mar  2 00:29:54 2007
@@ -147,13 +147,18 @@
 </table>
 </form>
 </body>
+<script>
+var cc_err_msg = '{$MOD.LBL_CC_EMAIL_ERROR}';
+var no_rcpts_err_msg = '{$MOD.LBL_NO_RCPTS_EMAIL_ERROR}';
+var bcc_err_msg = '{$MOD.LBL_BCC_EMAIL_ERROR}';
+var conf_mail_srvr_err_msg = '{$MOD.LBL_CONF_MAILSERVER_ERROR}';
 {literal}
-<script>
 function email_validate(oform,mode)
 {
 	if(oform.parent_name.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0)
 	{
-		alert('No recipients were specified');
+		//alert('No recipients were specified');
+				alert(no_rcpts_err_msg);
 		return false;
 	}
 	if(document.EditView.ccmail.value.length >= 1)
@@ -165,7 +170,8 @@
 		{
 			if(arr[i] != "" && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(arr[i]))
 			{
-				alert("Your CC Email Id for "+ arr[i] +" is not correct");
+				//alert("Your CC Email Id for "+ arr[i] +" is not correct");
+				alert(cc_err_msg);
 				return false;
 			}
 		}
@@ -180,7 +186,9 @@
 		{
 			if(arr[i] != "" && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(arr[i]))
 			{
-				alert("Your BCC Email Id for "+ arr[i] +" is not correct");
+				//alert("Your BCC Email Id for "+ arr[i] +" is not correct");
+				alert(bcc_err_msg);
+
 				return false;	
 			}
 		}	
@@ -220,7 +228,8 @@
 				oform.submit();
 			}else
 			{
-				alert('Please Configure Your Mail Server');
+				//alert('Please Configure Your Mail Server');
+				alert(conf_mail_srvr_err_msg);
 				return false;
 			}
                	    }
@@ -243,6 +252,7 @@
     );
 
 }
+{/literal}
 </script>
 <script type="text/javascript" defer="1">
 var oFCKeditor = null;
@@ -250,5 +260,4 @@
 oFCKeditor.BasePath   = "include/fckeditor/" ;
 oFCKeditor.ReplaceTextarea();
 </script>
-{/literal}
 </html>





More information about the vtigercrm-commits mailing list