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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 05:00:55 EDT 2006


Author: saraj
Date: Mon May 15 03:00:49 2006
New Revision: 5983

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

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

Modified: vtigercrm/trunk/modules/SalesOrder/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/CallRelatedList.php Mon May 15 03:00:49 2006
@@ -23,7 +23,7 @@
 }
 
 global $mod_strings;
-global $app_strings;
+global $app_strings,$currentModule;
 global $theme;
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
@@ -32,7 +32,7 @@
 $smarty = new vtigerCRM_Smarty;
 
 if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
-$related_array=getRelatedLists("SalesOrder",$focus);
+$related_array=getRelatedLists($currentModule,$focus);
 $smarty->assign("RELATEDLISTS", $related_array);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
@@ -40,7 +40,7 @@
 $smarty->assign("id",$focus->id);
 $smarty->assign("ID",$RECORD );
 $smarty->assign("MODULE",$currentmodule);
-$smarty->assign("SINGLE_MOD","SalesOrder");
+$smarty->assign("SINGLE_MOD",$app_strings['SalesOrder']);
 $smarty->assign("MOD",$mod_strings);
 $smarty->assign("APP",$app_strings);
 $smarty->assign("THEME", $theme);

Modified: vtigercrm/trunk/modules/SalesOrder/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/DetailView.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/DetailView.php Mon May 15 03:00:49 2006
@@ -26,7 +26,7 @@
 require_once('include/CustomFieldUtil.php');
 require_once('include/database/PearDatabase.php');
 require_once('include/utils/utils.php');
-global $mod_strings,$app_strings,$theme;
+global $mod_strings,$app_strings,$theme,$currentModule;
 
 $focus = new SalesOrder();
 
@@ -59,12 +59,12 @@
 $smarty->assign("NAME", $focus->name);
 else 
 $smarty->assign("NAME", "");
-$smarty->assign("BLOCKS", getBlocks("SalesOrder","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
 $smarty->assign("UPDATEINFO",updateInfo($focus->id));
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
 $smarty->assign("ID", $_REQUEST['record']);
-$smarty->assign("SINGLE_MOD", "SalesOrder");
+$smarty->assign("SINGLE_MOD",$app_strings['SalesOrder']);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 
@@ -80,7 +80,7 @@
 if(isPermitted("SalesOrder","Delete",$_REQUEST['record']) == 'yes')
 	$smarty->assign("DELETE","permitted");
 
-$smarty->assign("MODULE", $module);
+$smarty->assign("MODULE", $currentModule);
 $smarty->assign("CONVERTMODE",'sotoinvoice');
 //Get the associated Products and then display above Terms and Conditions
 $smarty->assign("ASSOCIATED_PRODUCTS",getDetailAssociatedProducts('SalesOrder',$focus));

Modified: vtigercrm/trunk/modules/SalesOrder/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/EditView.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/EditView.php Mon May 15 03:00:49 2006
@@ -29,7 +29,7 @@
 require_once('include/utils/utils.php');
 require_once('include/FormValidationUtil.php');
 
-global $app_strings,$mod_strings,$log,$theme;
+global $app_strings,$mod_strings,$log,$theme,$currentModule;
 
 $log->debug("Inside Sales Order EditView");
 
@@ -165,15 +165,15 @@
 
 $disp_view = getView($focus->mode);
 if($disp_view == 'edit_view')
-	$smarty->assign("BLOCKS",getBlocks("SalesOrder",$disp_view,$mode,$focus->column_fields));
+	$smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
 else	
 {
-	$smarty->assign("BASBLOCKS",getBlocks("SalesOrder",$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","SalesOrder");
+$smarty->assign("SINGLE_MOD",$app_strings['SalesOrder']);
 
 
 $smarty->assign("MOD", $mod_strings);





More information about the vtigercrm-commits mailing list