Prado\I18N\core\CultureInfo::setCulture PHP Method

setCulture() protected method

Set the culture for the current instance. The culture indentifier must be of the form "_(country/region)".
protected setCulture ( $culture )
    protected function setCulture($culture)
    {
        if (!empty($culture)) {
            if (!preg_match('/^[_\\w]+$/', $culture)) {
                throw new Exception('Invalid culture supplied: ' . $culture);
            }
        }
        $this->culture = $culture;
    }