Bug 1033295 - Designer gets broken in KIE workbench with locale
Summary: Designer gets broken in KIE workbench with locale
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER6
: 6.0.0
Assignee: Tihomir Surdilovic
QA Contact: Sona Mala
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-21 20:14 UTC by Tihomir Surdilovic
Modified: 2014-08-06 20:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:07:04 UTC
Type: Bug


Attachments (Terms of Use)

Description Tihomir Surdilovic 2013-11-21 20:14:38 UTC
If I access Designer in KIE workbench with locale=ja_JP, Designer gets broken. See attached designer.png.
http://localhost:8080/kie-wb-6.1.0-SNAPSHOT-eap-6_1/org.kie.workbench.KIEWebapp/KIEWebapp.html?locale=ja_JP
This is because inlineeditor.jsp looks for translation_ja_JP.js but but the existing file name is translation_ja.js
https://github.com/droolsjbpm/jbpm-designer/blob/master/jbpm-designer-client/src/main/resources/org/jbpm/designer/public/inlineeditor.jsp#L39
    <script xmlns="http://www.w3.org/1999/xhtml" src="<%=request.getContextPath()%>/org.jbpm.designer.jBPMDesigner/i18n/translation_<%=request.getParameter("locale")%>.js" type="text/javascript"></script>
So a quick fix is renaming translation_ja.js to translation_ja_JP.js. The same goes fot other locales.
I think Workbench/Designer/Dashboard developers should have an agreement about locale code (e.g. always <language>_<country> ?). WDYT?

Comment 1 Tihomir Surdilovic 2013-11-21 20:15:15 UTC
fixed in designer master and 5.0.x branches

Comment 4 Sona Mala 2014-01-07 11:01:16 UTC
Verified for ER7 that designer is able to open in ja_JP locale by using this address:

http://10.34.3.125:8080/business-central/org.kie.workbench.KIEWebapp/KIEWebapp.html?locale=ja_JP


HTML code is:
<script type="text/javascript" src="/business-central/org.jbpm.designer.jBPMDesigner/i18n/translation_ja.js" xmlns="http://www.w3.org/1999/xhtml">...</script>


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