|
@@ -33,8 +33,8 @@ function categories_prepare_head($object,$type)
|
|
|
{
|
|
|
global $langs, $conf, $user;
|
|
|
|
|
|
- $langs->load("categories");
|
|
|
- $langs->load("products");
|
|
|
+ // Load translation files required by the page
|
|
|
+ $langs->loadLangs(array('categories', 'products'));
|
|
|
|
|
|
$h = 0;
|
|
|
$head = array();
|
|
@@ -48,7 +48,7 @@ function categories_prepare_head($object,$type)
|
|
|
$head[$h][1] = $langs->trans("Photos");
|
|
|
$head[$h][2] = 'photos';
|
|
|
$h++;
|
|
|
-
|
|
|
+
|
|
|
if (! empty($conf->global->MAIN_MULTILANGS))
|
|
|
{
|
|
|
$head[$h][0] = DOL_URL_ROOT.'/categories/traduction.php?id='.$object->id.'&type='.$type;
|
|
@@ -56,7 +56,7 @@ function categories_prepare_head($object,$type)
|
|
|
$head[$h][2] = 'translation';
|
|
|
$h++;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// Show more tabs from modules
|
|
|
// Entries must be declared in modules descriptor with line
|
|
|
// $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
|
|
@@ -87,7 +87,7 @@ function categoriesadmin_prepare_head()
|
|
|
$head[$h][1] = $langs->trans("Setup");
|
|
|
$head[$h][2] = 'setup';
|
|
|
$h++;
|
|
|
-
|
|
|
+
|
|
|
$head[$h][0] = DOL_URL_ROOT.'/categories/admin/categorie_extrafields.php';
|
|
|
$head[$h][1] = $langs->trans("ExtraFieldsCategories");
|
|
|
$head[$h][2] = 'attributes_categories';
|