Skip to content

DevExpress-Examples/vcl-reports-localize

Repository files navigation

DevExpress Reports for Delphi/C++Builder — Localize the Report Viewer and Report Designer

This example localizes DevExpress VCL Reports components.

The DevExpress Reports for Delphi/C++Builder fully support UI localization. The localization example in this repository allows users to select between English (default) and German (localized) versions of two built-in DevExpress dialogs: Report Designer and Report Viewer. The example includes projects for both Delphi and C++Builder.

Start screen of the localization example, allowing users to select between English and German,
and to display Report Designer and Report Viewer dialogs

Prerequisites

DevExpress Reports Prerequisites

Implementation Details

To localize the DevExpress Report Designer and Report Viewer in your Delphi or C++Builder application, you must:

  1. Use the [DevExpress UI Localization Service][localization-service] to obtain localization files for DevExpress VCL Report Viewer and Designer. These files contain UI string translations for specific languages/locales. Refer to the following guide to learn more: Localize Core Reporting Components: Use JSON Files.

  2. Extract downloaded files to a localization folder next to your compiled application executable. Note that projects in this repository output their executables to the same location. This allows both projects to use the same localization files.

  3. Assign a language identifier (also known as locale or culture identifier) to the TdxReport.Language property to switch the Report Designer/Report Viewer to the desired language:

    Delphi

    dxReport1: TdxReport;
    
    // Switch Report UI to German 
    dxReport1.Language := 'de-DE'

    C++Builder

    TdxReport *dxReport1;
    
    // Switch Report UI to German
    dxReport1->Language = "de-DE";

For a step-by-step guide, refer to the following help topic: Report Viewer and Designer UI Localization.

This example does not localize report content. To localize report content in your project, refer to the following guide: Report Content Localization.

The localization mechanism described in this example applies only to the DevExpress Report Designer and Report Viewer. Other DevExpress VCL components support localization using resource files and the Localizer Editor.

Files to Review

Documentation

More Examples

Localized Report Dialogs Preview

Localized Report Designer:

VCL Report Designer dialog with interface localized into German

Localized Report Viewer:

VCL Report Viewer dialog with interface localized into German

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example localizes DevExpress Report Viewer/Report Designer for Delphi/C++Builder

Topics

Resources

License

Stars

Watchers

Forks

Contributors