-
1. Re: Jbpm interface
salaboy21 Sep 19, 2014 6:53 AM (in response to kojot)1 of 1 people found this helpfulYeah,
That's already possible, to which other language do you want to change it?
-
-
3. Re: Jbpm interface
kojot Sep 22, 2014 1:30 AM (in response to kojot)Possibly, if no polish language, how to change existing language?
-
4. Re: Jbpm interface
salaboy21 Sep 22, 2014 5:18 AM (in response to kojot)Hi, yes you can provide your own language by providing the localisation of each of the modules.
So take a look at the following repositories:
https://github.com/droolsjbpm/jbpm-console-ng
https://github.com/droolsjbpm/drools-wb/
You will find that all the Client side modules (UI) contains the Constant.java class and i18n files for those constants, like for example:
So, in there you will need to provide the file for the Polish language.
And then add the language to the GWT permutations, here: https://github.com/droolsjbpm/jbpm-console-ng/blob/master/jbpm-console-ng-showcase/src/main/resources/org/jbpm/console/ng/jBPMShowcase.gwt.xml#L85
or in the same place for the kie-wb.
HTH
-
5. Re: Jbpm interface
kojot Sep 22, 2014 8:35 AM (in response to salaboy21)I copied:
jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\jbpm-console.war\WEB-INF\classes\org\kie\workbench\client\resources\i18n\Constants_de.propertiesand I called this file Constants_pl_PL.properties.
then I change words inside this file, for example: Tasks_List=Lista zadan
then in jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\jbpm-console.war.zip\WEB-INF\classes\org\kie\workbench\KIEWebapp.gwt.xml
I added <extend-property name="locale" values="pl_PL"And I see Tasks List instead of lista zadan
-
6. Re: Jbpm interface
salaboy21 Sep 22, 2014 10:05 AM (in response to kojot)After adding that into the gwt.xml file you will need to compile the jbpm console ng with the Full Profile.
You can do that by doing something like mvn clean install -Pfull
That will compile the application with all the other languages.. you should see the gwt compiler doing a lot of permutations.
You can reduce the compilation time by removing all the other languages that you don't want for your app.
Try that and let me know if you manage to get it working.
When you run the application you need to set up the language in the URL parameters... you can find more documentation about that in the GWT i18n documentation:
http://www.gwtproject.org/doc/latest/tutorial/i18n.html
Something like this in hosted mode.. but it's the same if you are deploying in jboss or any other container: http://localhost:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997&locale=de
-
7. Re: Jbpm interface
kojot Sep 23, 2014 3:51 AM (in response to salaboy21)localhost:8080/jbpm-console/?locale=es_ES working
I wrote in command prompt when I was in c:/jbpm/jbpm-installer/
mvn clean install -Pfull not working, I tried ant clean install -Pfull and not working too.
-
8. Re: Jbpm interface
salaboy21 Sep 23, 2014 4:18 AM (in response to kojot)Hi Patryk in order to add a new language you will need to compile the project source code that can be cloned from github.com/droolsjbpm
You cannot compile the installer, you will need to download all the projects that you want to modify and compile them in your environment.
Alternatively, you can provide the constants files, I can upload those files and you will be able to download a nightly build containing those files, to save you from compiling all the projects.
Regards
-
9. Re: Jbpm interface
kojot Sep 23, 2014 4:52 AM (in response to salaboy21)ok thanks for reply
but how to download my projects and compile them? -
-
11. Re: Jbpm interface
p_tavana Apr 30, 2016 6:46 AM (in response to salaboy21)Hi
I have problem with localization of kie-wb.
For example i build source of kie-wb-common-6.3.0.Final and change the CommonConstants.properties file in kie-wb-common-6.3.0.Final\kie-wb-common-widgets\kie-wb-common-ui\target\classes\org\kie\workbench\common\widgets\client\resources\i18n.
then rebuild it and copy kie-wb-common-ui-6.3.0.Final.jar file in lib of kie-wb in webapp tomcat but nothing happen.
please help me
-
12. Re: Jbpm interface
salaboy21 Jul 1, 2016 11:11 AM (in response to kojot)You need to recompile the whole workbench with the new files, it will not be applied by just changing the jar file