protected function getLanguageNames($language = null)
    {
        $event = new LoadLanguageFileEvent('languages', $language, true);
        $this->eventDispatcher->dispatch(ContaoEvents::SYSTEM_LOAD_LANGUAGE_FILE, $event);

        return $GLOBALS['TL_LANG']['LNG'];
    }