[Vtigercrm-commits] [vtiger-commits] r5978 - in /vtigercrm/trunk/modules/Potentials: CallRelatedList.php DetailView.php EditView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 03:59:29 EDT 2006


Author: saraj
Date: Mon May 15 01:59:23 2006
New Revision: 5978

Log:
i18n done for module name in Detail/Edit/Relatedlistview - ahmed

Modified:
    vtigercrm/trunk/modules/Potentials/CallRelatedList.php
    vtigercrm/trunk/modules/Potentials/DetailView.php
    vtigercrm/trunk/modules/Potentials/EditView.php

Modified: vtigercrm/trunk/modules/Potentials/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Potentials/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Potentials/CallRelatedList.php Mon May 15 01:59:23 2006
@@ -26,6 +26,7 @@
 
 global $mod_strings;
 global $app_strings;
+global $currentModule;
 global $theme;
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
@@ -37,15 +38,15 @@
         $focus->id = "";
 }
 if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
-$related_array = getRelatedLists("Potentials",$focus);
+$related_array = getRelatedLists($currentModule,$focus);
 $smarty->assign("RELATEDLISTS", $related_array);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 $smarty->assign("UPDATEINFO",updateInfo($focus->id));
 $smarty->assign("id",$focus->id);
 $smarty->assign("ID",$RECORD );
-$smarty->assign("MODULE",$currentmodule);
-$smarty->assign("SINGLE_MOD","Potential");
+$smarty->assign("MODULE",$currentModule);
+$smarty->assign("SINGLE_MOD",$app_strings['Potential']);
 $smarty->assign("MOD",$mod_strings);
 $smarty->assign("APP",$app_strings);
 $smarty->assign("THEME", $theme);

Modified: vtigercrm/trunk/modules/Potentials/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Potentials/DetailView.php (original)
+++ vtigercrm/trunk/modules/Potentials/DetailView.php Mon May 15 01:59:23 2006
@@ -29,6 +29,7 @@
 
 global $mod_strings;
 global $app_strings;
+global $currentModule;
 
 $focus = new Potential();
 $smarty = new vtigerCRM_Smarty;
@@ -62,10 +63,10 @@
 if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
 else $smarty->assign("NAME", "");
 
-$smarty->assign("BLOCKS", getBlocks("Potentials","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD","Potential");
+$smarty->assign("SINGLE_MOD",$app_strings['Potential']);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 

Modified: vtigercrm/trunk/modules/Potentials/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Potentials/EditView.php (original)
+++ vtigercrm/trunk/modules/Potentials/EditView.php Mon May 15 01:59:23 2006
@@ -30,7 +30,7 @@
 require_once('include/FormValidationUtil.php');
 global $app_strings;
 global $mod_strings;
-
+global $currentModule;
 $focus = new Potential();
 $smarty = new vtigerCRM_Smarty();
 
@@ -52,10 +52,10 @@
 
 $disp_view = getView($focus->mode);
 if($disp_view == 'edit_view')
-	$smarty->assign("BLOCKS",getBlocks("Potentials",$disp_view,$mode,$focus->column_fields));
+	$smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
 else
 {
-	$smarty->assign("BASBLOCKS",getBlocks("Potentials",$disp_view,$mode,$focus->column_fields,'BAS'));
+	$smarty->assign("BASBLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields,'BAS'));
 }
 $smarty->assign("OP_MODE",$disp_view);
 $category = getParentTab();
@@ -121,7 +121,7 @@
 $smarty->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js());
 $smarty->assign("ID", $focus->id);
 $smarty->assign("MODULE",$currentModule);
-$smarty->assign("SINGLE_MOD","Potential");
+$smarty->assign("SINGLE_MOD",$app_strings['Potential']);
 
 
  $potential_tables = Array('potential','crmentity','potentialscf'); 





More information about the vtigercrm-commits mailing list