[Vtigercrm-commits] [vtiger-commits] r10630 - in /vtigercrm/branches/5.0.3: Smarty/templates/ListRoles.tpl include/js/en_us.lang.js index.php modules/Products/AddProductToPriceBooks.php modules/Users/RoleDragDrop.php modules/Users/language/en_us.lang.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 11 04:01:21 EDT 2007
Author: saraj
Date: Wed Apr 11 02:01:08 2007
New Revision: 10630
Log:
fix for i18n issue - Texts have to be translated. Fixes #3584 --minnie
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/ListRoles.tpl
vtigercrm/branches/5.0.3/include/js/en_us.lang.js
vtigercrm/branches/5.0.3/index.php
vtigercrm/branches/5.0.3/modules/Products/AddProductToPriceBooks.php
vtigercrm/branches/5.0.3/modules/Users/RoleDragDrop.php
vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ListRoles.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ListRoles.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ListRoles.tpl Wed Apr 11 02:01:08 2007
@@ -213,7 +213,7 @@
method: 'post',
postBody: 'module=Users&action=UsersAjax&file=RoleDragDrop&ajax=true&parentId='+parentId+'&childId='+childId,
onComplete: function(response) {ldelim}
- if(response.responseText != 'You cannot move a Parent Node under a Child Node')
+ if(response.responseText != alert_arr.ROLE_DRAG_ERR_MSG)
{ldelim}
$('RoleTreeFull').innerHTML=response.responseText;
hideAll = false;
Modified: vtigercrm/branches/5.0.3/include/js/en_us.lang.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/en_us.lang.js (original)
+++ vtigercrm/branches/5.0.3/include/js/en_us.lang.js Wed Apr 11 02:01:08 2007
@@ -111,4 +111,5 @@
NO_SPECIAL:'Special Characters are not allowed',
VALID_TAX_PERCENT:'Enter a valid Tax percentage',
VALID_SH_TAX:'Enter valid Taxes for shipping and handling ',
+ ROLE_DRAG_ERR_MSG:'You cannot move a Parent Node under a Child Node'
};
Modified: vtigercrm/branches/5.0.3/index.php
==============================================================================
--- vtigercrm/branches/5.0.3/index.php (original)
+++ vtigercrm/branches/5.0.3/index.php Wed Apr 11 02:01:08 2007
@@ -650,7 +650,7 @@
echo '<style type="text/css">@import url("themes/'.$theme.'/style.css"); </style>';
echo "<br><br><br><table border=0 cellspacing=0 cellpadding=5 width=100% class=settingsSelectedUI >";
echo "<tr><td class=small align=left><span style='color: rgb(153, 153, 153);'>vtiger CRM 5.0.3</span></td>";
- echo "<td class=small align=right><span style='color: rgb(153, 153, 153);'>© 2004-2007 <a href='http://www.vtiger.com'>vtiger.com</a> | <a href='javascript:mypopup()'>Read License</a></span></td></tr></table>";
+ echo "<td class=small align=right><span style='color: rgb(153, 153, 153);'>© 2004-2007 <a href='http://www.vtiger.com'>vtiger.com</a> | <a href='javascript:mypopup()'>".$app_strings['LNK_READ_LICENSE']."</a></span></td></tr></table>";
// echo "<table align='center'><tr><td align='center'>";
// Under the Sugar Public License referenced above, you are required to leave in all copyright statements
Modified: vtigercrm/branches/5.0.3/modules/Products/AddProductToPriceBooks.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Products/AddProductToPriceBooks.php (original)
+++ vtigercrm/branches/5.0.3/modules/Products/AddProductToPriceBooks.php Wed Apr 11 02:01:08 2007
@@ -79,7 +79,7 @@
//we should not display the Add to PriceBook button if there is no pricebooks to associate
if($num_rows != $num_prod_rows)
- $other_text .='<input class="crmbutton small save" type="submit" value="Add To PriceBook" onclick="return addtopricebook()"/> ';
+ $other_text .='<input class="crmbutton small save" type="submit" value="'.$mod_strings['LBL_ADD_PRICEBOOK_BUTTON_LABEL'].'" onclick="return addtopricebook()"/> ';
$other_text .='<input title="'.$app_strings[LBL_CANCEL_BUTTON_TITLE].'" accessKey="'.$app_strings[LBL_CANCEL_BUTTON_KEY].'" class="crmbutton small cancel" onclick="window.history.back()" type="button" name="button" value="'.$app_strings[LBL_CANCEL_BUTTON_LABEL].'"></td>';
$other_text .='
Modified: vtigercrm/branches/5.0.3/modules/Users/RoleDragDrop.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/RoleDragDrop.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/RoleDragDrop.php Wed Apr 11 02:01:08 2007
@@ -14,7 +14,7 @@
$fromid=$_REQUEST['childId'];
-global $adb;
+global $adb,$mod_strings;
$query = "select * from vtiger_role where roleid='".$toid."'";
$result=$adb->query($query);
$parentRoleList=$adb->query_result($result,0,'parentrole');
@@ -27,7 +27,7 @@
if(in_array($fromid,$parentRoles))
{
- echo 'You cannot move a Parent Node under a Child Node';
+ echo $mod_strings['ROLE_DRAG_ERR_MSG'];
die;
}
Modified: vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php Wed Apr 11 02:01:08 2007
@@ -648,6 +648,7 @@
'LBL_ENTER_PROFILE'=>'Enter The Profile Name',
'TITLE_USER_DOCUMENT'=>'Untitled Document',
'TITLE_VTIGER_CRM_5'=>'vtiger CRM 5 - Free, Commercial grade Open Source CRM',
+'ROLE_DRAG_ERR_MSG'=>'You cannot move a Parent Node under a Child Node',
);
?>
More information about the vtigercrm-commits
mailing list