close

Filter

loading table of contents...

Studio Developer Manual / Version 2207

Table Of Contents

9.22 Available Locales

As the locale property of a content item is just a plain string property, CoreMedia Studio provides assistance with setting the locales and keeping them consistent.

For this purpose a special content item is maintained that stores a list of language tags. These tags are used to restrict the selectable locales when cloning a site or setting a content item's locale property. To this end a new property field called AvailableLocalesPropertyField is used in the Blueprint content forms, which displays the available locales as a combo box.

The locales are rendered to the user in a readable representation that is localized for the current Studio language. The property field can also be configured to show an empty entry that sets the field value to the empty string.

When editing the list of available locales a validator will warn you if a language tag does not match the BCP 47 standard ( http://www.rfc-editor.org/rfc/bcp/bcp47.txt) and it will show an error if a language tag is defined multiple times.

The content item and property storing the locales can be configured with the following two Spring configuration properties:

available-locales.content-path=/Settings/Options/Settings/LocaleSettings
available-locales.property-path=settings.availableLocales

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.