locale

locale Class provided by System to start manage Session Language and check a language against the languages configured in the configuration

package

SYSTEM

Methods

Get the Session language If no language is saved in the Session it is set to the System-Default-Session defined in the config.

get() : string
static

Response

string

Returns Session Language

Checks Language against languages defined in the config.

isLang(string $lang) : boolean
static

Arguments

$lang

string

Language to be checked

Response

boolean

Returns true if Language is within the configured Languages

Set the Session language If the User is logged in it can trigger an Database update

set(string $lang) : boolean
static

Arguments

$lang

string

Language

Response

boolean

Returns true if successfull.

Constants

string Sessionkey for the language

SESSION_KEY