[Vtigercrm-commits] [vtiger-commits] r10443 - in /vtigercrm/branches/5.0.3/modules: Accounts/Accounts.js Calendar/Calendar.js Emails/Emails.js Leads/Leads.js PriceBooks/PriceBooks.js Products/Products.js Reports/Reports.js Vendors/Vendors.js Webmails/Webmails.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 15 10:29:32 EDT 2007


Author: saraj
Date: Thu Mar 15 08:29:20 2007
New Revision: 10443

Log:
i18n support added for new js files

Modified:
    vtigercrm/branches/5.0.3/modules/Accounts/Accounts.js
    vtigercrm/branches/5.0.3/modules/Calendar/Calendar.js
    vtigercrm/branches/5.0.3/modules/Emails/Emails.js
    vtigercrm/branches/5.0.3/modules/Leads/Leads.js
    vtigercrm/branches/5.0.3/modules/PriceBooks/PriceBooks.js
    vtigercrm/branches/5.0.3/modules/Products/Products.js
    vtigercrm/branches/5.0.3/modules/Reports/Reports.js
    vtigercrm/branches/5.0.3/modules/Vendors/Vendors.js
    vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js

Modified: vtigercrm/branches/5.0.3/modules/Accounts/Accounts.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Accounts/Accounts.js (original)
+++ vtigercrm/branches/5.0.3/modules/Accounts/Accounts.js Thu Mar 15 08:29:20 2007
@@ -45,7 +45,7 @@
         window.opener.document.EditView.account_id.value = account_id;
 
 	//Ask the user to overwite the address or not - Modified on 06-01-2007
-	if(confirm("Overwrite the existing address with this selected account("+account_name+") address details?"))
+	if(confirm(alert_arr.OVERWRITE_EXISTING_ACCOUNT1+account_name+alert_arr.OVERWRITE_EXISTING_ACCOUNT2))
 	{
 		window.opener.document.EditView.bill_street.value = bill_street;
 		window.opener.document.EditView.ship_street.value = ship_street;
@@ -270,7 +270,7 @@
                                         onComplete: function(response) {
 						if(response.responseText  == 'address_change')
                                         	{
-                                            		if(confirm("Do you want to change the addresses of the Contacts related to this Account?") == true)
+                                            		if(confirm(alert_arr.WANT_TO_CHANGE_CONTACT_ADDR) == true)
 								{
 									form.address_change.value='yes';
 									form.submit();	

Modified: vtigercrm/branches/5.0.3/modules/Calendar/Calendar.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Calendar/Calendar.js (original)
+++ vtigercrm/branches/5.0.3/modules/Calendar/Calendar.js Thu Mar 15 08:29:20 2007
@@ -37,7 +37,7 @@
 
 		form.duetime.readOnly=false;
 
-		if (form.duetime.readonly) alert ("it's readonly");
+		if (form.duetime.readonly) alert (alert_arr.READONLY);
 
 		document.images.jscal_trigger.width = 16;
 

Modified: vtigercrm/branches/5.0.3/modules/Emails/Emails.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Emails/Emails.js (original)
+++ vtigercrm/branches/5.0.3/modules/Emails/Emails.js Thu Mar 15 08:29:20 2007
@@ -95,7 +95,7 @@
                 }
                 else
                 {
-                        alert("Please select at least one entity");
+                        alert(alert_arr.SELECT);
                         return false;
                 }
         }
@@ -121,11 +121,11 @@
                 }
                 else
                 {
-                        alert("Please select at least one entity");
+                        alert(alert_arr.SELECT);
                         return false;
                 }
         }
-		if(confirm("Are you sure you want to delete the selected "+xx+" records ?"))
+		if(confirm(alert_arr.DELETE + xx + alert_arr.RECORDS))
 		{	
 			getObj('search_text').value = '';
 			show("status");
@@ -170,7 +170,7 @@
 
 function DeleteEmail(id)
 {
-	if(confirm("Are you sure you want to delete ?"))
+	if(confirm(alert_arr.SURE_TO_DELETE))
 	{	
 		getObj('search_text').value = '';
 		gselectedrowid = 0;

Modified: vtigercrm/branches/5.0.3/modules/Leads/Leads.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Leads/Leads.js (original)
+++ vtigercrm/branches/5.0.3/modules/Leads/Leads.js Thu Mar 15 08:29:20 2007
@@ -16,12 +16,12 @@
 	{
         	if (form.potential_name.value == "")
 		{
-                	alert("Opportunity Name field cannot be empty");
+                	alert(alert_arr.OPPORTUNITYNAME_CANNOT_BE_EMPTY);
 			return false;	
 		}
 		if (form.closedate.value == "")
 		{
-                	alert("Close Date field cannot be empty");
+                	alert(alert_arr.CLOSEDATE_CANNOT_BE_EMPTY);
 			return false;	
 		}
 		x = dateValidate('closedate','Potential Close Date','GECD');

Modified: vtigercrm/branches/5.0.3/modules/PriceBooks/PriceBooks.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/PriceBooks/PriceBooks.js (original)
+++ vtigercrm/branches/5.0.3/modules/PriceBooks/PriceBooks.js Thu Mar 15 08:29:20 2007
@@ -32,12 +32,12 @@
 				{
 					if (elem[i].value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0) 
 					{
-						alert("List Price cannot be empty");
+						alert(alert_arr.LISTPRICE_CANNOT_BE_EMPTY);
 			               		return false;	
 					}
 					else if(isNaN(elem[i].value))
 					{
-						alert("Invalid List Price");
+						alert(alert_arr.INVALID_LIST_PRICE);
 						return false;	
 					}
 	
@@ -47,7 +47,7 @@
 		}
 		else 
 		{
-			alert("Please select at least one entity");
+			alert(alert_arr.SELECT);
 			return false;
 		}
 	}
@@ -80,12 +80,12 @@
 						if (elem[i].value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0) 
 						{
 		
-							alert("List Price cannot be empty");
+							alert(alert_arr.LISTPRICE_CANNOT_BE_EMPTY);
 			                		return false;	
 						}
 						else if(isNaN(elem[i].value))
 						{
-							alert("Invalid List Price");
+							alert(alert_arr.INVALID_LIST_PRICE);
 			                		return false;	
 							
 						}
@@ -96,7 +96,7 @@
 		}
 		else
 		{
-			alert("Please select at least one entity");
+			alert(alert_arr.SELECT);
 			return false;
 		}
 	}
@@ -127,7 +127,7 @@
 	}
 	if (isError == true) 
 	{
-		alert("Missing required fields: " + errorMessage);
+		alert(alert_arr.MISSING_REQUIRED_FIELDS + errorMessage);
 		return false;
 	}
 	return true;

Modified: vtigercrm/branches/5.0.3/modules/Products/Products.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Products/Products.js (original)
+++ vtigercrm/branches/5.0.3/modules/Products/Products.js Thu Mar 15 08:29:20 2007
@@ -31,7 +31,7 @@
   }
 
   if (isError == true) {
-			 alert("Missing required fields: " + errorMessage);
+			 alert(alert_arr.MISSING_REQUIRED_FIELDS + errorMessage);
 			 return false;
   }
   return true;

Modified: vtigercrm/branches/5.0.3/modules/Reports/Reports.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Reports/Reports.js (original)
+++ vtigercrm/branches/5.0.3/modules/Reports/Reports.js Thu Mar 15 08:29:20 2007
@@ -151,7 +151,7 @@
 	}
 	// Here we decide whether to submit the form.
 	if (isError == true) {
-		alert("Missing required fields:" + errorMessage);
+		alert(alert_arr.MISSING_FIELDS + errorMessage);
 		return false;
 	}
 	return true;
@@ -225,7 +225,7 @@
 {
 	if (oSel.selectedIndex == -1 || oSel.options[oSel.selectedIndex].disabled == true)
 	{
-		alert("you are not allowed to edit this field");
+		alert(alert_arr.NOT_ALLOWED_TO_EDIT);
 		oSel.options[oSel.selectedIndex].selected = false;	
 	}
 }
@@ -385,7 +385,7 @@
 {
 	if(selectedColumnsObj.options.length == 0)
 	{
-		alert("Selected Columns cannot be empty");
+		alert(alert_arr.COLUMNS_CANNOT_BE_EMPTY);
 		return false;
 	}
 
@@ -407,7 +407,7 @@
 			{
 				if(i == 1 && selectedColumnsObj.options.length == 0)
 				{
-					alert("Selected Columns cannot be empty");
+					alert(alert_arr.COLUMNS_CANNOT_BE_EMPTY);
 					return false;
 				}	
 				if(divarray[i] == 'step4')
@@ -463,7 +463,7 @@
 	{
 		if (trim(document.NewRep.reportname.value) == "")
 		{
-			alert("Missing Report Name");
+			alert(alert_arr.MISSING_REPORT_NAME);
 		}else
 		{
 			new Ajax.Request(
@@ -474,7 +474,7 @@
                                 onComplete: function(response) {
 					if(response.responseText!=0)
 					{
-						alert("Report name already exists, try again...");
+						alert(alert_arr.REPORT_NAME_EXISTS);
 						return false;
 					}
 					else

Modified: vtigercrm/branches/5.0.3/modules/Vendors/Vendors.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Vendors/Vendors.js (original)
+++ vtigercrm/branches/5.0.3/modules/Vendors/Vendors.js Thu Mar 15 08:29:20 2007
@@ -20,7 +20,7 @@
 	}
 	if (isError == true) 
 	{
-		alert("Missing required fields: " + errorMessage);
+		alert(alert_arr.MISSING_REQUIRED_FIELDS + errorMessage);
 		return false;
 	}
 	return true;

Modified: vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js Thu Mar 15 08:29:20 2007
@@ -99,7 +99,7 @@
 	// TODO: present the user with a simple DHTML div to
 	// choose what type of relationship they would like to create
 	// before creating it.
-	alert('Are you sure you wish to Qualify this Mail as Contact?');
+	alert(alert_arr.WISH_TO_QUALIFY_MAIL_AS_CONTACT);
         add_to_vtiger(mid);
 }
 function add_to_vtiger(mid) {
@@ -357,10 +357,10 @@
            nids=nid;
         else
         {
-            alert("Please select at least one message to delete");
+            alert(alert_arr.SELECT_ATLEAST_ONEMSG_TO_DEL);
             return false;
         }
-        if(confirm("Are you sure you want to delete ?"))
+        if(confirm(alert_arr.SURE_TO_DELETE))
 		runEmailCommand("delete_multi_msg",nids);
 }
 





More information about the vtigercrm-commits mailing list