We need to externalize any text that is presented to the user through script. The attached document contains all the locations where we have text.
For each of these, the text needs to be pulled out and put in KRADApplicationResources.properties (with a key). Then in script the message text can be retrieved with:
var dirtyMessage = getMessage(kradVariables.MESSAGE_KEY_DIRTY_FIELDS);
Notice a variable for the message key was created in krad.variables.js