1. A RessouceBundle-Instance msg is created, msg.getLocale() returns "de", Default-Locale is "en"
2. msg is added to the FreeMarker-Model
3. A Template is fetched from the Configuration and template.process(model, writer) is called
4. Access to the RessourceBundle works fine, for example: model.msg("foo", "1.1.2009")
5. Localized access does not work:
5.1. msg contains a property: foo = {0}
5.2. May "model.dates.date" be a java.util.Date instance
5.3. Then ${model.msg("foo", model.dates.date)} will output the date in Locale "en", never in "de"
5.4. If I set the Locale in the FreeMarker Configuration instance or in the Environment, then ${model.dates.date} works fine.
Please send me a message to public@dsisoft.de if the issue is not a bug but I forgot to call some method.
Greeting, Ben