Sitecore 5.0 API

Language Structure

Represents a language.

For a list of all members of this type, see Language Members.

System.Object
   System.ValueType
      Sitecore.Globalization.Language

[Visual Basic]
Public Structure Language
    Implements ISerializable
[C#]
public struct Language : ISerializable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

A language defines an aspect of an item, that relates to a spoken language. A content item can have content in multiple languages and there may be multiple versions of an item in a given language. The language name may be an abitrary string, but is recommended to use the ISO code of the language.

Languages are defined in "/sitecore/system/Languages".

 

To create a new language, create an Language item in "/sitecore/system/Languages".

 

To delete a language, delete the item from "/sitecore/system/Languages". While this effectively removes the language, the actual content of item fields is not removed.

Requirements

Namespace: Sitecore.Globalization

Assembly: Sitecore.Kernel (in Sitecore.Kernel.dll)

See Also

Language Members | Sitecore.Globalization Namespace