Resource Files
The user interface labels and messages displayed by widgets are
defined in various ApplicationResources.properties
files included with the
Widget Framework.
During the publication build process they are merged together into a
single ApplicationResources.properties
file that is
written to the publication's
WEB-INF/classes/com/escenic/framework
folder.
If you want to modify any of these labels or messages, all you have to do is:
-
Find the
ApplicationResources.properties
file(s) containing the string definitions you want to change. For a Teaser widget string, for example, you would need to look in the Widget Framework distribution'smisc/widgets/widget-core-teaser/src/main/resources/com/escenic/framework
folder. -
Open the resource file(s) in an editor.
-
Copy the string definition(s) you want to modify.
-
Paste all the string definitions you want to modify into one new file.
-
Make the changes you want to the copied string definitions.
-
Save the file as
src/main/resources/com/escenic/framework/ApplicationResources.properties
in your publication webapp.
Now, when you build your publication, your
ApplicationResources.properties
will be merged with
the standard ApplicationResources.properties
and
your string definitions will override the default definitions.