The Language Module

Content pending for Language module.

get_language()

Retrieves the current application language. Checks multiple sources in order of priority:

load()

Loads a language‑specific file, typically containing translation arrays. The path can contain the placeholder {lang}, which is automatically replaced with the current language code (from get_language()).

reset_language()

Resets the language setting to the system default. Removes the language from session and deletes the language cookie.

set_language()

Sets the current application language. Stores the language code in the session and sets a cookie for persistence across browser sessions (30-day lifetime).