Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4173

Designer gets broken in KIE workbench with locale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jBPM 6.1.0.Final
    • jBPM 6.0.0.CR5
    • Designer
    • None

      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?

            rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
            rhn-support-tkobayas Toshiya Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: