Initialize and set locale for SSO
| package | sso\lib |
|---|
availables() : array<mixed,string>
array<mixed,string>locale => locale textinit()
set(string $locale) : boolean
stringlocale to set
booleanTRUE if cookie is set, FALSE otherwise.normalizeLocale(string $locale) : string
stringlocale to normalize
stringnormalized locale, with only [a-z0-9_]retrieveLocales() : array<mixed,string>
array<mixed,string>List of locale, by preference order$AVAILABLE_LOCALES : array<mixed,mixed>
array(self::SALT_LOCALE => array('fr' => 'Français', 'en' => 'English'), self::SSO_CURRENT_LOCALE => array('fr' => 'Français', 'en' => 'English'))COOKIE_NAME = 'sso_locale'
SALT_LOCALE = 'salt\I18N_LOCALE'
SSO_CURRENT_LOCALE = 'sso\SSO_CURRENT_LOCALE'