How to localize report

In order to localize your report you can use our localization API. 

To use our API you need to create localization xml file with the following structure:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Localization language="English" culture="EN" description="English">
  <Section ident="LocalizationSection">
    <String ident="LocalizingStringIdentifier"> LocalizedStringValue</String>
  </Section>
</Localization>

After that you can load it in your report:

reportLocalizationFile = new LocalizationFile();
reportLocalizationFile.Read(@"PathToFile");
reportLanguage = new Language();
reportLanguage.AddLocalizationFile(reportLocalizationFile);

And use localization API in your bindings like below:

reportLanguage.GetString("LocalizationSection""LocalizingStringIdentifier""DefaultValue")

However, if you want to use your own localization mechanics you can just import required namespace and call static method in script.

There is a sample that illustrates both methods: http://perpetuumsoft.com/Support/SSR.Localization/LocalizationReportSample.zip 

Xml file with localization keys can be found in the bin directory.

Add Feedback