Create a Translation Resource File for the Default Locale Language
Create a report design file.
You must provide certain resource files to enable automatic label translation in Report Designer.
One of these is a file that associates a resource key with some text in the default
locale language. Other resource files provide text for that same key in a target
language. Report Designer can then swap the default locale language text for the
target language text when it encounters the key that they have in common.
- To create a resource file, select . Expand theGeneralnode and selectUntitled Text File.
- Add keys to the text file in the formatKey=Value, whereKeyis the name you want to give to the resource key andValueis the appropriate text in the default locale language. Example:Terms=Your employment with our Company includes the following agreed upon terms:. Give each new key its own line in the text file.Resource file keys can't contain spaces.
- Save the text file in the relevant project folder with the filenametranslations.properties.The translation resource file for the default locale doesn't have a locale suffix such asen_USorfr_FR. Translation resource files for target languages do have these suffixes.
- You must now associate the resource file with the report design file. To do so, open the design file and select theResourcestab of theProperty Editor - Reportview.
- In theProperties Filessection, add thetranslation.propertiesfile you just created.
The following text is an example of a
translation.properties
resource file's contents:Dear=Dear
Congratulations=Congratulations on joining our team. We're excited to have you!
Terms=Your employment with our Company includes the following agreed upon terms:
Date_Of_Hire=Date of Hire:
Business_Title=Business Title:
Manager_Name=Manager Name:
Organization=Organization:
Location=Location:
Base_Pay_Amount=Base Pay Amount:
Hire_Advice=Please be advised that your employment with the Company will be
"at-will", which means that either you or the Company may terminate your employment
at any time, for any reason or no reason, with or without notice. There is no
promise by the Company that your employment will continue for a set period of time
or that your employment will be terminated only under peculiar circumstances.
Sincerely=Sincerely,