You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > LanguageAPI Class
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
LanguageAPI Class

Control that can be used to override the default system language assignment behavior.

C#
public class LanguageAPI : WebControl;
Visual Basic
Public Class LanguageAPI
Inherits WebControl

LanguageAPI.cs

Name 
Description 
The methods of the LanguageAPI class are listed here. 
The properties of the LanguageAPI class are listed here. 
 
Name 
Description 
 
Fill 
Use this function along with LanguageLogic to implement your custom language control logic.  
 
Returns a Language string corresponding to a given LanguageID.  
 
Returns the LanguageID corresponding to a given Language string.  
 
This is the overview for the IsValid method overload. 
 
Name 
Description 
 
Returns the current language (from a cookie).  
 
Returns the current language ID (from a cookie).  
 
If not overridden, the system string "Default" is used.  
 
If not overridden, the ID '0' is used.  
 
Returns a list of all the language IDs that are activated in Ektron CMS400.NET  
 
Returns a list of all the languages that are activated in Ektron CMS400.NET.  
 
Tells if the site supports multi-language mode.
  • True = Multi-language enabled
  • False = Multi-language not enabled
 
 
If you wish to override the default behavior of CMS400.NET, set this to true and implement your logic in the 'LanguageLogic()' overridable method. Currently this property returns the set value only if SiteLanguage is not equal to DefaultLanguage. If they are equal, false is returned.  
 
Sets the site language of the site. Runs through the IsValid function to verify that the language is an active language in the system.  
 
If not overridden, the ID '0' is used.  
 
Name 
Description 
 
Upon initialization, SiteLanguage is set to DefaultLanguage.  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!