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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 03:20:07 EDT 2006


Author: saraj
Date: Mon May 15 01:19:54 2006
New Revision: 5972

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

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

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

Modified: vtigercrm/trunk/modules/Emails/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Emails/DetailView.php (original)
+++ vtigercrm/trunk/modules/Emails/DetailView.php Mon May 15 01:19:54 2006
@@ -31,6 +31,7 @@
 global $log;
 global $app_strings;
 global $mod_strings;
+global $currentModule;
 
 $focus = new Email();
 
@@ -129,7 +130,7 @@
 if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
 	else $smarty->assign("NAME", "");
 
-$entries = getBlocks("Emails","detail_view",'',$focus->column_fields);
+$entries = getBlocks($currentModule,"detail_view",'',$focus->column_fields);
 if($_REQUEST['mode'] != 'ajax')
 	$smarty->assign("BLOCKS" , $entries);
 else	
@@ -138,7 +139,7 @@
 	$smarty->assign("BLOCKS" , from_html($entries['Email Information']));
 }
 	
-$smarty->assign("SINGLE_MOD","Email");
+$smarty->assign("SINGLE_MOD",$app_strings['Email']);
 
 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 $smarty->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js());
@@ -154,7 +155,7 @@
 $smarty->assign("CHECK", $check_button);
 	
 //Constructing the Related Lists from here
-$smarty->assign("MODULE","Emails");
+$smarty->assign("MODULE",$app_strings['Emails']);
 $smarty->assign("SENDER",$email_id);
 if($_REQUEST['mode'] != 'ajax')
 	$smarty->display("DetailView.tpl");

Modified: vtigercrm/trunk/modules/Emails/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Emails/EditView.php (original)
+++ vtigercrm/trunk/modules/Emails/EditView.php Mon May 15 01:19:54 2006
@@ -33,6 +33,7 @@
 global $app_list_strings;
 global $mod_strings;
 global $current_user;
+global $currentModule;
 
 $focus = new Email();
 $smarty = new vtigerCRM_Smarty();
@@ -85,11 +86,11 @@
 
 $disp_view = getView($focus->mode);
 
-$details = getBlocks("Emails",$disp_view,$mode,$focus->column_fields);
+$details = getBlocks($currentModule,$disp_view,$mode,$focus->column_fields);
 $smarty->assign("BLOCKS",$details['Email Information']);
 
 $smarty->assign("MODULE",$currentModule);
-$smarty->assign("SINGLE_MOD","Email");
+$smarty->assign("SINGLE_MOD",$app_strings['Email']);
 //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