You are here: Foswiki>System Web>Category>UserDocumentationCategory>Macros>VarLANGUAGE (2024-12-23, UnknownUser)Edit Attach
Returns the language code for the current user. This is the language used by Foswiki to generate the user interface. The language is detected from the user's browser, unless some site/web/user/session-defined preference setting overrides it.
If a LANGUAGE
preference is explicitly set, this will be used as the user language instead of any language detected from the browser.
Avoid defining LANGUAGE
in a non- per-user way, otherwise users will not be able to choose their preferred language.
%LANGUAGE%
expands to en
Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback