Locale: LocaleCodeID;
The Locale property returns identifier of the name language. The property is read-only.
This example requires that the repository contains an object with the Object identifier.
Sub UserProc;
Var
Obj:IMetabaseObjectDescriptor;
NameLocale:IMetabaseObjectName;
Begin
Obj := MetabaseClass.Active.ItemById("Object");
For Each NameLocale In Obj.Names Do
Debug.WriteLine("------------------------");
Debug.WriteLine("Locale = " + NameLocale.Locale.ToString);
Debug.WriteLine("Name = " + NameLocale.Name);
Debug.WriteLine("Default name = " + NameLocale.IsDefault.ToString);
End For;
End Sub UserProc;
After executing this example all object elements are displayed in the console window.
See also: