public function getLanguageNameFor($locale, $inLocale = null)
    {
        $locale   = Locale::sanitizeLanguage($locale) . '_';
        $inLocale = Locale::sanitizeLanguage($inLocale, $this->locale);

        return \Locale::getDisplayLanguage($locale, $inLocale);
    }
public function getLanguageNameFor($locale, $inLocale = null)
    {
        $locale   = Locale::sanitizeLanguage($locale) . '_';
        $inLocale = Locale::sanitizeLanguage($inLocale, $this->locale);

        return \Locale::getDisplayLanguage($locale, $inLocale);
    }
public function getLanguageNameFor ( $ locale , $ inLocale = null ) { $ locale = Locale :: sanitizeLanguage ( $ locale ) . '_' ; $ inLocale = Locale :: sanitizeLanguage ( $ inLocale , $ this -> locale ) ; return \ Locale :: getDisplayLanguage ( $ locale , $ inLocale ) ; }
Get language name for specified locale or language-code.

If param $inLocale is not set the result will be in the local original language.

@param Locale|string $locale   Locale (or locale part "language") to get name for.
@param Locale|string $inLocale [optional] Set the locale to display value in.

@return string
Get language name for specified locale or language - code .