function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item->getType() == __CLASS__) { if (!isset($withtemplate) || empty($withtemplate)) { $ong[1] = __('Hierarchy', 'projet'); $ong[2] = __('Gantt', 'projet'); } if ($_SESSION['glpishow_count_on_tabs']) { $ong[3] = self::createTabEntry(_n('Associated participant', 'Associated participants', 2, 'projet'), PluginProjetProjet_Item::countForProjet($item)); } else { $ong[3] = _n('Associated participant', 'Associated participants', 2, 'projet'); } return $ong; } return ''; }