[Vtigercrm-commits] [vtiger-commits] r10254 - in /vtigercrm/branches/5.0.3/include: language/en_us.lang.php utils/SearchUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Feb 27 08:11:54 EST 2007


Author: saraj
Date: Tue Feb 27 06:11:45 2007
New Revision: 10254

Log:
i18n for Advance search filter. Fixes #3061

Modified:
    vtigercrm/branches/5.0.3/include/language/en_us.lang.php
    vtigercrm/branches/5.0.3/include/utils/SearchUtils.php

Modified: vtigercrm/branches/5.0.3/include/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.3/include/language/en_us.lang.php Tue Feb 27 06:11:45 2007
@@ -637,9 +637,22 @@
 'LBL_END_DATE_TIME'=>'End Date & Time',
 'LBL_CREATE_MERGE_TEMPLATE'=>'Create Mail Merge templates ',
 'LBL_IMG_FORMATS'=>'(Only jpg, gif, bmp and png images)',
+
 //Added for Taxmode in detail view of Product Details.
 'group'=>'Group',
 'individual'=>'individual',
+
+//Added for values of picklist in Advanced Search filter
+'contains'=>'contains',
+'does not contains'=>'does not contains',
+'is'=>'is',
+'is not'=>'is not',
+'begins with'=>'begins with',
+'ends with'=>'ends with',
+'greater than'=>'greater than',
+'less than'=>'less than',
+'greater or equal'=>'greater or equal',
+'less or equal'=>'less or equal',
 );
 
 $app_list_strings = array (

Modified: vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/SearchUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/SearchUtils.php Tue Feb 27 06:11:45 2007
@@ -448,9 +448,9 @@
 
 function getcriteria_options()
 {
-	global $log;
+	global $log,$app_strings;
 	$log->debug("Entering getcriteria_options() method ...");
-	$CRIT_OPT = "<option value=\'cts\'>contains</option><option value=\'dcts\'>does not contains</option><option value=\'is\'>is</option><option value=\'isn\'>is not</option><option value=\'bwt\'>begins with</option><option value=\'ewt\'>ends with</option><option value=\'grt\'>greater than</option><option value=\'lst\'>less than</option><option value=\'grteq\'>greater or equal</option><option value=\'lsteq\'>lesser or equal</option>";
+	$CRIT_OPT = "<option value=\'cts\'>".$app_strings['contains']."</option><option value=\'dcts\'>".$app_strings['does not contains']."</option><option value=\'is\'>".$app_strings['is']."</option><option value=\'isn\'>".$app_strings['is not']."</option><option value=\'bwt\'>".$app_strings['begins with']."</option><option value=\'ewt\'>".$app_strings['ends with']."</option><option value=\'grt\'>".$app_strings['greater than']."</option><option value=\'lst\'>".$app_strings['less than']."</option><option value=\'grteq\'>".$app_strings['greater or equal']."</option><option value=\'lsteq\'>".$app_strings['less or equal']."</option>";
 	$log->debug("Exiting getcriteria_options method ...");
 	return $CRIT_OPT;
 }





More information about the vtigercrm-commits mailing list