[Vtigercrm-commits] [vtiger-commits] r10415 - in /vtigercrm/branches/5.0.3/include/js: Inventory.js ListView.js Mail.js Merge.js QuickCreate.js ajax.js customview.js dtlviewajax.js general.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 12 11:26:34 EDT 2007
Author: saraj
Date: Mon Mar 12 09:26:20 2007
New Revision: 10415
Log:
changes made for language support in js alerts. --Minnie
Modified:
vtigercrm/branches/5.0.3/include/js/Inventory.js
vtigercrm/branches/5.0.3/include/js/ListView.js
vtigercrm/branches/5.0.3/include/js/Mail.js
vtigercrm/branches/5.0.3/include/js/Merge.js
vtigercrm/branches/5.0.3/include/js/QuickCreate.js
vtigercrm/branches/5.0.3/include/js/ajax.js
vtigercrm/branches/5.0.3/include/js/customview.js
vtigercrm/branches/5.0.3/include/js/dtlviewajax.js
vtigercrm/branches/5.0.3/include/js/general.js
Modified: vtigercrm/branches/5.0.3/include/js/Inventory.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/Inventory.js (original)
+++ vtigercrm/branches/5.0.3/include/js/Inventory.js Mon Mar 12 09:26:20 2007
@@ -230,7 +230,7 @@
if(max_row_count == 0)
{
- alert('No product is selected. Select at least one Product');
+ alert(alert_arr.NO_PRODUCT_SELECTED);
return false;
}
@@ -261,7 +261,7 @@
temp = /^(0|[1-9]{1}\d{0,})(\.(\d{1}\d{0,}))?$/.test(document.getElementById("discount_percentage_final").value);
if(!temp)
{
- alert("Enter valid Final Discount Percentage");
+ alert(alert_arr.VALID_FINAL_PERCENT);
return false;
}
}
@@ -270,7 +270,7 @@
temp = /^(0|[1-9]{1}\d{0,})(\.(\d{1}\d{0,}))?$/.test(document.getElementById("discount_amount_final").value);
if(!temp)
{
- alert("Enter valid Final Discount Amount");
+ alert(alert_arr.VALID_FINAL_AMOUNT);
return false;
}
}
@@ -279,7 +279,7 @@
temp = /^(0|[1-9]{1}\d{0,})(\.(\d{1}\d{0,}))?$/.test(document.getElementById("shipping_handling_charge").value);
if(!temp)
{
- alert("Enter a valid Shipping & Handling charge");
+ alert(alert_arr.VALID_SHIPPING_CHARGE);
return false;
}
@@ -287,7 +287,7 @@
temp = /^-?(0|[1-9]{1}\d{0,})(\.(\d{1}\d{0,}))?$/.test(document.getElementById("adjustment").value)
if(!temp)
{
- alert("Enter a valid Adjustment");
+ alert(alert_arr.VALID_ADJUSTMENT);
return false;
}
@@ -328,7 +328,7 @@
if(duplicate)
{
//alert("You have selected < "+duplicate_products+" > more than once in line items "+positions+".\n It is advisable to select the product just once but change the Qty. Thank You");
- if(!confirm("You have selected the following product(s) more than once. \n"+duplicate_products+"\n Do you want to Continue?"))
+ if(!confirm(alert_arr.SELECTED_MORE_THAN_ONCE+"\n"+duplicate_products+"\n "+alert_arr.WANT_TO_CONTINUE))
return false;
}
return true;
@@ -346,7 +346,7 @@
{
temp= /^\d+(\.\d\d*)*$/.test(document.getElementById(txtObj).value);
if(temp == false)
- alert("Please enter Valid TAX value");
+ alert(alert_arr.ENTER_VALID_TAX);
}
function loadTaxes_Ajax(curr_row)
@@ -406,12 +406,12 @@
{
if(trim(document.getElementById(fieldname).value)== '')
{
- alert("Enter valid Tax Name");
+ alert(alert_arr.VALID_TAX_NAME);
return false;
}
if(trim(document.getElementById(fieldvalue).value)== '')
{
- alert("Enter Correct Tax Value");
+ alert(alert_arr.CORRECT_TAX_VALUE);
return false;
}
else
@@ -419,7 +419,7 @@
var temp = /^(0|[1-9]{1}\d{0,})(\.(\d{1}\d{0,}))?$/.test(document.getElementById(fieldvalue).value);
if(!temp)
{
- alert("Please enter positive value");
+ alert(alert_arr.ENTER_POSITIVE_VALUE);
return false;
}
}
@@ -450,7 +450,7 @@
if(document.getElementById(taxLabelPrefix+i).value.length == 0)
{
- alert("The tax label name should not be empty");
+ alert(alert_arr.LABEL_SHOULDNOT_EMPTY);
return false
}
@@ -458,7 +458,7 @@
var temp = /^(0|[1-9]{1}\d{0,})(\.(\d{1}\d{0,}))?$/.test(taxval);
if(!temp)
{
- alert("'"+taxval+"' is not a valid entry. Please enter correct value");
+ alert("'"+taxval+"' "+alert_arr.NOT_VALID_ENTRY);
return false;
}
}
@@ -719,7 +719,7 @@
temp = /^(0|[1-9]{1}\d{0,})(\.(\d{1}\d{0,}))?$/.test(document.getElementById("discount_percentage"+i).value);
if(!temp)
{
- alert("Enter a valid Discount percentage");
+ alert(alert_arr.VALID_DISCOUNT_PERCENT);
return false;
}
}
@@ -728,7 +728,7 @@
temp = /^(0|[1-9]{1}\d{0,})(\.(\d{1}\d{0,}))?$/.test(document.getElementById("discount_amount"+i).value);
if(!temp)
{
- alert("Enter a valid Discount Amount");
+ alert(alert_arr.VALID_DISCOUNT_AMOUNT);
return false;
}
}
Modified: vtigercrm/branches/5.0.3/include/js/ListView.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/ListView.js (original)
+++ vtigercrm/branches/5.0.3/include/js/ListView.js Mon Mar 12 09:26:20 2007
@@ -29,7 +29,7 @@
}
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
fnvshobj(obj,divid);
@@ -69,15 +69,15 @@
}
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
- var alert_str = "Are you sure you want to delete the selected "+xx+" records ?";
+ var alert_str = alert_arr.DELETE + xx +alert_arr.RECORDS;
if(module=="Accounts")
- alert_str = "Deleting this account(s) will remove its related Potentials,Quotes,Sales Orders & Invoice. Are you sure you want to delete the selected "+xx+" records?";
+ alert_str = alert_arr.DELETE_ACCOUNT +xx+alert_arr.RECORDS;
else if(module=="Vendors")
- alert_str = "Deleting this vendor(s) will remove its related Purchase Orders. Are you sure you want to delete the selected "+xx+" records?";
+ alert_str = alert_arr.DELETE_VENDOR+xx+alert_arr.RECORDS;
if(confirm(alert_str))
{
Modified: vtigercrm/branches/5.0.3/include/js/Mail.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/Mail.js (original)
+++ vtigercrm/branches/5.0.3/include/js/Mail.js Mon Mar 12 09:26:20 2007
@@ -31,7 +31,7 @@
}
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
allids = document.getElementById('idlist').value;
@@ -63,7 +63,7 @@
}
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
document.massdelete.action="index.php?module=CustomView&action=SendMailAction&return_module="+module+"&return_action=index&viewname="+viewid;
@@ -79,7 +79,7 @@
window.close();
}else
{
- alert('"'+parentname+'" doesn\'t have an Email Id' );
+ alert('"'+parentname+alert_arr.DOESNOT_HAVE_AN_MAILID);
return false;
}
}
@@ -111,7 +111,7 @@
}
else
{
- alert('Please Select a mailid');
+ alert(alert_arr.SELECT_MAILID);
}
}
function sendmail(module,idstrings)
Modified: vtigercrm/branches/5.0.3/include/js/Merge.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/Merge.js (original)
+++ vtigercrm/branches/5.0.3/include/js/Merge.js Mon Mar 12 09:26:20 2007
@@ -25,7 +25,7 @@
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
}
@@ -47,7 +47,7 @@
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
}
@@ -59,7 +59,7 @@
if(getObj('mergefile').value == '')
{
- alert("Please select a template to merge");
+ alert(alert_arr.SELECT_TEMPLATE_TO_MERGE);
return false;
}
document.massdelete.action="index.php?module="+module+"&action=Merge&return_module="+module+"&return_action=index";
Modified: vtigercrm/branches/5.0.3/include/js/QuickCreate.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/QuickCreate.js (original)
+++ vtigercrm/branches/5.0.3/include/js/QuickCreate.js Mon Mar 12 09:26:20 2007
@@ -16,7 +16,7 @@
if (fldType=="text") {
if (currObj.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0) {
- alert(fldLabel+" cannot be empty")
+ alert(fldLabel+alert_arr.CANNOT_BE_EMPTY)
currObj.focus()
@@ -30,7 +30,7 @@
} else {
if (currObj.value == "" ) {
- alert(fldLabel+" cannot be none")
+ alert(fldLabel+alert_arr.CANNOT_BE_NONE)
return false
@@ -73,7 +73,7 @@
}
if (!re.test(currObj.value)) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
currObj.focus()
return false
}
@@ -91,19 +91,19 @@
yyyy=dateelements[2]
if (dd<1 || dd>31 || mm<1 || mm>12 || yyyy<1 || yyyy<1000) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
window.document.QcEditView[fldName].focus()
return false
}
if ((mm==2) && (dd>29)) {//checking of no. of days in february month
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
window.document.QcEditView[fldName].focus()
return false
}
if ((mm==2) && (dd>28) && ((yyyy%4)!=0)) {//leap year checking
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
window.document.QcEditView[fldName].focus()
return false
}
@@ -114,7 +114,7 @@
case 6 :
case 9 :
case 11 : if (dd>30) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
window.document.QcEditView[fldName].focus()
return false
}
@@ -173,13 +173,13 @@
var val=window.document.QcEditView[fldName].value.replace(/^\s+/g, '').replace(/\s+$/g, '')
if (isNaN(val) || (val.indexOf(".")!=-1 && fldName != 'potential_amount'))
{
- alert("Invalid "+fldLabel)
+ alert(alert_arr.INVALID+fldLabel)
window.document.QcEditView[fldName].focus()
return false
}
else if( val < -2147483648 || val > 2147483647)
{
- alert(fldLabel +" is out of range");
+ alert(fldLabel +alert_arr.OUT_OF_RANGE);
return false;
}
@@ -196,32 +196,32 @@
var ret=true
switch (type) {
case "L" : if (val>=constval) {
- alert(fldLabel+" should be less than "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_LESS+constval)
ret=false
}
break;
case "LE" : if (val>constval) {
- alert(fldLabel+" should be less than or equal to "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_LESS_EQUAL+constval)
ret=false
}
break;
case "E" : if (val!=constval) {
- alert(fldLabel+" should be equal to "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_EQUAL+constval)
ret=false
}
break;
case "NE" : if (val==constval) {
- alert(fldLabel+" should not be equal to "+constval)
+ alert(fldLabel+alert_arr.SHOULDNOTBE_EQUAL+constval)
ret=false
}
break;
case "G" : if (val<=constval) {
- alert(fldLabel+" should be greater than "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_GREATER+constval)
ret=false
}
break;
case "GE" : if (val<constval) {
- alert(fldLabel+" should be greater than or equal to "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_GREATER_EQUAL+constval)
ret=false
}
break;
@@ -243,19 +243,19 @@
yyyy=dateelements[2];
if (dd<1 || dd>31 || mm<1 || mm>12 || yyyy<1 || yyyy<1000) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
window.document.QcEditView[dateFldName].focus()
return false
}
if ((mm==2) && (dd>29)) {//checking of no. of days in february month
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
window.document.QcEditView[dateFldName].focus()
return false
}
if ((mm==2) && (dd>28) && ((yyyy%4)!=0)) {//leap year checking
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
window.document.QcEditView[dateFldName].focus()
return false
}
@@ -266,7 +266,7 @@
case 6 :
case 9 :
case 11 : if (dd>30) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
window.document.QcEditView[dateFldName].focus()
return false
}
@@ -281,7 +281,7 @@
var currObj=window.document.QcEditView[timeFldName]
if (hourval>23 || minval>59) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
currObj.focus()
return false
}
Modified: vtigercrm/branches/5.0.3/include/js/ajax.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/ajax.js (original)
+++ vtigercrm/branches/5.0.3/include/js/ajax.js Mon Mar 12 09:26:20 2007
@@ -81,7 +81,7 @@
var response = me.callback(me.requester);
break;
default:
- alert("Error");
+ alert(alert_arr.ERROR);
break;
}
}
Modified: vtigercrm/branches/5.0.3/include/js/customview.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/customview.js (original)
+++ vtigercrm/branches/5.0.3/include/js/customview.js Mon Mar 12 09:26:20 2007
@@ -42,7 +42,7 @@
var mode = document.getElementById('cfedit_mode').value;
if(fieldtype == "" && mode != 'edit')
{
- alert("Field Type is not selected");
+ alert(alert_arr.FIELD_TYPE_NOT_SELECTED);
return false;
}
lengthLayer=getObj("lengthdetails")
@@ -55,7 +55,7 @@
var re1=/^[a-z\d\_ ]+$/i
if (!re1.test(str))
{
- alert("Special characters are not allowed in Label field")
+ alert(alert_arr.SPECIAL_CHARACTERS_NOT_ALLOWED)
return false;
}
@@ -99,7 +99,7 @@
//Empty Check validation
for (i=0;i<pickListAry.length;i++) {
if (pickListAry[i]=="") {
- alert("Picklist value cannot be empty")
+ alert(alert_arr.PICKLIST_CANNOT_BE_EMPTY)
picklistObj.focus()
return false
}
@@ -109,7 +109,7 @@
for (i=0;i<pickListAry.length;i++) {
for (j=i+1;j<pickListAry.length;j++) {
if (pickListAry[i]==pickListAry[j]) {
- alert("Duplicate Values found")
+ alert(alert_arr.DUPLICATE_VALUES_FOUND)
picklistObj.focus()
return false
}
@@ -285,7 +285,7 @@
{
if( account[i] == account[j] && account[i]!="None" && account[j] !="None")
{
- alert("Duplicate mapping for accounts!!");
+ alert(alert_arr.DUPLICATE_MAPPING_ACCOUNTS);
return false;
}
}
@@ -296,7 +296,7 @@
{
if( contact[i] == contact[k] && contact[i]!="None" && contact[k]!="None")
{
- alert("Duplicate mapping for Contacts!!");
+ alert(alert_arr.DUPLICATE_MAPPING_CONTACTS);
return false;
}
}
@@ -307,7 +307,7 @@
{
if( potential[i] == potential[l] && potential[i]!="None" && potential[l]!="None")
{
- alert("Duplicate mapping for Potential!!");
+ alert(alert_arr.DUPLICATE_MAPPING_POTENTIAL);
return false;
}
}
Modified: vtigercrm/branches/5.0.3/include/js/dtlviewajax.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/dtlviewajax.js (original)
+++ vtigercrm/branches/5.0.3/include/js/dtlviewajax.js Mon Mar 12 09:26:20 2007
@@ -214,7 +214,7 @@
onComplete: function(response) {
if(response.responseText.indexOf(":#:FAILURE")>-1)
{
- alert("Error while Editing");
+ alert(alert_arr.ERROR_WHILE_EDITING);
}
else if(response.responseText.indexOf(":#:SUCCESS")>-1)
{
Modified: vtigercrm/branches/5.0.3/include/js/general.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/general.js (original)
+++ vtigercrm/branches/5.0.3/include/js/general.js Mon Mar 12 09:26:20 2007
@@ -194,7 +194,7 @@
if (fldType=="text") {
if (currObj.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0) {
- alert(fldLabel+" cannot be empty")
+ alert(fldLabel+alert_arr.CANNOT_BE_EMPTY)
currObj.focus()
@@ -208,7 +208,7 @@
} else {
if (currObj.value == "" ) {
- alert(fldLabel+" cannot be none")
+ alert(fldLabel+alert_arr.CANNOT_BE_NONE)
return false
@@ -253,7 +253,7 @@
}
if (!re.test(currObj.value)) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID + fldLabel)
currObj.focus()
return false
}
@@ -292,27 +292,27 @@
var ret=true
switch (type) {
case 'L' : if (date1>=date2) {//DATE1 VALUE LESS THAN DATE2
- alert(fldLabel1+" should be less than "+fldLabel2)
+ alert(fldLabel1+ alert_arr.SHOULDBE_LESS +fldLabel2)
ret=false
}
break;
case 'LE' : if (date1>date2) {//DATE1 VALUE LESS THAN OR EQUAL TO DATE2
- alert(fldLabel1+" should be less than or equal to "+fldLabel2)
+ alert(fldLabel1+alert_arr.SHOULDBE_LESS_EQUAL+fldLabel2)
ret=false
}
break;
case 'E' : if (date1!=date2) {//DATE1 VALUE EQUAL TO DATE
- alert(fldLabel1+" should be equal to "+fldLabel2)
+ alert(fldLabel1+alert_arr.SHOULDBE_EQUAL+fldLabel2)
ret=false
}
break;
case 'G' : if (date1<=date2) {//DATE1 VALUE GREATER THAN DATE2
- alert(fldLabel1+" should be greater than "+fldLabel2)
+ alert(fldLabel1+alert_arr.SHOULDBE_GREATER+fldLabel2)
ret=false
}
break;
case 'GE' : if (date1<date2) {//DATE1 VALUE GREATER THAN OR EQUAL TO DATE2
- alert(fldLabel1+" should be greater than or equal to "+fldLabel2)
+ alert(fldLabel1+alert_arr.SHOULDBE_GREATER_EQUAL+fldLabel2)
ret=false
}
break;
@@ -334,19 +334,19 @@
yyyy=dateelements[2]
if (dd<1 || dd>31 || mm<1 || mm>12 || yyyy<1 || yyyy<1000) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
getObj(dateFldName).focus()
return false
}
if ((mm==2) && (dd>29)) {//checking of no. of days in february month
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
getObj(dateFldName).focus()
return false
}
if ((mm==2) && (dd>28) && ((yyyy%4)!=0)) {//leap year checking
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
getObj(dateFldName).focus()
return false
}
@@ -357,7 +357,7 @@
case 6 :
case 9 :
case 11 : if (dd>30) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
getObj(dateFldName).focus()
return false
}
@@ -372,7 +372,7 @@
var currObj=getObj(timeFldName)
if (hourval>23 || minval>59) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
currObj.focus()
return false
}
@@ -453,19 +453,19 @@
yyyy=dateelements[2]
if (dd<1 || dd>31 || mm<1 || mm>12 || yyyy<1 || yyyy<1000) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
getObj(fldName).focus()
return false
}
if ((mm==2) && (dd>29)) {//checking of no. of days in february month
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
getObj(fldName).focus()
return false
}
if ((mm==2) && (dd>28) && ((yyyy%4)!=0)) {//leap year checking
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
getObj(fldName).focus()
return false
}
@@ -476,7 +476,7 @@
case 6 :
case 9 :
case 11 : if (dd>30) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
getObj(fldName).focus()
return false
}
@@ -541,7 +541,7 @@
var currObj=getObj(fldName)
if (hourval>23 || minval>59) {
- alert("Please enter a valid "+fldLabel)
+ alert(alert_arr.ENTER_VALID+fldLabel)
currObj.focus()
return false
}
@@ -614,7 +614,7 @@
invalid=true
}
if (invalid==true) {
- alert("Invalid "+fldLabel)
+ alert(alert_arr.INVALID+fldLabel)
getObj(fldName).focus()
return false
} else return true
@@ -624,7 +624,7 @@
if(splitval[0]>18446744073709551615)
{
- alert( fldLabel + " exceeds the maximum limit ");
+ alert( fldLabel + alert_arr.EXCEEDS_MAX);
return false;
}
@@ -635,7 +635,7 @@
var re=/^\d+(\.\d\d*)*$/
}
if (!re.test(val)) {
- alert("Invalid "+fldLabel)
+ alert(alert_arr.INVALID+fldLabel)
getObj(fldName).focus()
return false
} else return true
@@ -646,13 +646,13 @@
var val=getObj(fldName).value.replace(/^\s+/g, '').replace(/\s+$/g, '')
if (isNaN(val) || (val.indexOf(".")!=-1 && fldName != 'potential_amount'))
{
- alert("Invalid "+fldLabel)
+ alert(alert_arr.INVALID+fldLabel)
getObj(fldName).focus()
return false
}
else if( val < -2147483648 || val > 2147483647)
{
- alert(fldLabel +" is out of range");
+ alert(fldLabel +alert_arr.OUT_OF_RANGE);
return false;
}
@@ -669,32 +669,32 @@
var ret=true
switch (type) {
case "L" : if (val>=constval) {
- alert(fldLabel+" should be less than "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_LESS+constval)
ret=false
}
break;
case "LE" : if (val>constval) {
- alert(fldLabel+" should be less than or equal to "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_LESS_EQUAL+constval)
ret=false
}
break;
case "E" : if (val!=constval) {
- alert(fldLabel+" should be equal to "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_EQUAL+constval)
ret=false
}
break;
case "NE" : if (val==constval) {
- alert(fldLabel+" should not be equal to "+constval)
+ alert(fldLabel+alert_arr.SHOULDNOTBE_EQUAL+constval)
ret=false
}
break;
case "G" : if (val<=constval) {
- alert(fldLabel+" should be greater than "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_GREATER+constval)
ret=false
}
break;
case "GE" : if (val<constval) {
- alert(fldLabel+" should be greater than or equal to "+constval)
+ alert(fldLabel+alert_arr.SHOULDBE_GREATER_EQUAL+constval)
ret=false
}
break;
@@ -713,7 +713,7 @@
if(gVTModule == 'Contacts' && gValidationCall != 'tabchange')
{
if(getObj('portal').checked && trim(getObj('email').value) == '') {
- alert("Portal user should provide email Id for portal login");
+ alert(alert_arr.PORTAL_PROVIDE_EMAILID);
return false;
}
}
@@ -1598,7 +1598,7 @@
}
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
}
@@ -1625,10 +1625,10 @@
}
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
- if(confirm("Are you sure you want to add the selected "+y+" records ?"))
+ if(confirm(alert_arr.ADD_CONFIRMATION+y+alert_arr.RECORDS))
{
if(parmod == 'Calendar')
{
@@ -1746,7 +1746,7 @@
var fieldvalue = getObj(fieldname).value;
if(fieldvalue == '')
{
- alert("AccountName Cannot be Empty");
+ alert(alert_arr.ACCOUNTNAME_CANNOT_EMPTY);
return false;
}
var url = "module="+module+"&action="+module+"Ajax&file=Save&"+fieldname+"="+fieldvalue+"&dup_check=true"
@@ -1804,7 +1804,7 @@
module = rel_parent_module.split("&");
if(record_id != '' && module[0] == "Leads")
{
- alert("You can't select related contacts from Lead ");
+ alert(alert_arr.CANT_SELECT_CONTACTS);
formName.selectcnt.disabled="true";
}
else
@@ -1840,7 +1840,7 @@
}
if(task_recordid != '' && task_module[0] == "Leads" )
{
- alert("You can't select related contacts from Lead ");
+ alert(alert_arr.CANT_SELECT_CONTACTS);
frmName.contact_name.value = '';
frmName.selectcnt.disabled="true"
}
@@ -1892,7 +1892,7 @@
var check = true;
if(emailid == '' && yahooid == '')
{
- alert("This "+parent_module+" doesn't have any mail ids");
+ alert(alert_arr.LBL_THIS+parent_module+alert_arr.DOESNOT_HAVE_MAILIDS);
check=false;
}
return check;
@@ -1967,7 +1967,7 @@
function confirmdelete(url)
{
-if(confirm("Are you sure?"))
+if(confirm(alert_arr.ARE_YOU_SURE))
{
document.location.href=url;
}
More information about the vtigercrm-commits
mailing list