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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 03:40:36 EDT 2006


Author: saraj
Date: Mon May 15 01:40:30 2006
New Revision: 5975

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

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

Modified: vtigercrm/trunk/modules/Invoice/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Invoice/CallRelatedList.php Mon May 15 01:40:30 2006
@@ -27,6 +27,7 @@
 
 global $mod_strings;
 global $app_strings;
+global $currentModule;
 global $theme;
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
@@ -35,7 +36,7 @@
 $smarty = new vtigerCRM_Smarty;
 
 if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
-$related_array=getRelatedLists("Invoice",$focus);
+$related_array=getRelatedLists($currentModule,$focus);
 $smarty->assign("RELATEDLISTS", $related_array);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
@@ -43,7 +44,7 @@
 $smarty->assign("id",$focus->id);
 $smarty->assign("ID",$RECORD );
 $smarty->assign("MODULE",$currentmodule);
-$smarty->assign("SINGLE_MOD",$currentmodule);
+$smarty->assign("SINGLE_MOD",$app_strings['Invoice']);
 $smarty->assign("UPDATEINFO",updateInfo($focus->id));
 $smarty->assign("MOD",$mod_strings);
 $smarty->assign("APP",$app_strings);

Modified: vtigercrm/trunk/modules/Invoice/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/DetailView.php (original)
+++ vtigercrm/trunk/modules/Invoice/DetailView.php Mon May 15 01:40:30 2006
@@ -59,11 +59,11 @@
 
 if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
 else $smarty->assign("NAME", "");
-$smarty->assign("BLOCKS", getBlocks("Invoice","detail_view",'',$focus->column_fields)); 
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields)); 
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
 $smarty->assign("ID", $_REQUEST['record']);
-$smarty->assign("SINGLE_MOD", "Invoice");
+$smarty->assign("SINGLE_MOD", $app_strings['Invoice']);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 

Modified: vtigercrm/trunk/modules/Invoice/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/EditView.php (original)
+++ vtigercrm/trunk/modules/Invoice/EditView.php Mon May 15 01:40:30 2006
@@ -32,7 +32,7 @@
 require_once('include/utils/utils.php');
 require_once('include/FormValidationUtil.php');
 
-global $app_strings,$mod_strings,$log;
+global $app_strings,$mod_strings,$currentModule,$log;
 
 $focus = new Invoice();
 $smarty = new vtigerCRM_Smarty();
@@ -179,16 +179,16 @@
 
 $disp_view = getView($focus->mode);
 if($disp_view == 'edit_view')
-	$smarty->assign("BLOCKS",getBlocks("Invoice",$disp_view,$mode,$focus->column_fields));
+	$smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
 else	
 {
-	$smarty->assign("BASBLOCKS",getBlocks("Invoice",$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);
 
 $smarty->assign("MODULE",$currentModule);
-$smarty->assign("SINGLE_MOD","Invoice");
+$smarty->assign("SINGLE_MOD",$app_strings['Invoice']);
 
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);





More information about the vtigercrm-commits mailing list