[Vtigercrm-commits] [vtiger-commits] r5980 - in /vtigercrm/trunk/modules/Products: CallRelatedList.php DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 04:11:29 EDT 2006
Author: saraj
Date: Mon May 15 02:11:23 2006
New Revision: 5980
Log:
i18n done for module name in Detail/Edit/Relatedlistview - ahmed
Modified:
vtigercrm/trunk/modules/Products/CallRelatedList.php
vtigercrm/trunk/modules/Products/DetailView.php
vtigercrm/trunk/modules/Products/EditView.php
Modified: vtigercrm/trunk/modules/Products/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Products/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Products/CallRelatedList.php Mon May 15 02:11:23 2006
@@ -25,7 +25,7 @@
}
global $mod_strings;
-global $app_strings;
+global $app_strings,$currentModule;
global $theme;
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
@@ -39,7 +39,7 @@
}
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
-$related_array=getRelatedLists("Products",$focus);
+$related_array=getRelatedLists($currentModule,$focus);
$smarty->assign("RELATEDLISTS", $related_array);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
@@ -48,7 +48,7 @@
$smarty->assign("ID",$RECORD );
$smarty->assign("MODULE",$currentmodule);
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
-$smarty->assign("SINGLE_MOD","Product");
+$smarty->assign("SINGLE_MOD",$app_strings['Product']);
$smarty->assign("MOD",$mod_strings);
$smarty->assign("APP",$app_strings);
$smarty->assign("THEME", $theme);
Modified: vtigercrm/trunk/modules/Products/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/DetailView.php (original)
+++ vtigercrm/trunk/modules/Products/DetailView.php Mon May 15 02:11:23 2006
@@ -26,7 +26,7 @@
$focus->id = "";
}
-global $app_strings;
+global $app_strings,$currentModule;
global $mod_strings;
global $theme;
@@ -41,14 +41,14 @@
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
else $smarty->assign("NAME", "");
-$smarty->assign("BLOCKS", getBlocks("Products","detail_view",'',$focus->column_fields));
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
$smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD","Product");
+$smarty->assign("SINGLE_MOD",$app_strings['Product']);
if(isPermitted("Products","EditView",$_REQUEST['record']) == 'yes')
$smarty->assign("EDIT_DUPLICATE","permitted");
@@ -63,7 +63,7 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
//Security check for related list
-$smarty->assign("MODULE", $module);
+$smarty->assign("MODULE", $currentModule);
$smarty->display("DetailView.tpl");
?>
Modified: vtigercrm/trunk/modules/Products/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/EditView.php (original)
+++ vtigercrm/trunk/modules/Products/EditView.php Mon May 15 02:11:23 2006
@@ -16,7 +16,7 @@
global $app_strings;
global $mod_strings;
-
+global $currentModule;
$encode_val=$_REQUEST['encode_val'];
$decode_val=base64_decode($encode_val);
@@ -78,16 +78,16 @@
$disp_view = getView($focus->mode);
if($disp_view == 'edit_view')
- $smarty->assign("BLOCKS",getBlocks("Products",$disp_view,$mode,$focus->column_fields));
+ $smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
else
{
- $smarty->assign("BASBLOCKS",getBlocks("Products",$disp_view,$mode,$focus->column_fields,'BAS'));
- $smarty->assign("ADVBLOCKS",getBlocks("Products",$disp_view,$mode,$focus->column_fields,'ADV'));
+ $smarty->assign("BASBLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields,'BAS'));
+ $smarty->assign("ADVBLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields,'ADV'));
}
$smarty->assign("OP_MODE",$disp_view);
$smarty->assign("MODULE",$currentModule);
-$smarty->assign("SINGLE_MOD","Product");
+$smarty->assign("SINGLE_MOD",$app_strings['Product']);
$smarty->assign("MOD", $mod_strings);
More information about the vtigercrm-commits
mailing list