Intent of application.properties vs messages.properties
A new Roo web app has the following files in its WEB-INF/i18n folder:
- application.properties
- messages_de.properties
- messages_es.properties
- messages_it.properties
- messages_nl.properties
- messages_sv.properties
- messages.properties
Both application.properties and the "messages" files support localisation; indeed the latter are already localised into German, Spanish, etc. The application.properties file can likewise be localised by creating files like this:
- application_de.properties
- application_es.properties
- application_it.properties
- application_nl.properties
- application_sv.properties
I'm unclear on the intended purpose of the two families of files; for example, if I want to add a new piece of localisable text to my app, should I put it in application_*.properties or messages_*.properties?
I realise that I'm at liberty to decide on this for myself, but if there's an existing convention or best practice, I'd prefer to follow that than do something that will be surprising to new developers coming to the project.
There's no mention of these files in the Roo reference docs.
Andrew Swan
"Now is the EJB of our discontent made glorious Spring"