Bug 1033295

Summary: Designer gets broken in KIE workbench with locale
Product: [Retired] JBoss BPMS Platform 6 Reporter: Tihomir Surdilovic <tsurdilo>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED CURRENTRELEASE QA Contact: Sona Mala <smala>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen, tkobayas
Target Milestone: ER6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:07:04 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 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>