wiki-archive/twiki/data/TWiki/VarLANGUAGE.txt,v

36 lines
946 B
Plaintext

head 1.1;
access;
symbols;
locks; strict;
comment @# @;
1.1
date 2006.06.25.16.26.28; author TWikiContributor; state Exp;
branches;
next ;
desc
@buildrelease
@
1.1
log
@buildrelease
@
text
@%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}%
%META:TOPICPARENT{name="TWikiVariables"}%
#VarLANGUAGE
---+++ LANGUAGE -- current user's language
* Returns the language code for the language used as the current user. This is the language actually used by TWiki Internationalization (e.g. in user interface).
* The language is detected from the user's browser, unless some site/web/user/session-defined setting overrides it:
* If the =LANGUAGE= preference is set, it's used as user's language instead of any language detected from the browser.
* Avoid defining =LANGUAGE= at a non per-user way, so each user can choose his/her preferred language.
* Related: [[#VarLANGUAGES][LANGUAGES]]
@