[Vtigercrm-commits] [vtiger-commits] r5974 - in /vtigercrm/trunk/modules/HelpDesk: CallRelatedList.php DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 03:34:49 EDT 2006
Author: saraj
Date: Mon May 15 01:34:43 2006
New Revision: 5974
Log:
i18n done for module name in Detail/Edit/Relatedlistview - ahmed
Modified:
vtigercrm/trunk/modules/HelpDesk/CallRelatedList.php
vtigercrm/trunk/modules/HelpDesk/DetailView.php
vtigercrm/trunk/modules/HelpDesk/EditView.php
Modified: vtigercrm/trunk/modules/HelpDesk/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/CallRelatedList.php Mon May 15 01:34:43 2006
@@ -30,6 +30,7 @@
global $mod_strings;
global $app_strings;
+global $currentModule;
global $theme;
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
@@ -42,7 +43,7 @@
}
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
-$related_array=getRelatedLists("HelpDesk",$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['Ticket']);
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
$smarty->assign("MOD",$mod_strings);
$smarty->assign("APP",$app_strings);
Modified: vtigercrm/trunk/modules/HelpDesk/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/DetailView.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/DetailView.php Mon May 15 01:34:43 2006
@@ -37,6 +37,7 @@
global $app_strings;
global $mod_strings;
+global $currentModule;
global $theme;
$theme_path="themes/".$theme."/";
@@ -49,11 +50,11 @@
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
else $smarty->assign("NAME", "");
-$smarty->assign("BLOCKS", getBlocks("HelpDesk","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
$smarty->assign("TICKETID", $_REQUEST['record']);
$smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD","HelpDesk");
+$smarty->assign("SINGLE_MOD",$app_strings['Ticket']);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
$smarty->assign("UPDATEINFO",updateInfo($_REQUEST['record']));
@@ -90,7 +91,7 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
-$smarty->assign("MODULE","HelpDesk");
+$smarty->assign("MODULE",$currentModule);
$smarty->display("DetailView.tpl");
$focus->id = $_REQUEST['record'];
Modified: vtigercrm/trunk/modules/HelpDesk/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/EditView.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/EditView.php Mon May 15 01:34:43 2006
@@ -15,7 +15,7 @@
require_once('modules/HelpDesk/Forms.php');
require_once('include/FormValidationUtil.php');
-global $app_strings,$mod_strings,$theme;
+global $app_strings,$mod_strings,$theme,$currentModule;
$focus = new HelpDesk();
$smarty = new vtigerCRM_Smarty();
@@ -39,16 +39,16 @@
$disp_view = getView($focus->mode);
if($disp_view == 'edit_view')
- $smarty->assign("BLOCKS",getBlocks("HelpDesk",$disp_view,$mode,$focus->column_fields));
+ $smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
else
{
- $smarty->assign("BASBLOCKS",getBlocks("HelpDesk",$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","Ticket");
+$smarty->assign("SINGLE_MOD",$app_strings['Ticket']);
$category = getParentTab();
More information about the vtigercrm-commits
mailing list