Text string substitution for IBM i Web component labels

If your Web application will be deployed for use in different languages, you can externalize the strings you use in the IBM® i Web components using a resource bundle. At run time, all externalized strings in the IBM i Web components are retrieved from the properties file. (The default is ApplicationResources.properties unless you specify a different name when you create the Web project.) In the properties file, each line has the following structure:
key = string associated with the key
Note: Keys are case sensitive.
For example, if your properties files contains the following:
button.submit.label = Submit the form
button.reset.label = Reset the form
textEntry.label = Enter a string
You can refer to the button.submit.label key in the Label attribute of the Button Web component by preceding the key with a %, that is, you enter %button.submit.label. At run time, the string Submit the form is displayed as the label for the Button Web component.
You can use externalized strings for the following attributes of the IBM i Web Components:

Label - Initial value
Text entry - Label, Initial value, Tool tip
Text area - Label, Initial value, Tool tip
Combo box - Label, Name option, Tool tip
Selection box - Label, Name option, Tool tip
Radio button group - Label, Name option, Tool tip
Hyperlink - Text, Tool tip
Check box - Text, Tool tip
Image button - Alternative text
Image - Alternative text
Button - Label, Tool tip
Table - Summary

The Table Web component uses a number of predefined strings. These are automatically generated for you in the resource bundle.


Feedback