Sitecore 5.0 API

Database.Languages Property

Retrives the list of languages that are defined in this database.

[Visual Basic]
Public ReadOnly Property Languages As Language()
[C#]
public Sitecore.Globalization.Language[] Languages {get;}

Property Value

The list of languaged defined by the database.

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.

See Also

Database Class | Sitecore.Data Namespace