Salome HOME
i18nUtils and translations are added to Siman-WS.
[tools/siman.git] / Workspace / Siman-WS / src / spring / applicationContext.xml
index 2503fd3f3e68d707f18b5e0de6922e7fb8d8729d..b66a6368878bd39dbd6a66ab510bab31947d14d3 100644 (file)
@@ -15,6 +15,22 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
                location="classpath:siman.properties,classpath:jdbc.properties"
                ignore-unresolvable="true" />
 
+    <!-- configuration i18n -->
+    <bean id="i18nUtils" class="org.splat.i18n.I18nUtils">
+        <property name="resourceBundleMessageSource"
+            ref="messageSource" />
+    </bean>
+
+    <bean id="messageSource"
+        class="org.springframework.context.support.ResourceBundleMessageSource">
+        <property name="basenames">
+            <list>
+                <value>conf/log-messages</value>
+                <value>som</value>
+            </list>
+        </property>
+    </bean>
+    
     <bean id="SimanSalomeService" class="org.splat.ws_server.service.salome.SimanSalomeServiceImpl">
         <property name="scenarioService" ref="scenarioService" />
         <property name="repositoryService" ref="repositoryService" />