protected getCurrentCulture ( ) : string | ||
return | string | the current culture, falls back to application if culture is not set. |
protected function getCurrentCulture()
{
$app = $this->getApplication()->getGlobalization(false);
return $this->getCulture() == '' ? $app ? $app->getCulture() : 'en' : $this->getCulture();
}