concrete/controllers/single_page/dashboard/system/seo/bulk.php
protected function getSiteNameForLocale($locale)
    {
        static $names = array();
        if (!isset($names[$locale])) {
            $prevLocale = \Localization::activeLocale();
            if ($prevLocale !== $locale) {
                \Localization::changeLocale($locale);
            }
            $names[$locale] = tc('SiteName', $this->app->make('site')->getSite()->getSiteName());
            if ($prevLocale !== $locale) {
                \Localization::changeLocale($prevLocale);
            }
        }

        return $names[$locale];
    }
protected function getSiteNameForLocale($locale)
    {
        static $names = array();
        if (!isset($names[$locale])) {
            $prevLocale = \Localization::activeLocale();
            if ($prevLocale !== $locale) {
                \Localization::changeLocale($locale);
            }
            $names[$locale] = tc('SiteName', $this->app->make('site')->getSite()->getSiteName());
            if ($prevLocale !== $locale) {
                \Localization::changeLocale($prevLocale);
            }
        }

        return $names[$locale];
    }
protected function getSiteNameForLocale ( $ locale ) { static $ names = array ( ) ; if ( ! isset ( $ names [ $ locale ] ) ) { $ prevLocale = \ Localization :: activeLocale ( ) ; if ( $ prevLocale !== $ locale ) { \ Localization :: changeLocale ( $ locale ) ; } $ names [ $ locale ] = tc ( 'SiteName' , $ this -> app -> make ( 'site' ) -> getSite ( ) -> getSiteName ( ) ) ; if ( $ prevLocale !== $ locale ) { \ Localization :: changeLocale ( $ prevLocale ) ; } } return $ names [ $ locale ] ; }
Get the localized site name.

@param string $locale

@return string
Get the localized site name .