[Vtigercrm-commits] [vtiger-commits] r5977 - in /vtigercrm/trunk/modules/Notes: DetailView.php EditView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 03:54:10 EDT 2006


Author: saraj
Date: Mon May 15 01:54:04 2006
New Revision: 5977

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

Modified:
    vtigercrm/trunk/modules/Notes/DetailView.php
    vtigercrm/trunk/modules/Notes/EditView.php

Modified: vtigercrm/trunk/modules/Notes/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Notes/DetailView.php (original)
+++ vtigercrm/trunk/modules/Notes/DetailView.php Mon May 15 01:54:04 2006
@@ -28,6 +28,7 @@
 require_once('include/utils/utils.php');
 global $app_strings;
 global $mod_strings;
+global $currentModule;
 
 $focus = new Note();
 
@@ -70,7 +71,7 @@
 $smarty = new vtigerCRM_Smarty;
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);
-$smarty->assign("BLOCKS", getBlocks("Notes","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
 $smarty->assign("UPDATEINFO",updateInfo($focus->id));
 
 
@@ -94,7 +95,7 @@
 	$smarty->assign("FILELINK", $fileurl);
 }
 
-$smarty->assign("SINGLE_MOD","Note");
+$smarty->assign("SINGLE_MOD",$app_strings['Note']);
 
 if(isPermitted("Notes","EditView",$_REQUEST['record']) == 'yes')
 	$smarty->assign("EDIT_DUPLICATE","permitted");
@@ -105,7 +106,7 @@
 $check_button = Button_Check($module);
 $smarty->assign("CHECK", $check_button);
 
-$smarty->assign("MODULE", $module);
+$smarty->assign("MODULE",$currentModule);
 $smarty->display("DetailView.tpl");
 
 ?>

Modified: vtigercrm/trunk/modules/Notes/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Notes/EditView.php (original)
+++ vtigercrm/trunk/modules/Notes/EditView.php Mon May 15 01:54:04 2006
@@ -26,7 +26,7 @@
 require_once('modules/Notes/Forms.php');
 require_once('include/utils/utils.php');
 
-global $app_strings,$app_list_strings,$mod_strings,$theme;
+global $app_strings,$app_list_strings,$mod_strings,$theme,$currentModule;
 
 $focus = new Note();
 $smarty = new vtigerCRM_Smarty();
@@ -96,10 +96,10 @@
 
 $disp_view = getView($focus->mode);
 if($disp_view == 'edit_view')
-	$smarty->assign("BLOCKS",getBlocks("Notes",$disp_view,$mode,$focus->column_fields));
+	$smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
 else	
 {
-	$smarty->assign("BASBLOCKS",getBlocks("Notes",$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();
@@ -111,7 +111,7 @@
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);
 $smarty->assign("MODULE",$currentModule);
-$smarty->assign("SINGLE_MOD","Note");
+$smarty->assign("SINGLE_MOD",$app_strings['Note']);
 //Display the FCKEditor or not? -- configure $FCKEDITOR_DISPLAY in config.php 
 $smarty->assign("FCKEDITOR_DISPLAY",$FCKEDITOR_DISPLAY);
 





More information about the vtigercrm-commits mailing list