[Vtigercrm-commits] [vtiger-commits] r9770 - /vtigercrm/branches/5.0.3/include/CustomFieldUtil.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Nov 6 03:13:40 EST 2006
Author: richie
Date: Mon Nov 6 01:13:36 2006
New Revision: 9770
Log:
i18n issue in listview custom fields fixed
Modified:
vtigercrm/branches/5.0.3/include/CustomFieldUtil.php
Modified: vtigercrm/branches/5.0.3/include/CustomFieldUtil.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/CustomFieldUtil.php (original)
+++ vtigercrm/branches/5.0.3/include/CustomFieldUtil.php Mon Nov 6 01:13:36 2006
@@ -19,6 +19,8 @@
*/
function getCustomFieldTypeName($uitype)
{
+
+ global $mod_strings,$app_strings;
global $log;
$log->debug("Entering getCustomFieldTypeName(".$uitype.") method ...");
global $log;
@@ -27,55 +29,55 @@
if($uitype == 1)
{
- $fldname = 'Text';
+ $fldname = $mod_strings['Text'];
}
elseif($uitype == 7)
{
- $fldname = 'Number';
+ $fldname = $mod_strings['Number'];
}
elseif($uitype == 9)
{
- $fldname = 'Percent';
+ $fldname = $mod_strings['Percent'];
}
elseif($uitype == 5)
{
- $fldname = 'Date';
+ $fldname = $mod_strings['Date'];
}
elseif($uitype == 13)
{
- $fldname = 'Email';
+ $fldname = $mod_strings['Email'];
}
elseif($uitype == 11)
{
- $fldname = 'Phone';
+ $fldname = $mod_strings['Phone'];
}
elseif($uitype == 15)
{
- $fldname = 'PickList';
+ $fldname = $mod_strings['PickList'];
}
elseif($uitype == 17)
{
- $fldname = 'Url';
+ $fldname = $mod_strings['LBL_URL'];
}
elseif($uitype == 56)
{
- $fldname = 'Checkbox';
+ $fldname = $mod_strings['LBL_CHECK_BOX'];
}
elseif($uitype == 71)
{
- $fldname = 'Currency';
+ $fldname = $mod_strings['Currency'];
}
elseif($uitype == 21)
{
- $fldname = 'Text Area';
+ $fldname = $mod_strings['LBL_TEXT_AREA'];
}
elseif($uitype == 33)
{
- $fldname = 'Multi-Select Combo Box';
+ $fldname = $mod_strings['LBL_MULTISELECT_COMBO'];
}
elseif($uitype == 85)
{
- $fldname = 'Skype';
+ $fldname = $mod_strings['Skype'];
}
$log->debug("Exiting getCustomFieldTypeName method ...");
return $fldname;
More information about the vtigercrm-commits
mailing list