Results 1 to 3 of 3

Thread: Multiple message bundles (i18n) for a web project.

  1. #1
    Join Date
    Dec 2008
    Posts
    11

    Default Multiple message bundles (i18n) for a web project.

    Is there a way to load multiple message bundles (per locale) in Spring MVC? I'm looking at loading "messages.properties", "errors.properties", "menus.properties", etc., for every locale (en_US, zh_CN, etc.) I would like to keep them separate.

    TIA.

  2. #2
    Join Date
    Feb 2006
    Location
    Nancy, France
    Posts
    145

    Default

    Code:
    <bean id="messageSource"
    	class="org.springframework.context.support.ResourceBundleMessageSource">
                   <property name="basenames">
    			<list>
    				<value>messages</value>
    				<value>errors</value>
    				<value>menus</value>
    			</list>
    		</property>
    </bean>
    Université Nancy 2
    France

  3. #3
    Join Date
    Dec 2008
    Posts
    11

    Default

    @mlarchet Thanks. I'll try that out.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •