Assigning resource keys
After assigning a resource file to a report, localize text by assigning resource keys to the report elements that display text. The procedure varies depending on the report element. For most elements, you can select existing keys or create new keys.
Before creating a new key, review the list carefully. You do not want to define new keys if they are already available. For example, you do not want five different keys for the Customer Name label. To make maintenance and look‑up of keys easier, use a consistent naming convention. For example, avoid ambiguous or inconsistently named keys, such as Name, customer name, and Name_Contact.
Assigning a resource key to a label or text element
Assign a resource key that you defined earlier, or define a new resource key, then assign it to the label or text element.
How to assign an existing resource key to a label or text element
1 In the layout editor, select the label or text element that contains the text to localize.
2 In Property Editor, under Properties, choose Localization, as shown in Figure 29‑4.
Figure 20-4 Property Editor displaying the Localization pageFigure 20-4 Property Editor displaying the Localization page
Figure 29‑4 Property Editor displaying the Localization page
3 Choose Browse, next to the Text key field. This button is enabled only if you have already assigned a resource file to the report.
Select Key displays the current list of keys and values that are defined in the resource file that the report uses, as shown in Figure 29‑5.
Figure 20-5 Select KeyFigure 20-5 Select Key
Figure 29‑5 Select Key
4 Select the key to assign to the label or text element, then choose OK. In the layout editor, the label or text element displays the value that corresponds to the key.
How to define a new resource key
1 Select the label or text element that contains the text to localize.
2 In Property Editor, choose Localization.
3 Choose Browse, next to the Text key field. This button is enabled only if you have already assigned a resource file to the report.
Select Key displays the list of keys and values that are defined in the resource file that the report uses.
4 If the key you want to assign is not in the list, add a new key as follows:
1 In Quick Add, provide a key and value, then choose Add. The key is added to the resource file and appears in the list of keys.
2 To assign the key to the label or text element, select the key from the list, then choose OK. In the layout editor, the label or text element displays the value that corresponds to the key.