Localization
24 May 20191 minute to read
Localization and globalization of cube info (client mode)
The content displayed within the pivot tree map control is obtained from the OLAP cube. The following are the steps that should be done to get the localized and globalized cube content.
- To get localized data from the OLAP cube, set the “Locale Identifier” in the connection string to a specific culture in the “data” property that is present in the “dataSource”.
NOTE
You can use the
locale
for the localization of the control.
//1036 refers to “fr-FR” culture.
$("#PivotTreeMap1").ejPivotTreeMap({
dataSource: {
data: "http://bi.syncfusion.com/olap/msmdpump.dll; Locale Identifier=1036;",
......
},
.....
});
Localization and globalization of cube info (server mode)
The content displayed within the pivot tree map control is obtained from the OLAP cube. The following are the steps that should be done to get the localized and globalized cube content.
- To get the localized string based on different cultures, set the “Locale Identifier” in the connection string to a specific culture in the OLAP cube.
- To bind the globalized content in the pivot tree map control, set “Culture” and “OverrideDefaultFormatStrings” properties in the OlapDataManager class to a specific culture.
//1036 refers to “fr-FR” culture.
string connectionString = "Data Source=localhost; Initial Catalog=Adventure Works DW; Locale Identifier=1036;";
DataManager = new OlapDataManager(connectionString);
DataManager.Culture = new System.Globalization.CultureInfo(1036);
DataManager.OverrideDefaultFormatStrings = true;