IMetabase.DefaultLocale

Syntax

DefaultLocale: LocaleCodeID;

DefaultLocale: Prognoz.Platform.Interop.ForeSystem.LocaleCodeID;

Description

The DefaultLocale property determines repository language by default.

Comments

The default language is used for displaying names of objects, that do not have a name in the language, that is used when connecting to the repository. If an object has no name neither in language by default nor in the language, used when connecting to the repository, the repository language that was set when creating an object is used for displaying the name.

Example

Add a link to the ForeSystem, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
Begin
    MB := MetabaseClass.Active;
    MB.DefaultLocale := LocaleCodeID.English_UnitedStates;
End Sub UserProc;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
Begin
    MB := Params.Metabase;
    MB.DefaultLocale := LocaleCodeID.lcidEnglish_UnitedStates;
End Sub;

After executing the example English (USA) is selected as a default language for the current repository. This value is applied and is saved in repository DB.

See also:

IMetabase