Click or drag to resize

ILocalesManagerAddCustomLocale Method


Adds a new custom locale or updates an existing custom locale with new values.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
ICustomLocale AddCustomLocale(
	ILocale baseLocale,
	string regionCode,
	string description
)

Parameters

baseLocale  ILocale
Base standard ISO locale
regionCode  String
Region code/name of the custom locale
description  String
Description of the custom locale

Return Value

ICustomLocale
The created or updated custom locale.
Exceptions
ExceptionCondition
ArgumentExceptionWhen base locale is a custom locale, or when region code is an existing standard ISO locale region code.
Remarks

If the region code already exists in the custom locale's collection, that custom locale will be updated with new information.

the custom locale has to be based on a standard ISO locale. It can never be based on another custom locale.

If the region code provided exists as standard ISO locale region code, the system throws an error.

See Also