[Vtigercrm-commits] [vtiger-commits] r5979 - in /vtigercrm/trunk/modules/PriceBooks: CallRelatedList.php DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 04:06:12 EDT 2006
Author: saraj
Date: Mon May 15 02:06:06 2006
New Revision: 5979
Log:
i18n done for module name in Detail/Edit/Relatedlistview - ahmed
Modified:
vtigercrm/trunk/modules/PriceBooks/CallRelatedList.php
vtigercrm/trunk/modules/PriceBooks/DetailView.php
vtigercrm/trunk/modules/PriceBooks/EditView.php
Modified: vtigercrm/trunk/modules/PriceBooks/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/CallRelatedList.php Mon May 15 02:06:06 2006
@@ -11,6 +11,8 @@
require_once('Smarty_setup.php');
require_once('modules/PriceBooks/PriceBook.php');
+
+global $currentModule;
$focus = new PriceBook();
@@ -30,7 +32,7 @@
$focus->id = "";
}
-$related_array=getRelatedLists("PriceBooks",$focus);
+$related_array=getRelatedLists($currentModule,$focus);
global $mod_strings;
global $app_strings;
@@ -50,7 +52,7 @@
$smarty->assign("ID",$RECORD );
$smarty->assign("MODULE",$currentmodule);
$smarty->assign("RELATEDLISTS", $related_array);
-$smarty->assign("SINGLE_MOD","PriceBook");
+$smarty->assign("SINGLE_MOD",$app_strings['PriceBook']);
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
$smarty->assign("MOD",$mod_strings);
$smarty->assign("APP",$app_strings);
Modified: vtigercrm/trunk/modules/PriceBooks/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/DetailView.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/DetailView.php Mon May 15 02:06:06 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/";
@@ -37,7 +37,7 @@
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
-$smarty->assign("BLOCKS", getBlocks("PriceBooks","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
$category = getParentTab();
@@ -60,7 +60,7 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
-$smarty->assign("MODULE", $module);
-$smarty->assign("SINGLE_MOD","PriceBook");
+$smarty->assign("MODULE", $currentModule);
+$smarty->assign("SINGLE_MOD",$app_strings['PriceBook']);
$smarty->display("DetailView.tpl");
?>
Modified: vtigercrm/trunk/modules/PriceBooks/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/EditView.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/EditView.php Mon May 15 02:06:06 2006
@@ -14,7 +14,7 @@
require_once('modules/PriceBooks/PriceBook.php');
require_once('include/FormValidationUtil.php');
-global $app_strings,$mod_strings,$theme;
+global $app_strings,$mod_strings,$theme,$currentModule;
$focus = new PriceBook();
$smarty = new vtigerCRM_Smarty();
@@ -38,15 +38,15 @@
$disp_view = getView($focus->mode);
if($disp_view == 'edit_view')
- $smarty->assign("BLOCKS",getBlocks("PriceBooks",$disp_view,$mode,$focus->column_fields));
+ $smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
else
{
- $smarty->assign("BASBLOCKS",getBlocks("PriceBooks",$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","Product");
+$smarty->assign("SINGLE_MOD",$app_strings['PriceBook']);
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
More information about the vtigercrm-commits
mailing list