[Vtigercrm-commits] [vtiger-commits] r9492 - /vtigercrm/trunk/include/FormValidationUtil.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Sep 13 07:38:58 EDT 2006
Author: richie
Date: Wed Sep 13 05:38:49 2006
New Revision: 9492
Log:
i18n support for validation --By minnie
Modified:
vtigercrm/trunk/include/FormValidationUtil.php
Modified: vtigercrm/trunk/include/FormValidationUtil.php
==============================================================================
--- vtigercrm/trunk/include/FormValidationUtil.php (original)
+++ vtigercrm/trunk/include/FormValidationUtil.php Wed Sep 13 05:38:49 2006
@@ -28,7 +28,7 @@
$sql = '';
$tab_con = "";
$numValues = count($tablearray);
- global $adb;
+ global $adb,$mod_strings;
if($tabid!='') $tab_con = ' and tabid='.$tabid;
@@ -63,7 +63,7 @@
$fieldName_array = Array();
for($i=0;$i<$noofrows;$i++)
{
- $fieldlabel = $adb->query_result($result,$i,'fieldlabel');
+ $fieldlabel = $mod_strings[$adb->query_result($result,$i,'fieldlabel')];
$fieldname = $adb->query_result($result,$i,'fieldname');
$typeofdata = $adb->query_result($result,$i,'typeofdata');
//echo '<br> '.$fieldlabel.'....'.$fieldname.'....'.$typeofdata;
More information about the vtigercrm-commits
mailing list