[Vtigercrm-commits] [vtiger-commits] r9690 - /vtigercrm/branches/5.0.2/modules/Reports/Reports.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Oct 25 06:53:44 EDT 2006
Author: richie
Date: Wed Oct 25 04:53:40 2006
New Revision: 9690
Log:
changes made for i18n support
Modified:
vtigercrm/branches/5.0.2/modules/Reports/Reports.php
Modified: vtigercrm/branches/5.0.2/modules/Reports/Reports.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Reports/Reports.php (original)
+++ vtigercrm/branches/5.0.2/modules/Reports/Reports.php Wed Oct 25 04:53:40 2006
@@ -793,10 +793,20 @@
{
$fieldcolname = $adb->query_result($result,$i,"columnname");
$fieldlist = explode(":",$fieldcolname);
+
+ //Fix for multilanguage support - code contribution by Ding jianting
+ $fieldlabel_array = explode("_",$fieldlist[2]);
+ $mod_strings = return_module_language($current_language,$fieldlabel_array[0]);
if($fieldcolname != "")
{
- $shtml .= "<option value=\"".$fieldcolname."\">".str_replace($modules," ",$fieldlist[2])."</option>";
- }
+ $fieldlabel = trim(str_replace($modules," ",$fieldlist[2]));
+ if(isset($mod_strings[$fieldlabel])) {
+ $shtml .= "<option value=\"".$fieldcolname."\">".$mod_strings[$fieldlabel]."</option>";
+ } else {
+ $shtml .= "<option value=\"".$fieldcolname."\">".$fieldlabel."</option>";
+ }
+ }
+ //Code contribution ends
}
$log->info("Reports :: Successfully returned getSelectedColumnsList");
More information about the vtigercrm-commits
mailing list