protected function translate($key, array $arguments = [])
    {
        return \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate(
            'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:' . $key,
            'KeSearch',
            $arguments
        );
    }
protected function translate($key, array $arguments = [])
    {
        return \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate(
            'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:' . $key,
            'KeSearch',
            $arguments
        );
    }
protected function translate ( $ key , array $ arguments = [ ] ) { return \ TYPO3 \ CMS \ Extbase \ Utility \ LocalizationUtility :: translate ( 'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:' . $ key , 'KeSearch' , $ arguments ) ; }
Returns the translation of current language, stored in locallang_db.xml.

@param string $key key in locallang_db.xml to translate
@param array $arguments optional arguments
@return string Translated text
Returns the translation of current language stored in locallang_db . xml .