Localization of Bold Reports® ASP.NET Web Forms Report Viewer Classic
To localize the Bold Reports® ASP.NET Web Forms Report Viewer Classic, refer to the culture script files for the culture you need and set the culture name in the locale property of the Report Viewer Classic. Localization shows static text such as tooltips, the parameter block, and dialog text in a specific culture. For the French culture, refer to the following script files.
* `ej.localetexts.fr-FR.min.js`
* `ej.culture.fr-FR.min.js`-
Install
BoldReports.GlobalNuget package in your ASP.NET application. -
Refer to this
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 this
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 localized Report Viewer Classic, use the following code snippet in your application.
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> <link href="Content/material/bold.reports.all.min.css" rel="stylesheet" /> <script src="Scripts/jquery-1.10.2.min.js"></script> <script src="Scripts/common/bold.reports.common.min.js"></script> <script src="Scripts/common/bold.reports.widgets.min.js"></script> <script src="Scripts/data-visualization/ej.chart.min.js"></script> <script src="Scripts/bold.report-viewer.min.js"></script> <script src="Scripts/l10n/ej.localetexts.fr-FR.min.js"></script> <script src="Scripts/i18n/ej.culture.fr-FR.min.js"></script> <div style="height: 600px; width: 100%; min-height: 404px;"> <Bold:ReportViewer runat="server" ID="viewer" ReportServiceUrl="/api/ReportViewer" ReportPath="~/Resources/sales-order-detail.rdl" locale="fr-FR"> </Bold:ReportViewer> </div> </asp:Content>