1 of 1 people found this helpful
That's already possible, to which other language do you want to change it?
Possibly, if no polish language, how to change existing language?
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:
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.
and 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
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:
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
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.
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.
ok thanks for reply
but how to download my projects and compile them?
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
You need to recompile the whole workbench with the new files, it will not be applied by just changing the jar file