The express report title can support several user interface languages, for example, Russian and English. Such titles are named multilingual.
For detailed information about setting up express report title, see the Setting Up Title as Interactive Control section.
NOTE. Multilingual titles are available with Fore language. If the title is multilingual, the title is set up for the current repository language.
To translate express report title into other languages:
Open the Analytical Queries (OLAP) tool.
Select the title display mode in the Title button drop-down menu on the Home or View express report ribbon tab.
In the navigator create the Resources object with the RESOURCE identifier containing the title translation, for example:
Execute unit to use multilingual title in express reports.
Executing unit requires that repository contains an express report with the EXPRESS identifier and a resource with the RESOURCE identifier.
Add links to the Metabase, Express, IO (ForeIO for Fore.NET example) system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Resource: IResourceObject;
Object: IMetabaseObject;
Express: IEaxAnalyzer;
Begin
MB := MetabaseClass.Active;
// Get resource with title translation
Resource := MB.ItemById("EXPRESS").Bind As IResourceObject;
// Get express report
Object := MB.ItemById("RESOURCE").Edit;
Express := Object As IEaxAnalyzer;
// Set resource for express report
Express.Resources := Resource;
// Enable using multilingual title
Express.SupportMultiLanguage := True;
// Save changes
Object.Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.ForeIO;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Resource: IResourceObject;
Object: IMetabaseObject;
Express: IEaxAnalyzer;
Begin
MB := Params.Metabase;
// Get resource with title translation
Resource := MB.ItemById["EXPRESS"].Bind() As IResourceObject;
// Get express report
Object := MB.ItemById["RESOURCE"].Edit();
Express := Object As IEaxAnalyzer;
// Set resource for express report
Express.Resources := Resource;
// Enable using multilingual title
Express.SupportMultiLanguage := True;
// Save changes
Object.Save();
End Sub;
After changing repository language for current user to the specified translation language, the express report will display multilingual title according to the translation in resources.
See also: