Difference between revisions of "WebSession.LanguageCode"

From Xojo Documentation

(Initial page for LanguageCode)
 
 
Line 1: Line 1:
<ShowIf version=2012r2>
 
 
{{PropertyBox
 
{{PropertyBox
 
| name = LanguageCode
 
| name = LanguageCode
Line 7: Line 6:
 
| readonly = no
 
| readonly = no
 
| scope = public
 
| scope = public
| platform = web
 
 
| newinversion = 2012r2
 
| newinversion = 2012r2
 
}}
 
}}
 
{{Description
 
{{Description
 
| text= When a browser connects to a web application and a new session is created, this property is set to the IETF Language Code provided by the browser. This code is used to help determine how dynamic constants will be rendered in your web application. One advantage to this system is that if you do not provide a translation for the user's language, you can offer them a choice and '''set''' this value to a supported language code. You can either use raw IETF language codes or the constants from the [[Localization]] module.
 
| text= When a browser connects to a web application and a new session is created, this property is set to the IETF Language Code provided by the browser. This code is used to help determine how dynamic constants will be rendered in your web application. One advantage to this system is that if you do not provide a translation for the user's language, you can offer them a choice and '''set''' this value to a supported language code. You can either use raw IETF language codes or the constants from the [[Localization]] module.
}}</ShowIf>
+
}}

Latest revision as of 20:17, 13 May 2013

Property (As String )
aWebSession.LanguageCode = newStringValue
or
StringValue = aWebSession.LanguageCode

New in 2012r2

Supported for all project types and targets.

When a browser connects to a web application and a new session is created, this property is set to the IETF Language Code provided by the browser. This code is used to help determine how dynamic constants will be rendered in your web application. One advantage to this system is that if you do not provide a translation for the user's language, you can offer them a choice and set this value to a supported language code. You can either use raw IETF language codes or the constants from the Localization module.