Reporting - Localization (v20.1)

Reporting Team Blog
27 April 2020

As you may already know, our upcoming release (v20.1) includes built-in support for report content localization. You and your users can now quickly translate reports in both desktop and web applications and transfer culture-related settings with your report layout. New Localization related features include:

  • Reports localization support for the DevExpress End-User Report Designer across all supported platforms.

  • Reports localization support within our Visual Studio Report Designer.

  • Built-in Localization Editor to help you populate our new XtraReport.LocalizationItems collection. This collection stores localized strings and other culture-related settings. It is always serialized alongside your report layout.

  • Our End-User Report Designers can use a culture specified in a report’s internal Language property and ignore an application’s regional settings when generating a report’s print preview. This allows users to validate report rendering as if it was localized.

  • Use the XtraReport.ApplyLocalization method to change a report’s language at runtime. You can create a report parameter to help manage language settings - as illustrated in the following image

New Parameter Dialog

Now, handle the XtraReport.BeforePrint event to call the XtraReport.ApplyLocalization method and pass the parameter value to it:

private void XtraReport_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { 
                ApplyLocalization(language.Value.ToString());         
} 

Once complete, your users will be able to switch parameters and view localized reports within the document viewer:

Change Language In Print Preview

I’ll stop here and encourage you to visit our YouTube channel to learn more about our new Localization Editor.

You can download the video’s script using the following URL: Report Localization Video Script.

As always, we welcome your thoughts. Please comment below and let us know what you think of this new feature.

What’s New in v20.1

To explore the scope, breadth and capabilities of our new products/features, please visit: https://www.devexpress.com/Subscriptions/New-2020-1.xml.
5 comment(s)
Basit
Basit

Greate look. Means it will translate the label from english to other language right?

Thanks

Basit

27 April 2020
Anders Wang
Anders Wang

Hi,

Is it mean that one report template can be used as many langauges?

27 April 2020
CRM-25fefef6-5f1c-47ff-8786-9c3bf76486bb
Markus J.
Is it possible to import the translated text from a file? So the translation can done not only by the developer.
27 April 2020
Dmitry Tok (DevExpress Support)
Dmitry Tok (DevExpress Support)

@Basit: Yes, you'll be able to translate report element property values to the other languages. You can see the complete list of localizable properties in this help topic: Localize Reports.

@Andres: Yes, all translations for all languages are kept in a report layout.

@Markus: Which file format and platform are you interested in? Do you plan to use any third-party software to translate multiple text in a batch? Reach out to us via the support center ticket and clarify your requirements. We’ll be happy to follow up.

 

29 April 2020
CRM-25fefef6-5f1c-47ff-8786-9c3bf76486bb
Markus J.

@Dmitry: We are using Excel to translate our messages and the open source tool "ResXResourceManager" to load that Excel file into our VisualStudio resx files. We are mainly interessted in WPF.

So if I could load a simple csv or excel file into our report designer, that would be great.

We are still in the evaluatoin phase for an report designer.

29 April 2020

Please login or register to post comments.