Hello Jean-Francois,

MagnoliaMessageSource exposes the default resource bundle in Magnolia to spring 
beans.

Configure it in your applicationContext.xml with the name 'messageSource'.

You can use it in your templates with the standard JSP/JSTL tags.

Note that its only the default resource bundle that's exposed. You will need to 
extend it or replace it if you need it to do more. For most cases its 
sufficient to use the standard magnolia i18n facility.


Regards,

Tobias Mattsson
Senior Software Engineer
Magnolia International Ltd.



On Dec 12, 2011, at 10:13 PM, Magnolia Forums (on behalf of Jean-Francois 
Nadeau) wrote:

> We would like to know how to use the MagnoliaMessageSource in Blossom. 
> 
> How-to declare it in applicationContext.xml and how to use the messages in 
> templates ?
> 
> thank you
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=5e7fe432-2aaa-49e3-9caa-f7a841857695
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to