Localization Classic Report Designer
To localize the classic Bold Reports® ASP.NET Web Forms Report Designer, refer the culture script files for your culture and set the culture name to the locale property. Localization is the process of customizing the application for a given culture and locale, which involves much more than the simple translation of text. In the classic Report Designer, localized strings appropriate to each culture are stored in separate files and loaded according to the UI culture setting.
Use these steps to localize the Bold Reports® Designer version less than
v5.2.xx.
By default, the classic Report Designer displays strings in US English (en-US).
To render the static text with specific culture, refer the following corresponding culture script files and set culture name to the locale property of the classic Report Designer.
- ej.localetexts.fr-FR.min.js
- ej.culture.fr-FR.min.js
-
Install
BoldReports.GlobalNuget package in your ASP.NET application. -
Refer to the
ej.localetexts.fr-FR.min.jsscript file from theScriptsfolder of your application.<script src="Scripts/bold-reports/l10n/reportdesigner/ej.localetexts.fr-FR.min.js"></script> -
Refer to the
ej.culture.fr-FR.min.jsscript file from theScriptsfolder of your application.<script src="Scripts/bold-reports/i18n/ej.culture.fr-FR.min.js"></script> -
To render the localization for classic Report Designer, use the following code snippet:
-
The following code example illustrates how to set the
localeproperty for classic Report Designer in the index page.<div style="height: 650px;width: 950px"> <Bold:ReportDesigner runat="server" ID="designer" ServiceUrl="/api/ReportingAPI" Locale="fr-FR"> </Bold:ReportDesigner> </div> -
The following code example illustrates how to add classic Report Designer localization scripts in the
Default.aspxpage.<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> <link href="Content/bold-reports/material/bold.reports.all.min.css" rel="stylesheet" /> <link href="Content/bold-reports/material/bold.reportdesigner.min.css" rel="stylesheet" /> <link href="Scripts/CodeMirror/lib/codemirror.css" rel="stylesheet" /> <link href="Scripts/CodeMirror/addon/hint/show-hint.css" rel="stylesheet" /> <script src="https://cdn.boldreports.com/external/jquery-1.10.2.min.js" type="text/javascript"></script> <script src="https://cdn.boldreports.com/external/jsrender.min.js" type="text/javascript"></script> <script src="Scripts/CodeMirror/lib/codemirror.js"></script> <script src="Scripts/CodeMirror/addon/hint/show-hint.js"></script> <script src="Scripts/CodeMirror/addon/hint/sql-hint.js"></script> <script src="Scripts/CodeMirror/mode/sql/sql.js"></script> <script src="Scripts/CodeMirror/mode/vb/vb.js"></script> <script src="Scripts/bold-reports/common/bold.reports.common.min.js"></script> <script src="Scripts/bold-reports/common/bold.reports.widgets.min.js"></script> <script src="Scripts/bold-reports/common/bold.report-designer-widgets.min.js"></script> <!--Chart component script added before the web report designer script to render chart report item in reports--> <script src="Scripts/bold-reports/data-visualization/ej.chart.min.js"></script> <!-- Report Viewer component script--> <script src="Scripts/bold-reports/bold.report-viewer.min.js"></script> <!-- Report Designer component script--> <script src="Scripts/bold-reports/bold.report-designer.min.js"></script> <script src="Scripts/bold-reports/l10n/reportdesigner/ej.localetexts.fr-FR.min.js"></script> <script src="Scripts/bold-reports/i18n/ej.culture.fr-FR.min.js"></script> <div style="height: 650px;width: 950px"> <Bold:ReportDesigner runat="server" ID="designer" ServiceUrl="/api/ReportingAPI" Locale="fr-FR"> </Bold:ReportDesigner> </div> </asp:Content>
-