[Vtigercrm-commits] [vtiger-commits] r9715 - in /vtigercrm/branches/5.0.2: include/utils/CommonUtils.php modules/Potentials/language/en_us.lang.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Oct 26 12:21:19 EDT 2006


Author: richie
Date: Thu Oct 26 10:21:12 2006
New Revision: 9715

Log:
* Translated the potential field names when send mails about potential creation or updation, Fixes #2455

Modified:
    vtigercrm/branches/5.0.2/include/utils/CommonUtils.php
    vtigercrm/branches/5.0.2/modules/Potentials/language/en_us.lang.php

Modified: vtigercrm/branches/5.0.2/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/branches/5.0.2/include/utils/CommonUtils.php (original)
+++ vtigercrm/branches/5.0.2/include/utils/CommonUtils.php Thu Oct 26 10:21:12 2006
@@ -2000,7 +2000,10 @@
 
 	foreach($object_column_fields as $fieldname => $fieldlabel)
 	{
-		$description .= $fieldlabel.' : <b>'.$focus->column_fields[$fieldname].'</b><br>';
+		//Get the translated string
+		$temp_label = isset($app_strings[$fieldlabel])?$app_strings[$fieldlabel]:(isset($mod_strings[$fieldlabel])?$mod_strings[$fieldlabel]:$fieldlabel);
+
+		$description .= $temp_label.' : <b>'.$focus->column_fields[$fieldname].'</b><br>';
 	}
 
 	$description .= '<br><br>Thank You <br>';

Modified: vtigercrm/branches/5.0.2/modules/Potentials/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Potentials/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.2/modules/Potentials/language/en_us.lang.php Thu Oct 26 10:21:12 2006
@@ -100,6 +100,7 @@
 'Account Name'=>'Account Name',
 'Currency'=>'Currency',
 'Expected Close Date'=>'Expected Close Date',
+'Opportunity Type'=>'Opportunity Type',
 'Type'=>'Type',
 'Next Step'=>'Next Step',
 'Lead Source'=>'Lead Source',





More information about the vtigercrm-commits mailing list