We have our spring application set up to support both English and Spanish, using <spring:message code="something"/>
, with all of the values stored in a database table as opposed to in a messages.properties.
This works fine, except when there doesn't happen to be a value in the database for a specific code for the given language. When that happens, the text that's displayed is the code.
We would like to default to the English text if it can't find the Spanish one. Is there a way to do this with the spring framework?