Salome HOME
i18nUtils and translations are added to Siman-WS.
[tools/siman.git] / Workspace / Siman-WS / src / spring / applicationContext.xml
index 1e4a0acd0ccb2795ce1cb9dcd31c22d5386ca727..b66a6368878bd39dbd6a66ab510bab31947d14d3 100644 (file)
@@ -15,8 +15,26 @@ 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" />
+        <property name="projectSettingsService" ref="projectSettings" />
     </bean>
 
 </beans>