[Vtigercrm-commits] [vtiger-commits] r5970 - in /vtigercrm/trunk/modules/Campaigns: CallRelatedList.php DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 02:51:46 EDT 2006
Author: saraj
Date: Mon May 15 00:51:41 2006
New Revision: 5970
Log:
i18n done for module name in Detail/Edit/Relatedlistview - ahmed
Modified:
vtigercrm/trunk/modules/Campaigns/CallRelatedList.php
vtigercrm/trunk/modules/Campaigns/DetailView.php
vtigercrm/trunk/modules/Campaigns/EditView.php
Modified: vtigercrm/trunk/modules/Campaigns/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Campaigns/CallRelatedList.php Mon May 15 00:51:41 2006
@@ -31,6 +31,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');
@@ -42,7 +43,7 @@
}
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
-$related_array=getRelatedLists("Campaigns",$focus);
+$related_array=getRelatedLists($currentModule,$focus);
$smarty->assign("RELATEDLISTS", $related_array);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
@@ -50,7 +51,7 @@
$smarty->assign("id",$focus->id);
$smarty->assign("ID",$RECORD );
$smarty->assign("MODULE",$currentmodule);
-$smarty->assign("SINGLE_MOD",$currentmodule);
+$smarty->assign("SINGLE_MOD",$app_strings['Campaign']);
$smarty->assign("MOD",$mod_strings);
$smarty->assign("APP",$app_strings);
$smarty->assign("THEME", $theme);
Modified: vtigercrm/trunk/modules/Campaigns/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/DetailView.php (original)
+++ vtigercrm/trunk/modules/Campaigns/DetailView.php Mon May 15 00:51:41 2006
@@ -26,7 +26,7 @@
{
$focus->id = "";
}
-global $app_strings,$mod_strings,$theme;
+global $app_strings,$mod_strings,$theme,$currentModule;
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
@@ -38,10 +38,10 @@
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
else $smarty->assign("NAME", "");
-$smarty->assign("BLOCKS", getBlocks("Campaigns","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
$smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD","Campaign");
+$smarty->assign("SINGLE_MOD",$app_strings['Campaign']);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
@@ -58,7 +58,7 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
-$smarty->assign("MODULE","Campaigns");
+$smarty->assign("MODULE",$app_strings['Campaigns']);
$smarty->display("DetailView.tpl");
$focus->id = $_REQUEST['record'];
Modified: vtigercrm/trunk/modules/Campaigns/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/EditView.php (original)
+++ vtigercrm/trunk/modules/Campaigns/EditView.php Mon May 15 00:51:41 2006
@@ -38,16 +38,16 @@
$disp_view = getView($focus->mode);
if($disp_view == 'edit_view')
- $smarty->assign("BLOCKS",getBlocks("Campaigns",$disp_view,$mode,$focus->column_fields));
+ $smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
else
{
- $smarty->assign("BASBLOCKS",getBlocks("Campaigns",$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","Campaign");
+$smarty->assign("SINGLE_MOD",$app_strings['Campaign']);
$category = getParentTab();
More information about the vtigercrm-commits
mailing list