Localization is the process of customizing the application for a given culture and locale - involving much more than the simple translation of text. In classic web report designer, localized strings appropriate to each culture are stored in separate files and loaded according to the UI culture setting.
This section explains steps to localize Bold Reports® Designer version less than
v5.2.xx
.
By default classic report designer display 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.
Install BoldReports.Global
Nuget package in your ASP.NET application.
Refer to the ej.localetexts.fr-FR.min.js
script file from the Scripts
folder 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.js
script file from the Scripts
folder 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 locale
property 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.aspx
page.
<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>