diff --git a/htdocs/admin/tools/ui/components/icons.php b/htdocs/admin/tools/ui/components/icons.php
index 32c35b87685..fb7aec592dc 100644
--- a/htdocs/admin/tools/ui/components/icons.php
+++ b/htdocs/admin/tools/ui/components/icons.php
@@ -134,9 +134,11 @@ $documentation->showSidebar(); ?>
';
} else {
- $tooltip = $iconName.'
img_picto(\''.$labelAlt.'\', \''.$iconName.'\')';
- $iconCode = img_picto($tooltip, $iconName, '', 0, 0, 0, '', 'classfortooltip');
- print ''.$iconCode.''.$iconName.'';
+ $tooltip = ''.$langs->trans("DocCodeForMenuOrModuleBuilder").':
'.$iconName;
+ $tooltip .= '
'.$langs->trans("DocExampleForPHPCode").':
img_picto(\''.$labelAlt.'\', \''.$iconName.'\')';
+ $iconCode = img_picto($tooltip, $iconName, '', 0, 0, 0, '', 'classfortooltip');
+ print ''.$iconCode;
+ print ''.$iconName.'';
}
}
?>
@@ -220,7 +222,7 @@ $documentation->showSidebar(); ?>
';
} else {
- $tooltip = $class;
+ $tooltip = ''.$langs->trans("DocCodeForMenuOrModuleBuilder").':
'.$class;
print ''.$iconCode.''.$class.'';
}
}
diff --git a/htdocs/langs/en_US/uxdocumentation.lang b/htdocs/langs/en_US/uxdocumentation.lang
index 87085c21cbc..ed987de9e67 100644
--- a/htdocs/langs/en_US/uxdocumentation.lang
+++ b/htdocs/langs/en_US/uxdocumentation.lang
@@ -8,6 +8,8 @@ DocHowContribute=How to contribute ?
DocHowContributeDescription=This documentation is currently being written. Learn how to contribute and enrich this documentation
DocListLinks=List of links - %s
DocGroupIndexDescription= This page brings together all the links from the "%s" section.
+DocCodeForMenuOrModuleBuilder=Image code to use for menu setup or fields in modulebuilder
+DocExampleForPHPCode=Example of code to use in PHP
# Components
DocComponentsTitle=Components