cancel
Showing results for 
Search instead for 
Did you mean: 

activiti translation

ahoussam1
Champ in-the-making
Champ in-the-making
Hello dear
I have researched a lot about the "translate Activiti Explorer to another language" subject
I didn't found any clear article about how to make that process..!
Also Activiti documentation does not contains something about translate Activiti Explorer to another language ..
Why ..? … I didn't know the answer !!
Although the application is worth the existence of such a clear and procedural document for those
Is there one that can show me on that procedural step by step ..?

Thank you very much
19 REPLIES 19

faizal-manan
Champ in-the-making
Champ in-the-making
make a copy message_xx.properties and rename it as message_<languageCode>.properties

ahoussam1
Champ in-the-making
Champ in-the-making
Thank you for your interest in question
Do you need to re-build a new version?
please explain
thanks

faizal-manan
Champ in-the-making
Champ in-the-making
yes and no
yes, if you want to bundle it in your war file
no, simply added new file into explorded war folder and restart your tomcat

<code>
make a copy message_xx.properties and rename it as message_<languageCode>.properties
</code>

ahoussam1
Champ in-the-making
Champ in-the-making
Hi faizal-manan, thank you very much for your help
after create this message_ar.properties file
where can i chose list of language to display it?
thanks

faizal-manan
Champ in-the-making
Champ in-the-making
what your actual plan?
a. you wanna your user to select their preferred language?
or
b. fixed to new language set?

ahoussam1
Champ in-the-making
Champ in-the-making
hi,  Thanks for the Answer
I create one message_ar.properties file, after that I restart tomcat server, activiiti  application remained in English
how to Appears the language in which you have added? Is there an option to choose the language?
thanks

faizal-manan
Champ in-the-making
Champ in-the-making
activiti-ui-context.xml


<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource" >
    <property name="basenames">
        <list>
            <value>messages_ar</value>
        </list>
     </property>
     <aop:scoped-proxy proxy-target-class="false" /> <!– Needed for session serialization –>
  </bean>

ahoussam1
Champ in-the-making
Champ in-the-making
hi thanks to help me
http://localhost:8080/activiti-explorer/
I got Error After doing so, here a result on my web explorer page:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: org.springframework.context.NoSuchMessageException: No message found under code 'login.username' for locale 'en_US'.
com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:1010)
com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:548)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:55)
root cause

org.springframework.context.NoSuchMessageException: No message found under code 'login.username' for locale 'en_US'.
org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:159)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
com.sun.proxy.$Proxy14.getMessage(Unknown Source)
org.activiti.explorer.I18nManager.getMessage(I18nManager.java:33)
org.activiti.explorer.ui.login.ExplorerLoginForm.<init>(ExplorerLoginForm.java:43)
org.activiti.explorer.ui.login.LoginPage.initUi(LoginPage.java:82)
org.activiti.explorer.ui.login.LoginPage.<init>(LoginPage.java:76)
org.activiti.explorer.ui.MainWindow.showLoginPage(MainWindow.java:60)
org.activiti.explorer.DefaultViewManager.showLoginPage(DefaultViewManager.java:85)
org.activiti.explorer.ExplorerApp.onRequestStart(ExplorerApp.java:189)
com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:478)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:55)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.26 logs.

faizal-manan
Champ in-the-making
Champ in-the-making
activiti-explorer can't find message_ar.properties
copy it into your exploded WEB-INF/classes folder