Nuclos language files: properties, ResourceBundle, Jaspersoft Studio, $R{}, Bundle.properties, form, subforms, locale. |
Language: Deutsch · English
Multilingual reports/forms – create a ResourceBundle in Jaspersoft Studio and embed it via $R{}.
Auf dieser Seite |
A properties file (.properties) is a simple text file that JasperReports uses via the ResourceBundle mechanism. The easiest way to create one is in Jaspersoft Studio.
.properties file per language is created (base name + country code).
ResourceBundle main view with languages.
In the form, translatable spots are defined as text fields with a key:
anfrage.thema = Anfrage # in Bundle_de.properties
$R{anfrage.thema} # in the form |
In the form property, enter the base name without |
The form is loaded via Configuration → Report → Form or Report. For another language, clone the record and assign the other language. Further locales can be added at any time.