|
@@ -49,11 +49,14 @@ function categories_prepare_head($object,$type)
|
|
|
$head[$h][2] = 'photos';
|
|
|
$h++;
|
|
|
|
|
|
- $head[$h][0] = DOL_URL_ROOT.'/categories/traduction.php?id='.$object->id.'&type='.$type;
|
|
|
- $head[$h][1] = $langs->trans("Translation");
|
|
|
- $head[$h][2] = 'translation';
|
|
|
- $h++;
|
|
|
-
|
|
|
+ if (! empty($conf->global->MAIN_MULTILANGS))
|
|
|
+ {
|
|
|
+ $head[$h][0] = DOL_URL_ROOT.'/categories/traduction.php?id='.$object->id.'&type='.$type;
|
|
|
+ $head[$h][1] = $langs->trans("Translation");
|
|
|
+ $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
|