Canvas contains its own property descriptor to display the labels of the canvas components such as the tool-tip texts on the canvas apps, Error and Information messages about form items and other labels that appear apart from the developer's control. The canvas property file name is canvas-default.properties.
Some of the label keys in the canvas-default_en_US.properties file,
Code Block | ||
---|---|---|
| ||
# Tools Tips text for the app tools |
...
TOOL_TIPS_REFRESH = Refresh |
...
TOOL_TIPS_PRINT = Print |
...
TOOLTIP_PIN = More |
...
TOOL_TIPS_MAXIMIZE = Maximize |
Apart from providing common properties, Canvas also provides the extension to override these properties so that the developer provided values appear. The developer can create their own property file that contains the list of canvas common label keys and values. After creating, the developer must enter the property file name against the label key CT_LABELS_OVERRIDE_BUNDLE_NAME in the multilingualconfig.properties file.
Sample multilingualconfig.properties,
Code Block | ||
---|---|---|
| ||
# This will be used to override the default canvas provided labels. |
...
CT_LABELS_OVERRIDE_BUNDLE_NAME = mycanvas |
...
Sample My Canvas mycanvas_en_US.properties file, |
...
TOOL_TIPS_REFRESH = Reload Data |
...
TOOL_TIPS_PRINT = Print |
...
TOOLTIP_PIN = More... |
...
TOOL_TIPS_MAXIMIZE = Maximise |