[Vtigercrm-commits] [vtiger-commits] r5976 - in /vtigercrm/trunk/modules/Leads: CallRelatedList.php DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 03:48:55 EDT 2006
Author: saraj
Date: Mon May 15 01:48:49 2006
New Revision: 5976
Log:
i18n done for module name in Detail/Edit/Relatedlistview - ahmed
Modified:
vtigercrm/trunk/modules/Leads/CallRelatedList.php
vtigercrm/trunk/modules/Leads/DetailView.php
vtigercrm/trunk/modules/Leads/EditView.php
Modified: vtigercrm/trunk/modules/Leads/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Leads/CallRelatedList.php Mon May 15 01:48:49 2006
@@ -29,6 +29,8 @@
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');
@@ -51,9 +53,9 @@
$smarty->assign("id",$focus->id);
$smarty->assign("NAME",$focus->lastname.' '.$focus->firstname);
-$related_array = getRelatedLists("Leads",$focus);
+$related_array = getRelatedLists($currentModule,$focus);
$smarty->assign("RELATEDLISTS", $related_array);
-$smarty->assign("SINGLE_MOD","Lead");
+$smarty->assign("SINGLE_MOD",$app_strings['Lead']);
$smarty->assign("REDIR_MOD","leads");
$smarty->assign("MODULE", $currentmodule);
$smarty->assign("ID",$RECORD );
Modified: vtigercrm/trunk/modules/Leads/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/DetailView.php (original)
+++ vtigercrm/trunk/modules/Leads/DetailView.php Mon May 15 01:48:49 2006
@@ -23,7 +23,7 @@
global $mod_strings;
global $app_strings;
-
+global $currentModule;
global $log;
$focus = new Lead();
@@ -56,13 +56,13 @@
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
$smarty->assign("ID", $focus->id);
-$smarty->assign("SINGLE_MOD","Lead");
+$smarty->assign("SINGLE_MOD",$app_strings['Lead']);
$smarty->assign("REDIR_MOD","leads");
$smarty->assign("NAME",$focus->lastname.' '.$focus->firstname);
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
-$smarty->assign("BLOCKS", getBlocks("Leads","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
$smarty->assign("CUSTOMFIELD", $cust_fld);
Modified: vtigercrm/trunk/modules/Leads/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/EditView.php (original)
+++ vtigercrm/trunk/modules/Leads/EditView.php Mon May 15 01:48:49 2006
@@ -22,7 +22,7 @@
require_once('include/utils/utils.php');
require_once('include/FormValidationUtil.php');
-global $mod_strings,$app_strings,$theme;
+global $mod_strings,$app_strings,$theme,$currentModule;
$focus = new Lead();
$smarty = new vtigerCRM_Smarty;
@@ -41,11 +41,11 @@
$disp_view = getView($focus->mode);
if($disp_view == 'edit_view')
- $smarty->assign("BLOCKS",getBlocks("Leads",$disp_view,$mode,$focus->column_fields));
+ $smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
else
{
- $smarty->assign("BASBLOCKS",getBlocks("Leads",$disp_view,$mode,$focus->column_fields,'BAS'));
- $smarty->assign("ADVBLOCKS",getBlocks("Leads",$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);
@@ -91,7 +91,7 @@
$smarty->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js());
$smarty->assign("ID", $focus->id);
$smarty->assign("MODULE",$currentModule);
-$smarty->assign("SINGLE_MOD","Lead");
+$smarty->assign("SINGLE_MOD",$app_strings['Lead']);
$smarty->assign("HEADER", get_module_title("Leads", "{MOD.LBL_LEAD} ".$focus->firstname." ".$focus->lastname, true));
More information about the vtigercrm-commits
mailing list