[Vtigercrm-commits] [vtiger-commits] r10413 - in /vtigercrm/branches/5.0.3/Smarty/templates: ./ Inventory/ Settings/
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 12 11:18:10 EDT 2007
Author: saraj
Date: Mon Mar 12 09:17:38 2007
New Revision: 10413
Log:
changes made for language support in js alerts. --Minnie
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/ActivityDetailView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/AddProductToPriceBooks.tpl
vtigercrm/branches/5.0.3/Smarty/templates/CreateEmailTemplate.tpl
vtigercrm/branches/5.0.3/Smarty/templates/CurrencyEditView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/CustomFieldList.tpl
vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/DeleteRole.tpl
vtigercrm/branches/5.0.3/Smarty/templates/DetailView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl
vtigercrm/branches/5.0.3/Smarty/templates/GroupEditView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Header.tpl
vtigercrm/branches/5.0.3/Smarty/templates/ImportStep2.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Inventory/InventoryDetailView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Inventory/ProductDetails.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Inventory/ProductDetailsEditView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/ListEmailTemplates.tpl
vtigercrm/branches/5.0.3/Smarty/templates/ListLeadCustomFieldMapping.tpl
vtigercrm/branches/5.0.3/Smarty/templates/ListWordTemplates.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Migration.tpl
vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingDetailView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingEditView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/ProfileDetailView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Reports.tpl
vtigercrm/branches/5.0.3/Smarty/templates/RoleEditView.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Rss.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Settings/EditCompanyInfo.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Settings/EmailConfig.tpl
vtigercrm/branches/5.0.3/Smarty/templates/Settings/PickList.tpl
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ActivityDetailView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ActivityDetailView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ActivityDetailView.tpl Mon Mar 12 09:17:38 2007
@@ -27,7 +27,7 @@
SaveTag('txtbox_tagfields','{$ID}','{$MODULE}');
else
{ldelim}
- alert("Please enter a tag");
+ alert("{$APP.PLEASE_ENTER_TAG}");
return false;
{rdelim}
{rdelim}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/AddProductToPriceBooks.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/AddProductToPriceBooks.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/AddProductToPriceBooks.tpl Mon Mar 12 09:17:38 2007
@@ -31,12 +31,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;
}
@@ -46,7 +46,7 @@
}
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
}
@@ -79,12 +79,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;
}
@@ -95,7 +95,7 @@
}
else
{
- alert("Please select at least one entity");
+ alert(alert_arr.SELECT);
return false;
}
}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/CreateEmailTemplate.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/CreateEmailTemplate.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/CreateEmailTemplate.tpl Mon Mar 12 09:17:38 2007
@@ -311,7 +311,7 @@
// Here we decide whether to submit the form.
if (isError == true) {ldelim}
- alert("Missing required fields: " + errorMessage);
+ alert("{$APP.MISSING_FIELDS}" + errorMessage);
return false;
{rdelim}
return true;
Modified: vtigercrm/branches/5.0.3/Smarty/templates/CurrencyEditView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/CurrencyEditView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/CurrencyEditView.tpl Mon Mar 12 09:17:38 2007
@@ -131,8 +131,10 @@
if(isNaN(getObj("conversion_rate").value) || eval(getObj("conversion_rate")
.value) == 0)
{
- alert("Enter valid Conversion Rate")
+ {/literal}
+ alert("{$APP.ENTER_VALID_CONVERSION_RATE}")
return false
+ {literal}
}
return true;
Modified: vtigercrm/branches/5.0.3/Smarty/templates/CustomFieldList.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/CustomFieldList.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/CustomFieldList.tpl Mon Mar 12 09:17:38 2007
@@ -29,7 +29,9 @@
{literal}
function deleteCustomField(id, fld_module, colName, uitype)
{
- if(confirm("Are you sure?"))
+ {/literal}
+ if(confirm("{$APP.ARE_YOU_SURE}"))
+ {literal}
{
document.form.action="index.php?module=Settings&action=DeleteCustomField&fld_module="+fld_module+"&fld_id="+id+"&colName="+colName+"&uitype="+uitype
document.form.submit()
Modified: vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl Mon Mar 12 09:17:38 2007
@@ -92,7 +92,7 @@
{rdelim}
if(mandatorycheck == false)
{ldelim}
- alert("Must have one Required field to be selected\n"+showvalues);
+ alert("{$APP.MUSTHAVE_ONE_REQUIREDFIELD}"+showvalues);
{rdelim}
return false;
@@ -608,9 +608,11 @@
selected_cv_icolumnvalue = $(cvselect_array[iloop]).options[$(cvselect_array[iloop]).selectedIndex].value;
if(selected_cv_columnvalue == selected_cv_icolumnvalue)
{
- alert('Columns cannot be duplicated');
- $(cvselect_array[iloop]).selectedIndex = 0;
- return false;
+ {/literal}
+ alert('{$APP.COLUMNS_CANNOT_BE_DUPLICATED}');
+ $(cvselect_array[iloop]).selectedIndex = 0;
+ return false;
+ {literal}
}
}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/DeleteRole.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/DeleteRole.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/DeleteRole.tpl Mon Mar 12 09:17:38 2007
@@ -83,8 +83,10 @@
{
if(document.getElementById('role_name').value == '')
{
- alert('Specfiy the Role to Transfer Existing Roles Users');
- return false;
+ {/literal}
+ alert('{$APP.SPECIFY_ROLE_INFO}');
+ return false;
+ {literal}
}
return true;
}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/DetailView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/DetailView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/DetailView.tpl Mon Mar 12 09:17:38 2007
@@ -50,7 +50,7 @@
SaveTag('txtbox_tagfields','{$ID}','{$MODULE}');
else
{ldelim}
- alert("Please enter a tag");
+ alert("{$APP.PLEASE_ENTER_TAG}");
return false;
{rdelim}
{rdelim}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl Mon Mar 12 09:17:38 2007
@@ -693,7 +693,7 @@
{ldelim}
temp= /^\d+\.\d+$/.test(document.getElementById(txtObj).value);
if(temp == false)
- alert("Please enter Valid TAX value");
+ alert("{$APP.ENTER_VALID_TAX}");
{rdelim}
function delimage(id)
@@ -708,7 +708,7 @@
if(response.responseText.indexOf("SUCESS")>-1)
$("replaceimage").innerHTML='{$APP.LBL_IMAGE_DELETED}';
else
- alert("Error while Deleting")
+ alert("{$APP.ERROR_WHILE_EDITING}")
{rdelim}
{rdelim}
);
Modified: vtigercrm/branches/5.0.3/Smarty/templates/GroupEditView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/GroupEditView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/GroupEditView.tpl Mon Mar 12 09:17:38 2007
@@ -136,7 +136,7 @@
if(trim(document.newGroupForm.groupName.value) == "")
{ldelim}
- alert('Group Name cannot be none');
+ alert('{$APP.GROUPNAME_CANNNOT_BE_NONE}');
return false;
{rdelim}
@@ -144,7 +144,7 @@
if(document.newGroupForm.selectedColumnsString.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0)
{ldelim}
- alert('Group should have at least one member. Select a member to the group');
+ alert('{$APP.GROUP_SHOULDHAVE_ONEMEMBER_INFO}');
return false;
{rdelim}
dup_validation();
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Header.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Header.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Header.tpl Mon Mar 12 09:17:38 2007
@@ -465,6 +465,92 @@
</table>
</div>
<script>
+ var alert_arr = {ldelim}DELETE:'{$APP.DELETE_CONFIRMATION}',
+ RECORDS:'{$APP.RECORDS}',
+ SELECT:'{$APP.SELECT_ATLEAST_ONE}',
+ DELETE_ACCOUNT:'{$APP.DELETING_ACCOUNT}',
+ DELETE_VENDOR:'{$APP.DELETING_VENDOR}',
+ SELECT_MAILID:'{$APP.PLEASE_SELECT_MAILID}',
+ OVERWRITE_EXISTING_ACCOUNT1:'{$APP.OVERWRITE_EXISTING_ACCOUNT1}',
+ OVERWRITE_EXISTING_ACCOUNT2:'{$APP.OVERWRITE_EXISTING_ACCOUNT2}',
+ MISSING_FIELDS:'{$APP.MISSING_FIELDS}',
+ NOT_ALLOWED_TO_EDIT:'{$APP.NOT_ALLOWED_TO_EDIT}',
+ COLUMNS_CANNOT_BE_EMPTY:'{$APP.COLUMNS_CANNOT_BE_EMPTY}',
+ CANNOT_BE_EMPTY:'{$APP.CANNOT_BE_EMPTY}',
+ CANNOT_BE_NONE:'{$APP.CANNOT_BE_NONE}',
+ ENTER_VALID:'{$APP.ENTER_VALID}',
+ SHOULDBE_LESS:'{$APP.SHOULDBE_LESS}',
+ SHOULDBE_LESS_EQUAL:'{$APP.SHOULDBE_LESS_EQUAL}',
+ SHOULDBE_EQUAL:'{$APP.SHOULDBE_EQUAL}',
+ SHOULDBE_GREATER:'{$APP.SHOULDBE_GREATER}',
+ SHOULDBE_GREATER_EQUAL:'{$APP.SHOULDBE_GREATER_EQUAL}',
+ INVALID:'{$APP.INVALID}',
+ EXCEEDS_MAX:'{$APP.EXCEEDS_MAX}',
+ OUT_OF_RANGE:'{$APP.OUT_OF_RANGE}',
+ SHOULDNOTBE_EQUAL:'{$APP.SHOULDNOTBE_EQUAL}',
+ PORTAL_PROVIDE_EMAILID:'{$APP.PORTAL_PROVIDE_EMAILID}',
+ ADD_CONFIRMATION:'{$APP.ADD_CONFIRMATION}',
+ ADD_CONFIRMATION:'{$APP.ADD_CONFIRMATION}',
+ ACCOUNTNAME_CANNOT_EMPTY:'{$APP.ACCOUNTNAME_CANNOT_EMPTY}',
+ CANT_SELECT_CONTACTS:'{$APP.CANT_SELECT_CONTACTS}',
+ LBL_THIS:'{$APP.LBL_THIS}',
+ DOESNOT_HAVE_MAILIDS:'{$APP.DOESNOT_HAVE_MAILIDS}',
+ ARE_YOU_SURE:'{$APP.ARE_YOU_SURE}',
+ DOESNOT_HAVE_AN_MAILID:'{$APP.DOESNOT_HAVE_AN_MAILID}',
+ MISSING_REQUIRED_FIELDS:'{$APP.MISSING_REQUIRED_FIELDS}',
+ READONLY:'{$APP.READONLY}',
+ SELECT_ATLEAST_ONE_USER:'{$APP.SELECT_ATLEAST_ONE_USER}',
+ DISABLE_SHARING_CONFIRMATION:'{$APP.DISABLE_SHARING_CONFIRMATION}',
+ USERS:'{$APP.USERS}',
+ ENDTIME_GREATER_THAN_STARTTIME:'{$APP.ENDTIME_GREATER_THAN_STARTTIME}',
+ FOLLOWUPTIME_GREATER_THAN_STARTTIME:'{$APP.FOLLOWUPTIME_GREATER_THAN_STARTTIME}',
+ MISSING_EVENT_NAME:'{$APP.MISSING_EVENT_NAME}',
+ EVENT_TYPE_NOT_SELECTED:'{$APP.EVENT_TYPE_NOT_SELECTED}',
+ OPPORTUNITYNAME_CANNOT_BE_EMPTY:'{$APP.OPPORTUNITYNAME_CANNOT_BE_EMPTY}',
+ CLOSEDATE_CANNOT_BE_EMPTY:'{$APP.CLOSEDATE_CANNOT_BE_EMPTY}',
+ SITEURL_CANNOT_BE_EMPTY:'{$APP.SITEURL_CANNOT_BE_EMPTY}',
+ SITENAME_CANNOT_BE_EMPTY:'{$APP.SITENAME_CANNOT_BE_EMPTY}',
+ LISTPRICE_CANNOT_BE_EMPTY:'{$APP.LISTPRICE_CANNOT_BE_EMPTY}',
+ INVALID_LIST_PRICE:'{$APP.INVALID_LIST_PRICE}',
+ PROBLEM_ACCESSSING_URL:'{$APP.PROBLEM_ACCESSSING_URL}',
+ CODE:'{$APP.CODE}',
+ WISH_TO_QUALIFY_MAIL_AS_CONTACT:'{$APP.WISH_TO_QUALIFY_MAIL_AS_CONTACT}',
+ SELECT_ATLEAST_ONEMSG_TO_DEL:'{$APP.SELECT_ATLEAST_ONEMSG_TO_DEL}',
+ ERROR:'{$APP.ERROR}',
+ FIELD_TYPE_NOT_SELECTED:'{$APP.FIELD_TYPE_NOT_SELECTED}',
+ SPECIAL_CHARACTERS_NOT_ALLOWED:'{$APP.SPECIAL_CHARACTERS_NOT_ALLOWED}',
+ PICKLIST_CANNOT_BE_EMPTY:'{$APP.PICKLIST_CANNOT_BE_EMPTY}',
+ DUPLICATE_VALUES_FOUND:'{$APP.DUPLICATE_VALUES_FOUND}',
+ DUPLICATE_MAPPING_ACCOUNTS:'{$APP.DUPLICATE_MAPPING_ACCOUNTS}',
+ DUPLICATE_MAPPING_CONTACTS:'{$APP.DUPLICATE_MAPPING_CONTACTS}',
+ DUPLICATE_MAPPING_POTENTIAL:'{$APP.DUPLICATE_MAPPING_POTENTIAL}',
+ ERROR_WHILE_EDITING:'{$APP.ERROR_WHILE_EDITING}',
+ CURRENCY_CHANGE_INFO:'{$APP.CURRENCY_CHANGE_INFO}',
+ CURRENCY_CONVERSION_INFO:'{$APP.CURRENCY_CONVERSION_INFO}',
+ THE_EMAILID:'{$APP.THE_EMAILID}',
+ EMAIL_FIELD_INVALID:'{$APP.EMAIL_FIELD_INVALID}',
+ MISSING_REPORT_NAME:'{$APP.MISSING_REPORT_NAME}',
+ REPORT_NAME_EXISTS:'{$APP.REPORT_NAME_EXISTS}',
+ WANT_TO_CHANGE_CONTACT_ADDR:'{$APP.WANT_TO_CHANGE_CONTACT_ADDR}',
+ SURE_TO_DELETE:'{$APP.SURE_TO_DELETE}',
+ NO_PRODUCT_SELECTED:'{$APP.NO_PRODUCT_SELECTED}',
+ VALID_FINAL_PERCENT:'{$APP.VALID_FINAL_PERCENT}',
+ VALID_FINAL_AMOUNT:'{$APP.VALID_FINAL_AMOUNT}',
+ VALID_SHIPPING_CHARGE:'{$APP.VALID_SHIPPING_CHARGE}',
+ VALID_ADJUSTMENT:'{$APP.VALID_ADJUSTMENT}',
+ WANT_TO_CONTINUE:'{$APP.WANT_TO_CONTINUE}',
+ ENTER_VALID_TAX:'{$APP.ENTER_VALID_TAX}',
+ VALID_TAX_NAME:'{$APP.VALID_TAX_NAME}',
+ CORRECT_TAX_VALUE:'{$APP.CORRECT_TAX_VALUE}',
+ ENTER_POSITIVE_VALUE:'{$APP.ENTER_POSITIVE_VALUE}',
+ LABEL_SHOULDNOT_EMPTY:'{$APP.LABEL_SHOULDNOT_EMPTY}',
+ NOT_VALID_ENTRY:'{$APP.NOT_VALID_ENTRY}',
+ VALID_DISCOUNT_PERCENT:'{$APP.VALID_DISCOUNT_PERCENT}',
+ VALID_DISCOUNT_AMOUNT:'{$APP.VALID_DISCOUNT_AMOUNT}',
+ SELECT_TEMPLATE_TO_MERGE:'{$APP.SELECT_TEMPLATE_TO_MERGE}',
+
+ {rdelim};
+
var THandle = document.getElementById("Track_Handle");
var TRoot = document.getElementById("tracker");
Drag.init(THandle, TRoot);
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ImportStep2.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ImportStep2.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ImportStep2.tpl Mon Mar 12 09:17:38 2007
@@ -55,7 +55,7 @@
//we have emptied the map name from the select list
document.getElementById("saved_source").options[options_collection.selectedIndex] = null;
document.getElementById("delete_mapping").style.visibility = "hidden";
- alert("This map has been deleted. You cannot use this map again");
+ alert("{$APP.MAP_DELETED_INFO}");
{rdelim}
</script>
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Inventory/InventoryDetailView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Inventory/InventoryDetailView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Inventory/InventoryDetailView.tpl Mon Mar 12 09:17:38 2007
@@ -25,7 +25,7 @@
SaveTag('txtbox_tagfields','{$ID}','{$MODULE}');
else
{ldelim}
- alert("Please enter a tag");
+ alert("{$APP.PLEASE_ENTER_TAG}");
return false;
{rdelim}
{rdelim}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Inventory/ProductDetails.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Inventory/ProductDetails.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Inventory/ProductDetails.tpl Mon Mar 12 09:17:38 2007
@@ -28,7 +28,7 @@
var curr_productid = document.getElementById("hdnProductId"+curr_row).value;
if(curr_productid == '')
{ldelim}
- alert("Please select a Product");
+ alert("{$APP.PLEASE_SELECT_PRODUCT}");
return false;
{rdelim}
{rdelim}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Inventory/ProductDetailsEditView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Inventory/ProductDetailsEditView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Inventory/ProductDetailsEditView.tpl Mon Mar 12 09:17:38 2007
@@ -29,7 +29,7 @@
var curr_productid = document.getElementById("hdnProductId"+curr_row).value;
if(curr_productid == '')
{ldelim}
- alert("Please select a Product");
+ alert("{$APP.PLEASE_SELECT_PRODUCT}");
return false;
{rdelim}
{rdelim}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ListEmailTemplates.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ListEmailTemplates.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ListEmailTemplates.tpl Mon Mar 12 09:17:38 2007
@@ -62,8 +62,7 @@
else
{ldelim}
document.massdelete.profile.style.display="none";
- alert("Please select at least one entity");
-
+ alert("{$APP.SELECT_ATLEAST_ONE}");
return false;
{rdelim}
{rdelim}
@@ -84,11 +83,11 @@
{rdelim}
else
{ldelim}
- alert("Please select at least one entity");
+ alert("{$APP.SELECT_ATLEAST_ONE}");
return false;
{rdelim}
{rdelim}
- if(confirm("Are you sure you want to delete the selected "+xx+" records ?"))
+ if(confirm("{$APP.DELETE_CONFIRMATION}"+xx+"{$APP.RECORDS}"))
{ldelim}
document.massdelete.action="index.php?module=Settings&action=deleteemailtemplate&return_module=Settings&return_action=listemailtemplates";
{rdelim}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ListLeadCustomFieldMapping.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ListLeadCustomFieldMapping.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ListLeadCustomFieldMapping.tpl Mon Mar 12 09:17:38 2007
@@ -83,7 +83,7 @@
<script>
function confirmdelete(url)
{ldelim}
- if(confirm("Are you sure?"))
+ if(confirm("{$APP.ARE_YOU_SURE}"))
{ldelim}
document.location.href=url;
{rdelim}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ListWordTemplates.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ListWordTemplates.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ListWordTemplates.tpl Mon Mar 12 09:17:38 2007
@@ -28,7 +28,7 @@
{rdelim}
else
{ldelim}
- alert("Please select at least one entity");
+ alert("{$APP.SELECT_ATLEAST_ONE}");
return false;
{rdelim}
{rdelim}
@@ -49,11 +49,11 @@
{rdelim}
else
{ldelim}
- alert("Please select at least one entity");
+ alert("{$APP.SELECT_ATLEAST_ONE}");
return false;
{rdelim}
{rdelim}
- if(confirm("Are you sure you want to delete the selected "+xx+" records ?"))
+ if(confirm("{$APP.DELETE_CONFIRMATION}"+xx+"{$APP.RECORDS}"))
{ldelim}
document.massdelete.action.value= "deletewordtemplate";
{rdelim}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Migration.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Migration.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Migration.tpl Mon Mar 12 09:17:38 2007
@@ -136,7 +136,9 @@
{
var tagName = document.getElementById('source_version');
var source_version = tagName.options[tagName.selectedIndex].text;
- if(confirm("Are you sure to apply the Database Changes from "+source_version+" to "+current_version))
+ {/literal}
+ if(confirm("{$APP.DATABASE_CHANGE_CONFIRMATION}"+source_version+"{$APP.TO}"+current_version))
+ {literal}
return true;
else
return false;
Modified: vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingDetailView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingDetailView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingDetailView.tpl Mon Mar 12 09:17:38 2007
@@ -280,7 +280,7 @@
function confirmdelete(url)
{ldelim}
- if(confirm("Are you sure?"))
+ if(confirm("{$APP.ARE_YOU_SURE}"))
{ldelim}
document.location.href=url;
{rdelim}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingEditView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingEditView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingEditView.tpl Mon Mar 12 09:17:38 2007
@@ -87,7 +87,7 @@
{ldelim}
if (share_value == "3")
{ldelim}
- alert("Potentials, HelpDesk, Quotes, SalesOrder & Invoice Access must be set to Private when the Account Access is set to Private");
+ alert("{$APP.ACCOUNT_ACCESS_INFO}");
document.getElementById('2_perm_combo').options[3].selected=true
document.getElementById('13_perm_combo').options[3].selected=true
document.getElementById('20_perm_combo').options[3].selected=true
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ProfileDetailView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ProfileDetailView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ProfileDetailView.tpl Mon Mar 12 09:17:38 2007
@@ -31,7 +31,9 @@
{
$('profile_name').focus();
- alert("Profile Name Cannot be empty");
+ {/literal}
+ alert("{$APP.PROFILENAME_CANNOT_BE_EMPTY}");
+ {literal}
}
else
{
@@ -49,7 +51,9 @@
{
$('renameProfile').style.display="none";
window.location.reload();
- alert("Profile Details are updated");
+ {/literal}
+ alert("{$APP.PROFILE_DETAILS_UPDATED}");
+ {literal}
}
}
);
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Reports.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Reports.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Reports.tpl Mon Mar 12 09:17:38 2007
@@ -135,7 +135,9 @@
{
var title = 'folder'+id;
var fldr_name = getObj(title).innerHTML;
- if(confirm("Are you sure you want to delete the folder '"+fldr_name +"' ?"))
+ {/literal}
+ if(confirm("{$APP.DELETE_FOLDER_CONFIRMATION}"+fldr_name +"' ?"))
+ {literal}
{
new Ajax.Request(
'index.php',
@@ -159,8 +161,10 @@
{
if(getObj('folder_name').value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0)
{
- alert('The Folder name cannot be empty');
- return false;
+ {/literal}
+ alert('{$APP.FOLDERNAME_CANNOT_BE_EMPTY}');
+ return false;
+ {literal}
}
else
{
@@ -172,8 +176,10 @@
onComplete: function(response) {
if(response.responseText!=0)
{
- alert("Folder name already exists, try again...");
- return false;
+ {/literal}
+ alert("{$APP.FOLDER_NAME_ALREADY_EXISTS}");
+ return false;
+ {literal}
}
else
{
@@ -262,8 +268,9 @@
}
}
if(idstring != '')
- {
- if(confirm("Are you sure you want to delete the selected "+count+" reports ?"))
+ { {/literal}
+ if(confirm("{$APP.DELETE_CONFIRMATION}"+count+"{$APP.RECORDS}"))
+ {literal}
{
new Ajax.Request(
'index.php',
@@ -283,13 +290,17 @@
}else
{
- alert('Please select at least one Report');
- return false;
+ {/literal}
+ alert('{$APP.SELECT_ATLEAST_ONE_REPORT}');
+ return false;
+ {literal}
}
}
function DeleteReport(id)
{
- if(confirm("Are you sure you want to delete this report ?"))
+ {/literal}
+ if(confirm("{$APP.DELETE_REPORT_CONFIRMATION}"))
+ {literal}
{
new Ajax.Request(
'index.php',
@@ -344,7 +355,9 @@
}
if(idstring != '')
{
- if(confirm("Are you sure you want to move this report to "+foldername+" folder ?"))
+ {/literal}
+ if(confirm("{$APP.MOVE_REPORT_CONFIRMATION}"+foldername+"{$APP.FOLDER}"))
+ {literal}
{
new Ajax.Request(
'index.php',
@@ -363,8 +376,10 @@
}else
{
- alert('Please select at least one Report');
- return false;
+ {/literal}
+ alert('{$APP.SELECT_ATLEAST_ONE_REPORT}');
+ return false;
+ {literal}
}
}
</script>
Modified: vtigercrm/branches/5.0.3/Smarty/templates/RoleEditView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/RoleEditView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/RoleEditView.tpl Mon Mar 12 09:17:38 2007
@@ -44,7 +44,7 @@
if(document.newRoleForm.selectedColumnsString.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0)
{ldelim}
- alert('Role should have at least one profile');
+ alert('{$APP.ROLE_SHOULDHAVE_INFO}');
return false;
{rdelim}
dup_validation();
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Rss.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Rss.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Rss.tpl Mon Mar 12 09:17:38 2007
@@ -34,8 +34,10 @@
function DeleteRssFeeds(id)
{
if(id != '')
- {
- if(confirm('Are you sure to delete the rss feed?'))
+ {
+ {/literal}
+ if(confirm('{$APP.DELETE_RSSFEED_CONFIRMATION}'))
+ {literal}
{
show('status');
var feed = 'feed_'+id;
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Settings/EditCompanyInfo.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Settings/EditCompanyInfo.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Settings/EditCompanyInfo.tpl Mon Mar 12 09:17:38 2007
@@ -143,16 +143,19 @@
{
if (form.organization_name.value == "" )
{
- alert(company_name +" cannot be none");
- form.organization_name.focus();
- return false;
-
+ {/literal}
+ alert(company_name +"{$APP.CANNOT_BE_NONE}");
+ form.organization_name.focus();
+ return false;
+ {literal}
}
else if (form.organization_name.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0)
{
- alert(company_name +" cannot be empty");
- form.organization_name.focus();
- return false;
+ {/literal}
+ alert(company_name +"{$APP.CANNOT_BE_EMPTY}");
+ form.organization_name.focus();
+ return false;
+ {literal}
}
else
{
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Settings/EmailConfig.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Settings/EmailConfig.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Settings/EmailConfig.tpl Mon Mar 12 09:17:38 2007
@@ -164,8 +164,10 @@
{
if(form.server.value =='')
{
- alert("Server Name cannot be empty")
- return false;
+ {/literal}
+ alert("{$APP.SERVERNAME_CANNOT_BE_EMPTY}")
+ return false;
+ {literal}
}
return true;
}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Settings/PickList.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Settings/PickList.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Settings/PickList.tpl Mon Mar 12 09:17:38 2007
@@ -62,9 +62,11 @@
//empty check validation
for (i=0;i<picklistary.length;i++) {
if (picklistary[i]=="") {
- alert("picklist value cannot be empty")
+ {/literal}
+ alert("{$APP.PICKLIST_CANNOT_BE_EMPTY}")
picklistobj.focus()
return false
+ {literal}
}
}
@@ -72,9 +74,11 @@
for (i=0;i<picklistary.length;i++) {
for (j=i+1;j<picklistary.length;j++) {
if (picklistary[i]==picklistary[j]) {
- alert("duplicate values found")
+ {/literal}
+ alert("{$APP.DUPLICATE_VALUES_FOUND}")
picklistobj.focus()
return false
+ {literal}
}
}
}
@@ -237,8 +241,10 @@
valnext=pick_arr[j];
if(trim(valone) == trim(valnext))
{
- alert("Duplicate entries found for the value '"+valone+"'");
- return false;
+ {/literal}
+ alert("{$APP.DUPLICATE_ENTRIES_FOUND}"+valone+"'");
+ return false;
+ {literal}
}
}
i = curr_iter
@@ -248,9 +254,11 @@
{
if(trim($("picklist_values").value) == '')
{
- alert("Picklist value cannot be empty");
- $("picklist_values").focus();
- return false;
+ {/literal}
+ alert("{$APP.PICKLIST_CANNOT_BE_EMPTY}");
+ $("picklist_values").focus();
+ return false;
+ {literal}
}
}
SavePickList(fieldname,module,uitype)
More information about the vtigercrm-commits
mailing list