Back to Devexpress

ReportResLocalizer Class

xtrareports-devexpress-dot-xtrareports-dot-localization-cdcf8dd0.md

latest3.3 KB
Original Source

ReportResLocalizer Class

A default localizer to translate the Reporting resources.

Namespace : DevExpress.XtraReports.Localization

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public class ReportResLocalizer :
    XtraResXLocalizer<ReportStringId>
vb
Public Class ReportResLocalizer
    Inherits XtraResXLocalizer(Of ReportStringId)

Remarks

The ReportResLocalizer class enables you to use both the satellite assemblies and Localizer technique to localize a reporting application.

Example - Translate Application UI to German

Do the following:

  1. Obtain the satellite assemblies for the de culture. For more information, review the following help topic: Localizing WinForms Controls with Satellite Resource Assemblies.
  2. Create the de folder in the application directory (for a Visual Studio project, it is the bin\Debug\ subdirectory) and copy the assemblies to the newly created folder.
  3. In the code, change the application thread culture and implement the ReportResLocalizer class descendant. The following code snippet translates the ReportDesignTool.DesignRibbonForm UI to German and replaces the text for the tooltip on the Favorites tab in the Properties Window:

Note that you should use satellite resource assemblies localization as it is the most common localization technique supported in the .NET Framework. For more information, review the following help topic: Localizing WinForms Controls with Satellite Resource Assemblies.

Use Localizer objects to add missing translations. For more information, review the following help topic: Localize Reporting Applications.

Inheritance

Object XtraLocalizer XtraLocalizer<ReportStringId> DevExpress.Utils.Localization.XtraResXLocalizer<ReportStringId> ReportResLocalizer

See Also

ReportResLocalizer Members

WinForms Reporting Localization

DevExpress.XtraReports.Localization Namespace