[Vtigercrm-commits] [vtiger-commits] r5984 - in /vtigercrm/trunk/modules/Vendors: CallRelatedList.php DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 05:06:03 EDT 2006
Author: saraj
Date: Mon May 15 03:05:58 2006
New Revision: 5984
Log:
i18n done for module name in Detail/Edit/Relatedlistview - ahmed
Modified:
vtigercrm/trunk/modules/Vendors/CallRelatedList.php
vtigercrm/trunk/modules/Vendors/DetailView.php
vtigercrm/trunk/modules/Vendors/EditView.php
Modified: vtigercrm/trunk/modules/Vendors/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Vendors/CallRelatedList.php Mon May 15 03:05:58 2006
@@ -12,6 +12,7 @@
require_once('Smarty_setup.php');
require_once('modules/Vendors/Vendor.php');
+global $currentModule;
$focus = new Vendor();
$currentmodule = $_REQUEST['module'];
@@ -30,7 +31,7 @@
$focus->id = "";
}
-$related_array=getRelatedLists("Vendors",$focus);
+$related_array=getRelatedLists($currentModule,$focus);
global $mod_strings;
global $app_strings;
@@ -50,7 +51,7 @@
$smarty->assign("id",$focus->id);
$smarty->assign("ID",$RECORD );
$smarty->assign("MODULE",$currentmodule);
-$smarty->assign("SINGLE_MOD","Vendor");
+$smarty->assign("SINGLE_MOD",$app_strings['Vendor']);
$smarty->assign("RELATEDLISTS", $related_array);
$smarty->assign("MOD",$mod_strings);
$smarty->assign("APP",$app_strings);
Modified: vtigercrm/trunk/modules/Vendors/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/DetailView.php (original)
+++ vtigercrm/trunk/modules/Vendors/DetailView.php Mon May 15 03:05:58 2006
@@ -27,7 +27,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/";
@@ -39,7 +39,7 @@
if(isset($focus->name))
$smarty->assign("NAME", $focus->name);
-$smarty->assign("BLOCKS", getBlocks("Vendors","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
$smarty->assign("CUSTOMFIELD", $cust_fld);
@@ -56,8 +56,8 @@
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
$smarty->assign("ID", $_REQUEST['record']);
-$smarty->assign("MODULE", $module);
-$smarty->assign("SINGLE_MOD","Vendor");
+$smarty->assign("MODULE", $currentModule);
+$smarty->assign("SINGLE_MOD",$app_strings['Vendor']);
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
Modified: vtigercrm/trunk/modules/Vendors/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/EditView.php (original)
+++ vtigercrm/trunk/modules/Vendors/EditView.php Mon May 15 03:05:58 2006
@@ -14,7 +14,7 @@
require_once('modules/Vendors/Vendor.php');
require_once('include/FormValidationUtil.php');
-global $app_strings,$mod_strings,$theme;
+global $app_strings,$mod_strings,$theme,$currentModule;
$focus = new Vendor();
$smarty = new vtigerCRM_Smarty();
@@ -38,15 +38,15 @@
$disp_view = getView($focus->mode);
if($disp_view == 'edit_view')
- $smarty->assign("BLOCKS",getBlocks("Vendors",$disp_view,$mode,$focus->column_fields));
+ $smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
else
{
- $smarty->assign("BASBLOCKS",getBlocks("Vendors",$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","Vendors");
+$smarty->assign("SINGLE_MOD",$app_strings['Vendor']);
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
More information about the vtigercrm-commits
mailing list