I run "Good Thymes Virtual Grocery" Example Application.
I throw an exception with a message "Resolved message cannot be null".
After an hour, i found the solution.
I am a french and there is not home_fr.properties and logo isn't defined in home.properties.
With home_fr.properties, it's good.
- Does not have default language ? for example english ?
- or use the header of request with Accept-Language
For me, it is fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
- or a clear message : "logo" is not found in properties file
For example application, perharps, can you put all messages in home.properties because the first impression is bad when example application doesn't run.
Do you want the french version for this example application ?
There seems to be a small bug in message resolution that provokes that exception you see when an internationalization message is not found. I'm working to fix it now for 1.1.2.
Also, the home.properties file in the example GTVG application does not contain all the keys it should, as you say. I will also fix that. "home.properties" is in fact the place where messages will be looked for if not found in the specific language of your choice (French, in this case).
And as for the translations for French... would the welcome message be something like "Bienvenue à nôtre épicerie"? My French is not exactly brilliant...
Thanks. Seems that I used the pronoun instead of the article :-).
I've just uploaded a new snapshot version (1.1.2-SNAPSHOT) fixing this problem (see http://www.thymeleaf.org/faq.html#use-snapshot). Also, I've modified the GTVG application on the SVN trunk so that it now includes French, Portuguese, German and Dutch messages for its home page.