Home → Resources → Articles

Ektron API to Access Localization Tag

(Ektron CMS) by Jason Skowronek on 07/26/2009

I ran across an interesting API library deep in the Ektron API framework that allows you to pull the actual localization tag (e.g. en-US, en-GB, etc.) for the current language type id of the site (e.g. 1033, 2058, etc.). Previous to this, we had to create our own associative, key/value pair XML file that stored the relationships. Since I could only find a single reference to this library on the Ektron site, I hoping this information proves useful to others. Enjoy.

// retrieve the language date for the current site API instance
Ektron.Cms.SiteAPI sAPI = new Ektron.Cms.SiteAPI();

// assign the localization tagstring langTag = Ld.XmlLang;
Ektron.Cms.LanguageData ld = sAPI.GetLanguageById(ContentBlock.LanguageID);

Comments (0)

Leave a comment
Name *
Email *
Homepage
Comment

Recommend

UltraEdit

 

System Mechanic 

SkoNet provides comprehensive digital consulting services such as: web development, applications development, database design and architecture, business process management, customer relationship management, and many others that help businesses of every size, industry, and geography meet the complex challenge of managing and sharing information on the web. Our skills and expertise in online systems allow us to help customers build applications ranging from simple, single-page web sites to robust enterprise systems.

Online Backup, Ektron Consulting, Ektron Programmer, Ektron Developer, Ektron Partner Utah, Ektron Partner, Ektron Architect, Ektron Hosting, Salesforce.com Consultant Utah, Salesforce.com Partner Utah, Salesforce.com Partner, Salesforce.com Programmer, Salesforce.com Architect, Salesforce.com APEX Programmer