Bug 1037585 - Locale not set when starting dashbuilder from workbench menus
Summary: Locale not set when starting dashbuilder from workbench menus
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: BAM
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: David Gutierrez
QA Contact: Jan Hrcek
Vikram Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 12:15 UTC by Pedro Zapata
Modified: 2014-03-20 10:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-10 10:39:12 UTC
Type: Bug


Attachments (Terms of Use)

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".


Note You need to log in before you can comment on or make changes to this bug.