The list of cultures in sitefintiy is the list of cultures in .NET, sitefintiy takes all cultures registered in System.Globalization and they can be used for creating multilingual content. Adding more cultures have to be done to the local .NET installation.
Adding one custom culture is working fine and the newly added custom culture is having LCID (Locale ID) of 4096. This is the LCID for supplemental custom cultured in .NET and its predefined. If you create a custom culture from scratch its ID will be 4096 as .NET used this ID for supplemental custom cultures.
I have attached a sample for custom culture from scratch and its ID will automatically be 4096 as the properties from CultureInfo don`t have setters (they are read only).
To run the sample (attached, for creating completely custom culture) and basically working with already created cultures an instance of CultureAndRegionInfoBuilder class is needed which has one part (CultureInfo) in System.Globalization and another part in "sysglobl
" assembly, add reference to sysglobl assembly in your project to gain access to CultureAndRegionInfoBuilder.
As .NET allows you to have only one culture with LCID 4096 the error thrown when second culture is added "An item with the same key already exist" is thrown to indicate this and this is expected based on the above explanation.
To add more custom cultures a replacement custom cultures have to be created where using the CultureAndRegionInfoBuilder class a specific culture is called by its LCID and modified by using CultureAndRegionModifier set as Replace.
is a great article explaining this in depth.
Sitefinity will not limit you in the usage of custom cultures as it will pull all registered cultures in the .NET version installed on the current computer if all the above restrictions are met.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items