Search results
PDF

Localization

Localization is the process of customizing the application for a given culture and locale - involving much more than the simple translation of text. In web report designer, localized strings appropriate to each culture are stored in separate files and loaded according to the UI culture setting.

By default 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 Report Designer.

  • ej.localetexts.fr-FR.min.js
  • ej.culture.fr-FR.min.js
  1. Install BoldReports.Global Nuget package in your ASP.NET application.

  2. 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>
  3. 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>
  4. To render the localization Report Designer, use the following code snippet.

    • The following code example illustrates how to set the locale property for 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 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>