Refactor hard-coded constant that determines nearing maximum length

The logic that determines if the status message is approaching maximum length is currently a hard-coded constant set to 20 characters remaining. Change it to be a resource value instead.

Add a new resource value to the constants.xml
Retrieve the warning length resource value
Change logic to use warning length resource value instead of hard-coded constant