Welcome Guest, you are in: Namespace

A description of the SueetieLocal Control and Localization Support in the Sueetie Framework.

Multi-Language Support in Sueetie

Each of the applications in Sueetie has its own localization logic to support multiple languages. Sueetie adds full localization support for non-application community pages and custom development in the SueetieLocal ASPNET Control and the SueetieLocalizer class.

SueetieLocal ASPNET Control

The typical use of the SueetieLocal control is simply

<SUEETIE:SueetieLocal Key="demo_string" runat="server" />

Each localized string has a unique key. Sueetie language files are located in /utils/languages/[LANG].

Image

The default language file is /utils/language/LANG/sueetie.xml. SueetieLocal supports applicationType-specific language files as well as language files you specify using SueetieLocal properties.

SueetieLocal Control Properties

Key - We saw the typical use of the SueetieLocal control above where each string has a unique Key property.

LanguageFile - Use this property to specify a custom /utils/languages/[LANG]/[somefile].xml.

Anchor - The Anchor property refers to the HTML wrapping of the string, otherwise NO HTML is added to the string when written to the page. Supported Anchor elements are displayed with Intellisense in Visual Studio.

Image

LocalCSSID - Use this property to add a "id=" property to the HTML wrapped string.

UseCurrentApplicationFile - As we mentioned earlier, you have the option of storing your Localization terms according to the applicationtype of the current application. The Application Types are Blog, Forum, Marketplace, Wiki, and MediaGallery. The UseCurrentApplicationFile boolean property provides a quick way to use it.

Image

SueetieLocalizer Class

The SueetieLocalizer Core Class supports custom and code-behind localization. It contains a single GetString() method with 2 overloads. Below is the outline of the SueetieLocalizer, which as you can see is very basic.

Image

Sueetie Localization Administration

You specify the language for your community in Sueetie Administration under Site Settings -> General Site Settings. Enter the name of the /utils/languages/[LANG]/ folder as shown.

Image

ScrewTurn Wiki version 3.0.4.560.

Copyright © 2008-2012 Sueetie LLC. All rights reserved.
Sueetie