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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 03:00:42 EDT 2006


Author: saraj
Date: Mon May 15 01:00:36 2006
New Revision: 5971

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

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

Modified: vtigercrm/trunk/modules/Contacts/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Contacts/CallRelatedList.php Mon May 15 01:00:36 2006
@@ -40,6 +40,7 @@
 global $mod_strings;
 global $app_strings;
 global $theme;
+global $currentModule;
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
 require_once($theme_path.'layout_utils.php');
@@ -59,10 +60,10 @@
 
 $smarty->assign("id",$focus->id);
 $smarty->assign("NAME",$focus->name);
-$related_array = getrelatedlists("Contacts",$focus);
+$related_array = getrelatedlists($currentModule,$focus);
 $smarty->assign("RELATEDLISTS", $related_array);
 $smarty->assign("MODULE",$currentmodule);
-$smarty->assign("SINGLE_MOD","Contact");
+$smarty->assign("SINGLE_MOD",$app_strings['Contact']);
 $smarty->assign("ID",$record );
 $smarty->assign("UPDATEINFO",updateInfo($focus->id));
 $smarty->assign("MOD",$mod_strings);

Modified: vtigercrm/trunk/modules/Contacts/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/DetailView.php (original)
+++ vtigercrm/trunk/modules/Contacts/DetailView.php Mon May 15 01:00:36 2006
@@ -31,6 +31,7 @@
 global $log;
 global $mod_strings;
 global $app_strings;
+global $currentModule;
 
 $focus = new Contact();
 
@@ -65,9 +66,9 @@
 $smarty->assign("NAME",$focus->lastname.' '.$focus->firstname);
 
 $log->info("Detail Block Informations successfully retrieved.");
-$smarty->assign("BLOCKS", getBlocks("Contacts","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
 $smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD","Contact");
+$smarty->assign("SINGLE_MOD",$app_strings['Contact']);
 $smarty->assign("REDIR_MOD","contacts");
 
 $smarty->assign("ID", $_REQUEST['record']);
@@ -107,7 +108,7 @@
 $check_button = Button_Check($module);
 $smarty->assign("CHECK", $check_button);
 
-$smarty->assign("MODULE","Contacts");
+$smarty->assign("MODULE",$app_strings['Contacts']);
 $smarty->display("DetailView.tpl");
 ?>
 

Modified: vtigercrm/trunk/modules/Contacts/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/EditView.php (original)
+++ vtigercrm/trunk/modules/Contacts/EditView.php Mon May 15 01:00:36 2006
@@ -29,7 +29,7 @@
 require_once('include/utils/utils.php');
 require_once('include/FormValidationUtil.php');
 
-global $log,$mod_strings,$app_strings,$theme;
+global $log,$mod_strings,$app_strings,$theme,$currentModule;
 
 //added for contact image
 $encode_val=$_REQUEST['encode_val'];
@@ -96,11 +96,11 @@
 
 $disp_view = getView($focus->mode);
 if($disp_view == 'edit_view')
-	$smarty->assign("BLOCKS",getBlocks("Contacts",$disp_view,$mode,$focus->column_fields));
+	$smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
 else
 {
-	$smarty->assign("BASBLOCKS",getBlocks("Contacts",$disp_view,$mode,$focus->column_fields,'BAS'));
-	$smarty->assign("ADVBLOCKS",getBlocks("Contacts",$disp_view,$mode,$focus->column_fields,'ADV'));
+	$smarty->assign("BASBLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields,'BAS'));
+	$smarty->assign("ADVBLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields,'ADV'));
 }
 
 $smarty->assign("OP_MODE",$disp_view);
@@ -136,7 +136,7 @@
 }
 $smarty->assign("ID", $focus->id);
 $smarty->assign("MODULE",$currentModule);
-$smarty->assign("SINGLE_MOD","Contact");
+$smarty->assign("SINGLE_MOD",$app_strings['Contact']);
 
 if($focus->mode == 'edit')
 {





More information about the vtigercrm-commits mailing list