[Vtigercrm-commits] [vtiger-commits] r5981 - in /vtigercrm/trunk/modules/PurchaseOrder: CallRelatedList.php DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 04:18:42 EDT 2006
Author: saraj
Date: Mon May 15 02:18:37 2006
New Revision: 5981
Log:
i18n done for module name in Detail/Edit/Relatedlistview - ahmed
Modified:
vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php
vtigercrm/trunk/modules/PurchaseOrder/DetailView.php
vtigercrm/trunk/modules/PurchaseOrder/EditView.php
Modified: vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php Mon May 15 02:18:37 2006
@@ -23,7 +23,7 @@
$log->debug("name is ".$focus->name);
}
-global $mod_strings;
+global $mod_strings,$currentmodule;
global $app_strings;
global $theme;
$theme_path="themes/".$theme."/";
@@ -33,7 +33,7 @@
$smarty = new vtigerCRM_Smarty;
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
-$related_array=getRelatedLists("PurchaseOrder",$focus);
+$related_array=getRelatedLists($currentModule,$focus);
$smarty->assign("RELATEDLISTS", $related_array);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
@@ -41,7 +41,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['PurchaseOrder']);
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
$smarty->assign("MOD",$mod_strings);
$smarty->assign("APP",$app_strings);
Modified: vtigercrm/trunk/modules/PurchaseOrder/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/DetailView.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/DetailView.php Mon May 15 02:18:37 2006
@@ -26,7 +26,7 @@
require_once('include/CustomFieldUtil.php');
require_once('include/database/PearDatabase.php');
require_once('include/utils/utils.php');
-global $mod_strings,$app_strings,$theme;
+global $mod_strings,$app_strings,$theme,$currentModule;
$focus = new Order();
@@ -53,17 +53,17 @@
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
-$smarty->assign("MODULE","PurchaseOrder");
+$smarty->assign("MODULE",$currentModule);
$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
else $smarty->assign("NAME", "");
-$smarty->assign("BLOCKS", getBlocks("PurchaseOrder","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
$smarty->assign("CUSTOMFIELD", $cust_fld);
$smarty->assign("ID", $_REQUEST['record']);
-$smarty->assign("SINGLE_MOD","PurchaseOrder");
+$smarty->assign("SINGLE_MOD",$app_strings['PurchaseOrder']);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
Modified: vtigercrm/trunk/modules/PurchaseOrder/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/EditView.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/EditView.php Mon May 15 02:18:37 2006
@@ -28,7 +28,7 @@
require_once('include/utils/utils.php');
require_once('include/FormValidationUtil.php');
-global $app_strings,$mod_strings,$log,$theme;
+global $app_strings,$mod_strings,$log,$theme,$currentModule;
$focus = new Order();
@@ -81,15 +81,15 @@
$disp_view = getView($focus->mode);
if($disp_view == 'edit_view')
- $smarty->assign("BLOCKS",getBlocks("PurchaseOrder",$disp_view,$mode,$focus->column_fields));
+ $smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
else
{
- $smarty->assign("BASBLOCKS",getBlocks("PurchaseOrder",$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","PurchaseOrder");
+$smarty->assign("SINGLE_MOD",$app_strings['PurchaseOrder']);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
More information about the vtigercrm-commits
mailing list