Chapter 25. Localizing Text

When inserting label and text elements, you typically type the text that you want the report to display. Use literal, or static, text if a report will always be viewed in one language or locale. If, however, a report will be translated into multiple languages or regional dialects, use resource keys rather than static text. The resource keys are translated, or localized, in resource files.

If you are not familiar with resource keys or resource files, think of resource keys as variables, and resource files as text files in which the variables are set to their values. If a report needs to appear in three languages, create three resource files to define text values for each language. When a report runs, BIRT uses the machine’s ...

Get BIRT: A Field Guide, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.