[Vtigercrm-commits] [vtiger-commits] r5716 - /vtigercrm/trunk/include/utils/CommonUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 3 10:14:02 EDT 2006
Author: don
Date: Wed May 3 08:13:58 2006
New Revision: 5716
Log:
i18n of quick create label done
Modified:
vtigercrm/trunk/include/utils/CommonUtils.php
Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Wed May 3 08:13:58 2006
@@ -1666,6 +1666,21 @@
global $adb;
global $mod_strings;
+
+ $new_label=Array('Leads'=>'LNK_NEW_LEAD',
+ 'Accounts'=>'LNK_NEW_ACCOUNT',
+ 'Activities'=>'LNK_NEW_TASK',
+ 'Campaigns'=>'LNK_NEW_CAMPAIGN',
+ 'Emails'=>'LNK_NEW_EMAIL',
+ 'Events'=>'LNK_NEW_EVENT',
+ 'HelpDesk'=>'LNK_NEW_HDESK',
+ 'Notes'=>'LNK_NEW_NOTE',
+ 'Potentials'=>'LNK_NEW_OPPORTUNITY',
+ 'PriceBooks'=>'LNK_NEW_PRICEBOOK',
+ 'Products'=>'LNK_NEW_PRODUCT',
+ 'Contacts'=>'LNK_NEW_CONTACT',
+ 'Vendors'=>'LNK_NEW_VENDOR');
+
$qc_query = "select distinct tablabel,tab.name from field inner join tab on tab.tabid = field.tabid where quickcreate=0 order by tab.tablabel";
$result = $adb->query($qc_query);
$noofrows = $adb->num_rows($result);
@@ -1673,7 +1688,9 @@
for($i = 0; $i < $noofrows; $i++)
{
$tablabel = $adb->query_result($result,$i,'tablabel');
+
$tabname = $adb->query_result($result,$i,'name');
+ $tablabel = $new_label[$tabname];
if(isPermitted($tabname,'EditView','') == 'yes')
{
$return_qcmodule[] = $tablabel;
More information about the vtigercrm-commits
mailing list