IMetabase.DefaultLocale

Fore Syntax

DefaultLocale: LocaleCodeID;

Fore.NET Syntax

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.

Fore Example

To execute the example, add a link to the Metabase system assembly.

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

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.

Fore.NET Example

To execute the example, add a link to the ForeSystem system assembly.

Imports Prognoz.Platform.Interop.ForeSystem;

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

The result of the Fore.NET Example execution matches that of the Fore Example.

See also:

IMetabase