Announcement Announcement Module
Collapse
No announcement yet.
Multiple message bundles (i18n) for a web project. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment


    • #3
      @mlarchet Thanks. I'll try that out.

      Comment

      Working...
      X