diff --git a/htdocs/core/lib/categories.lib.php b/htdocs/core/lib/categories.lib.php index f03a313ce2a..4be484e1aa4 100644 --- a/htdocs/core/lib/categories.lib.php +++ b/htdocs/core/lib/categories.lib.php @@ -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 diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang index b13aacd068f..5d0a8b60483 100644 --- a/htdocs/langs/fr_FR/main.lang +++ b/htdocs/langs/fr_FR/main.lang @@ -24,6 +24,7 @@ FormatDateHourSecShort=%d/%m/%Y %H:%M:%S FormatDateHourTextShort=%d %b %Y %H:%M FormatDateHourText=%d %B %Y %H:%M DatabaseConnection=Connexion à la base +Translation=Traduction NoTranslation=Pas de traduction NoRecordFound=Aucun enregistrement trouvé NoError=Aucune erreur diff --git a/htdocs/langs/fr_FR/products.lang b/htdocs/langs/fr_FR/products.lang index 24200a917ce..4e5163a93af 100644 --- a/htdocs/langs/fr_FR/products.lang +++ b/htdocs/langs/fr_FR/products.lang @@ -133,7 +133,6 @@ ParentProductsNumber=Nbre de produits virtuels/packages parent IfZeroItIsNotAVirtualProduct=Si 0, ce produit n'est pas utilisé par un produit package IfZeroItIsNotUsedByVirtualProduct=Si 0, ce produit n'est pas un produit package EditAssociate=Composer comme produit virtuel -Translation=Traduction KeywordFilter=Filtre par mot-clé CategoryFilter=Filtre par catégorie ProductToAddSearch=Recherche des produits à ajouter