Bug 1037585

Summary: Locale not set when starting dashbuilder from workbench menus
Product: [Retired] JBoss BPMS Platform 6 Reporter: Pedro Zapata <pzapataf>
Component: BAMAssignee: David Gutierrez <dgutierr>
Status: CLOSED NOTABUG QA Contact: Jan Hrcek <jhrcek>
Severity: high Docs Contact: Vikram Goyal <vigoyal>
Priority: high    
Version: 6.0.0CC: kverlaen, mbaluch, rrajasek, vigoyal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-10 10:39:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pedro Zapata 2013-12-03 12:15:19 UTC
The language auto-detection seems to work in dashbuilder if you start directly with the dashbuilder.

So, if I navigate to http://localhost:8080/dashbuilder - yup the browser language preferences are honored. But if I go to the dashbuilder via the Business Central this doesn't seem to work.

(I can see why it doesn't work - because clicking from the Business Central to Dashbuilder seems to be hardcoded to use 'en').

I think the BZ for Business Central not honoring auto-detection and setting manually is already there. I just need to figure out if this is going to be targeted for GA release or not and if we should go ahead and document it.

Comment 2 David Gutierrez 2013-12-10 10:39:12 UTC
The problem is on business-central not in dashbuilder. business-central has problems auto-detecting the user's language. Trying to change the locale via url param ("locale=es_ES" for instance) does not work either.

The URL passed from business central to dashbuilder is not hard-coded at all. It's obtained by reading the client locale info, as we can see at: 

- droolsjbpm/kie-wb-distributions/kie-wb/kie-wb-webapp/src/main/java/org/kie/workbench/client/KieWorkbenchEntryPoint.java::284

- droolsjbpm/kie-wb-distributions/kie-wb/kie-wb-webapp/src/main/java/org/kie/workbench/client/home/HomeProducer.java::147

The real issue here is that the locale setting in business-central is not changing and it's always stuck in "en".

This issue has been closed and a new one should be opened for business-central (if does not exists yet) => For instance: "Locale auto-autodection and manual setting is not working".