getRelativePath().'/views'); // Load translations for the current language (falls back to English). I18n::init($this->getRelativePath().'/locale'); // Make sure the L2 tables exist (idempotent, never fatal). L2Store::ensureSchema(); $menu = APP::Component()->get('menu.main'); // Configuration center under Administration. $menu->findOrAdd(_('Administration')) ->getSubMenu() ->add( (new CMenuItem(I18n::t('menu.title'))) ->setAction('wecom.center.view') ); // L2 physical topology under Monitoring. $menu->findOrAdd(_('Monitoring')) ->getSubMenu() ->add( (new CMenuItem(I18n::t('menu.l2'))) ->setAction('l2.topology.view') ); } }